diff --git a/bin/configs/java-helidon-client-mp_3.yaml b/bin/configs/java-helidon-client-mp_3.yaml index 6b5babac3c15..9c9097fd6884 100644 --- a/bin/configs/java-helidon-client-mp_3.yaml +++ b/bin/configs/java-helidon-client-mp_3.yaml @@ -2,6 +2,7 @@ generatorName: java-helidon-client library: mp outputDir: samples/client/petstore/java-helidon-client/v3/mp 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-helidon/client additionalProperties: helidonVersion: 3.2.7 artifactId: petstore-helidon-client-mp diff --git a/bin/configs/java-helidon-client-mp_4.yaml b/bin/configs/java-helidon-client-mp_4.yaml index 9d25d15f8230..e09b3cbedca3 100644 --- a/bin/configs/java-helidon-client-mp_4.yaml +++ b/bin/configs/java-helidon-client-mp_4.yaml @@ -2,6 +2,7 @@ generatorName: java-helidon-client library: mp outputDir: samples/client/petstore/java-helidon-client/v4/mp 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-helidon/client additionalProperties: helidonVersion: 4.0.11 artifactId: petstore-helidon-client-mp diff --git a/bin/configs/java-helidon-client-se_3.yaml b/bin/configs/java-helidon-client-se_3.yaml index 41e816215af2..425aabe7224d 100644 --- a/bin/configs/java-helidon-client-se_3.yaml +++ b/bin/configs/java-helidon-client-se_3.yaml @@ -2,6 +2,7 @@ generatorName: java-helidon-client library: se outputDir: samples/client/petstore/java-helidon-client/v3/se 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-helidon/client additionalProperties: helidonVersion: 3.2.7 artifactId: petstore-helidon-client-se diff --git a/bin/configs/java-helidon-client-se_4.yaml b/bin/configs/java-helidon-client-se_4.yaml index 748b7db894f8..2a409cf8ec35 100644 --- a/bin/configs/java-helidon-client-se_4.yaml +++ b/bin/configs/java-helidon-client-se_4.yaml @@ -2,6 +2,7 @@ generatorName: java-helidon-client library: se outputDir: samples/client/petstore/java-helidon-client/v4/se 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-helidon/client additionalProperties: helidonVersion: 4.0.11 artifactId: petstore-helidon-client-se diff --git a/bin/configs/java-helidon-server-mp_3.yaml b/bin/configs/java-helidon-server-mp_3.yaml index 3be0b87e1895..b584bd1c7419 100644 --- a/bin/configs/java-helidon-server-mp_3.yaml +++ b/bin/configs/java-helidon-server-mp_3.yaml @@ -10,4 +10,4 @@ additionalProperties: build: "all" test: "spock" useAuth: "false" - fullProject: "true" \ No newline at end of file + fullProject: "true" diff --git a/bin/configs/java-helidon-server-mp_3_format_test.yaml b/bin/configs/java-helidon-server-mp_3_format_test.yaml index e2e1582569c0..9d564da6d098 100644 --- a/bin/configs/java-helidon-server-mp_3_format_test.yaml +++ b/bin/configs/java-helidon-server-mp_3_format_test.yaml @@ -7,4 +7,4 @@ additionalProperties: helidonVersion: 3.2.7 artifactId: format-helidon-server-mp hideGenerationTimestamp: "true" - fullProject: "true" \ No newline at end of file + fullProject: "true" diff --git a/bin/configs/java-micronaut-client.yaml b/bin/configs/java-micronaut-client.yaml index 247c139afb44..4b41b0123f74 100644 --- a/bin/configs/java-micronaut-client.yaml +++ b/bin/configs/java-micronaut-client.yaml @@ -1,6 +1,7 @@ generatorName: java-micronaut-client outputDir: samples/client/petstore/java-micronaut-client/ inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/java-micronaut/ additionalProperties: artifactId: petstore-micronaut hideGenerationTimestamp: "true" diff --git a/bin/configs/java-micronaut-server.yaml b/bin/configs/java-micronaut-server.yaml index 15b9ba58b327..be199f7338f3 100644 --- a/bin/configs/java-micronaut-server.yaml +++ b/bin/configs/java-micronaut-server.yaml @@ -1,6 +1,7 @@ generatorName: java-micronaut-server outputDir: samples/server/petstore/java-micronaut-server/ inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/java-micronaut/ additionalProperties: artifactId: petstore-micronaut-server hideGenerationTimestamp: "true" diff --git a/modules/openapi-generator/src/main/resources/Java/beanValidationCore.mustache b/modules/openapi-generator/src/main/resources/Java/beanValidationCore.mustache index ff4ffe26c497..3fdcb26a44b7 100644 --- a/modules/openapi-generator/src/main/resources/Java/beanValidationCore.mustache +++ b/modules/openapi-generator/src/main/resources/Java/beanValidationCore.mustache @@ -17,4 +17,4 @@ isInteger set isLong set }}{{#isLong}}{{#minimum}} @Min({{.}}L){{/minimum}}{{#maximum}} @Max({{.}}L){{/maximum}}{{/isLong}}{{! Not Integer, not Long => we have a decimal value! -}}{{^isInteger}}{{^isLong}}{{#minimum}} @DecimalMin({{#exclusiveMinimum}}value={{/exclusiveMinimum}}"{{minimum}}"{{#exclusiveMinimum}},inclusive=false{{/exclusiveMinimum}}){{/minimum}}{{#maximum}} @DecimalMax({{#exclusiveMaximum}}value={{/exclusiveMaximum}}"{{maximum}}"{{#exclusiveMaximum}},inclusive=false{{/exclusiveMaximum}}){{/maximum}}{{/isLong}}{{/isInteger}} \ No newline at end of file +}}{{^isInteger}}{{^isLong}}{{#minimum}} @DecimalMin({{#exclusiveMinimum}}value={{/exclusiveMinimum}}"{{minimum}}"{{#exclusiveMinimum}},inclusive=false{{/exclusiveMinimum}}){{/minimum}}{{#maximum}} @DecimalMax({{#exclusiveMaximum}}value={{/exclusiveMaximum}}"{{maximum}}"{{#exclusiveMaximum}},inclusive=false{{/exclusiveMaximum}}){{/maximum}}{{/isLong}}{{/isInteger}} diff --git a/modules/openapi-generator/src/main/resources/Java/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/Java/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache index 4fbaf983be8d..7210b435177a 100644 --- a/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache +++ b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache @@ -11,4 +11,4 @@ {{#isContainer}} @JacksonXmlElementWrapper({{#isXmlWrapped}}localName = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}", {{#xmlNamespace}}namespace = "{{.}}", {{/xmlNamespace}}{{/isXmlWrapped}}useWrapping = {{isXmlWrapped}}) {{/isContainer}} -{{/withXml}} \ No newline at end of file +{{/withXml}} diff --git a/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache b/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache index c02730081ca9..c1b5db88309d 100644 --- a/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache +++ b/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache @@ -1,4 +1,4 @@ -public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/parentModel}}{ + public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/parentModel}}{ private {{classname}} instance; diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache index d76b35d7d25c..859a7b6e24ac 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache @@ -20,7 +20,12 @@ {{/hasDiscriminatorWithNonEmptyMapping}} {{/isClassnameSanitized}} {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -39,6 +44,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{>modelInnerEnum}} {{/mostInnerItems}} {{/isContainer}} + {{/isEnum}} {{#gson}} public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; @@ -73,6 +79,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} {{>nullable_var_annotations}} + {{#isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/isContainer}} @@ -191,6 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache index 0d8bc23c6cc7..56a7978ac3bd 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache @@ -23,7 +23,12 @@ @JsonTypeName("{{name}}") {{/isClassnameSanitized}} {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -82,6 +87,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -199,6 +205,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -235,7 +242,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { return {{name}}; } - {{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{#vendorExtensions.x-is-jackson-optional-nullable}} @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) {{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { {{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache index 0d8bc23c6cc7..922ab99415eb 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache @@ -23,7 +23,12 @@ @JsonTypeName("{{name}}") {{/isClassnameSanitized}} {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -44,6 +49,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{>modelInnerEnum}} {{/mostInnerItems}} {{/isContainer}} + {{/isEnum}} {{#gson}} public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; @@ -82,6 +88,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -199,6 +206,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -215,7 +223,11 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{!unannotated, Jackson would pick this up automatically and add it *in addition* to the _JsonNullable getter field}} @JsonIgnore {{/vendorExtensions.x-is-jackson-optional-nullable}} -{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.x-is-jackson-optional-nullable}} +{{^vendorExtensions.x-is-jackson-optional-nullable}} +{{#jackson}} +{{> jackson_annotations}} +{{/jackson}} +{{/vendorExtensions.x-is-jackson-optional-nullable}} public {{{datatypeWithEnum}}} {{getter}}() { {{#vendorExtensions.x-is-jackson-optional-nullable}} {{#isReadOnly}}{{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}} @@ -235,7 +247,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { return {{name}}; } - {{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{#vendorExtensions.x-is-jackson-optional-nullable}} @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) {{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { {{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}} @@ -247,8 +260,15 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { +{{#vendorExtensions.x-setter-extra-annotation}} + {{{vendorExtensions.x-setter-extra-annotation}}} +{{/vendorExtensions.x-setter-extra-annotation}} +{{#jackson}} +{{^vendorExtensions.x-is-jackson-optional-nullable}} +{{> jackson_annotations}} +{{/vendorExtensions.x-is-jackson-optional-nullable}} +{{/jackson}} + public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -288,11 +308,13 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}} return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}} {{/useReflectionEqualsHashCode}} - }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + } +{{#vendorExtensions.x-jackson-optional-nullable-helpers}} private static boolean equalsNullable(JsonNullable a, JsonNullable b) { return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + } +{{/vendorExtensions.x-jackson-optional-nullable-helpers}} @Override public int hashCode() { @@ -302,14 +324,16 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^useReflectionEqualsHashCode}} return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}{{#additionalPropertiesType}}{{#hasVars}}, {{/hasVars}}{{^hasVars}}{{#parent}}, {{/parent}}{{/hasVars}}additionalProperties{{/additionalPropertiesType}}); {{/useReflectionEqualsHashCode}} - }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + } +{{#vendorExtensions.x-jackson-optional-nullable-helpers}} private static int hashCodeNullable(JsonNullable a) { if (a == null) { return 1; } return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; - }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + } +{{/vendorExtensions.x-jackson-optional-nullable-helpers}} @Override public String toString() { diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/generatedAnnotation.mustache index cf058a0fabdc..3961cee81c49 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/microprofile/generatedAnnotation.mustache @@ -1 +1 @@ -@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache index fdb779be03ae..f03062cb164e 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache @@ -26,7 +26,12 @@ import {{invokerPackage}}.ApiClient; {{/vars}} }) {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -47,6 +52,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{>modelInnerEnum}} {{/mostInnerItems}} {{/isContainer}} + {{/isEnum}} {{#gson}} public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; @@ -573,6 +579,6 @@ static { {{/discriminator}} {{#generateBuilders}} - {{>javaBuilder}} +{{>javaBuilder}} {{/generateBuilders}} } diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index 0de3f814b8a7..b3ffa7f2e0f4 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -25,7 +25,12 @@ {{/hasDiscriminatorWithNonEmptyMapping}} {{/isClassnameSanitized}} {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -44,6 +49,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{>modelInnerEnum}} {{/mostInnerItems}} {{/isContainer}} + {{/isEnum}} {{#gson}} public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; @@ -66,6 +72,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} {{>nullable_var_annotations}} + {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} @@ -212,6 +219,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{>nullable_var_annotations}} + {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} diff --git a/modules/openapi-generator/src/main/resources/Java/typeInfoAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/typeInfoAnnotation.mustache index c833321ebfa7..3db813c9b6c3 100644 --- a/modules/openapi-generator/src/main/resources/Java/typeInfoAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/typeInfoAnnotation.mustache @@ -1,5 +1,4 @@ {{#jackson}} - @JsonIgnoreProperties( value = "{{{discriminator.propertyBaseName}}}", // ignore manually set {{{discriminator.propertyBaseName}}}, it will be automatically generated by Jackson during serialization allowSetters = true // allows the {{{discriminator.propertyBaseName}}} to be set during deserialization diff --git a/modules/openapi-generator/src/main/resources/Java/xmlAnnotation.mustache b/modules/openapi-generator/src/main/resources/Java/xmlAnnotation.mustache index 4f3b448c8d1c..ffb62e2b15e3 100644 --- a/modules/openapi-generator/src/main/resources/Java/xmlAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/Java/xmlAnnotation.mustache @@ -3,4 +3,6 @@ @XmlRootElement({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}name = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") @XmlAccessorType(XmlAccessType.FIELD) {{#jackson}} -@JacksonXmlRootElement({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}"){{/jackson}}{{/withXml}} \ No newline at end of file +@JacksonXmlRootElement({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") +{{/jackson}} +{{/withXml}} diff --git a/modules/openapi-generator/src/main/resources/JavaInflector/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaInflector/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaInflector/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaInflector/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/pojo.mustache index 8f5d70e41922..36f895042d04 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext/pojo.mustache @@ -17,21 +17,35 @@ import com.fasterxml.jackson.annotation.JsonProperty; { {{#vars}}"{{name}}"{{^-last}}, {{/-last}}{{/vars}} }){{/hasVars}} {{^hasVars}}@XmlType(name = "{{classname}}"){{/hasVars}} -{{^parent}}@XmlRootElement(name="{{classname}}"){{/parent}} +{{^parent}} +@XmlRootElement(name="{{classname}}") +{{/parent}} {{/withXml}} -{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{#description}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{#description}} /** * {{{description}}} */ @ApiModel(description="{{{description}}}") -{{/description}}{{>additionalModelTypeAnnotations}} +{{/description}} +{{>additionalModelTypeAnnotations}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{#vendorExtensions.x-implements}}{{#-first}} implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { - {{#vars}}{{#isEnum}}{{^isContainer}} -{{>enumClass}}{{/isContainer}}{{#isContainer}}{{#mostInnerItems}} -{{>enumClass}}{{/mostInnerItems}}{{/isContainer}}{{/isEnum}} + {{#vars}} + {{#isEnum}} + {{^isContainer}} +{{>enumClass}} + {{/isContainer}} + {{#isContainer}} + {{#mostInnerItems}} +{{>enumClass}} + {{/mostInnerItems}} + {{/isContainer}} + {{/isEnum}} {{#description}} /** * {{{.}}} diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/xmlPojoAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/xmlPojoAnnotation.mustache index b459abbc09d4..e7f640cf445e 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/xmlPojoAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/xmlPojoAnnotation.mustache @@ -3,6 +3,10 @@ {{#hasVars}} @XmlType(name = "{{classname}}", propOrder = { {{#vars}}"{{name}}"{{^-last}}, {{/-last}}{{/vars}} }){{/hasVars}} -{{^hasVars}}@XmlType(name = "{{classname}}"){{/hasVars}} -{{^parent}}@XmlRootElement(name="{{classname}}"){{/parent}} -{{/withXml}} \ No newline at end of file +{{^hasVars}} +@XmlType(name = "{{classname}}") +{{/hasVars}} +{{^parent}} +@XmlRootElement(name="{{classname}}") +{{/parent}} +{{/withXml}} diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/libraries/jersey3/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/libraries/jersey3/pojo.mustache index 56d29332ff4b..9e55f6cd3e7b 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/libraries/jersey3/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/libraries/jersey3/pojo.mustache @@ -9,7 +9,11 @@ {{/vars}} }) {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/pojo.mustache index 374e0ee54270..acd1c30cc062 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/pojo.mustache @@ -9,7 +9,11 @@ {{/vars}} }) {{/jackson}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaPlayFramework/enumClass.mustache b/modules/openapi-generator/src/main/resources/JavaPlayFramework/enumClass.mustache index 118fa321ecba..3808df94d4a6 100644 --- a/modules/openapi-generator/src/main/resources/JavaPlayFramework/enumClass.mustache +++ b/modules/openapi-generator/src/main/resources/JavaPlayFramework/enumClass.mustache @@ -42,3 +42,4 @@ {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected value '" + value + "'");{{/isNullable}} } } + diff --git a/modules/openapi-generator/src/main/resources/JavaPlayFramework/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaPlayFramework/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/JavaPlayFramework/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaPlayFramework/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaPlayFramework/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaPlayFramework/pojo.mustache index f16334328b4f..d9d68c355643 100644 --- a/modules/openapi-generator/src/main/resources/JavaPlayFramework/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaPlayFramework/pojo.mustache @@ -6,7 +6,8 @@ import {{javaxPackage}}.validation.Valid; /** * {{description}}{{^description}}{{classname}}{{/description}} */ -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} @SuppressWarnings({"UnusedReturnValue", "WeakerAccess"}) {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} @@ -33,15 +34,11 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} {{#isContainer}} - {{#useBeanValidation}} - {{>beanValidation}} - {{/useBeanValidation}} + {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}}; {{/isContainer}} {{^isContainer}} - {{#useBeanValidation}} - {{>beanValidation}} - {{/useBeanValidation}} + {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/isContainer}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache index 20ed2e4ac0d3..a62d822d81b8 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/apiDelegate.mustache @@ -69,7 +69,7 @@ public interface {{classname}}Delegate { {{#jdk8-default-interface}}default {{/jdk8-default-interface}}{{>responseType}} {{operationId}}({{#allParams}}{{^isFile}}{{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{/isFile}}{{#isFile}}{{#isArray}}List<{{/isArray}}{{#reactive}}Flux{{/reactive}}{{^reactive}}{{#isFormParam}}MultipartFile{{/isFormParam}}{{^isFormParam}}{{>optionalDataType}}{{/isFormParam}}{{/reactive}}{{#isArray}}>{{/isArray}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#reactive}}{{#hasParams}}, {{/hasParams}}ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}{{#hasParams}}, {{/hasParams}}{{^hasParams}}{{#reactive}}, {{/reactive}}{{/hasParams}}final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{#unhandledException}} throws Exception{{/unhandledException}}{{^jdk8-default-interface}};{{/jdk8-default-interface}}{{#jdk8-default-interface}} { - {{>methodBody}} +{{>methodBody}} }{{/jdk8-default-interface}} {{/operation}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/generatedAnnotation.mustache index 825f846feed3..9254907d18ec 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/generatedAnnotation.mustache @@ -1 +1 @@ -@Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/methodBody.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/methodBody.mustache index bbbc66de3975..c1cd5407d5e0 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/methodBody.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/methodBody.mustache @@ -2,8 +2,8 @@ {{#examples}} {{#-first}} {{#async}} -return CompletableFuture.supplyAsync(()-> { - {{/async}}getRequest().ifPresent(request -> { + return CompletableFuture.supplyAsync(()-> { + {{/async}} getRequest().ifPresent(request -> { {{#async}} {{/async}} for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) { {{/-first}} {{#async}} {{/async}}{{^async}} {{/async}} if (mediaType.isCompatibleWith(MediaType.valueOf("{{{contentType}}}"))) { @@ -24,7 +24,7 @@ return CompletableFuture.supplyAsync(()-> { {{/-last}} {{/examples}} {{^examples}} -{{#useResponseEntity}}return {{#async}}CompletableFuture.completedFuture({{/async}}new ResponseEntity<>({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}){{#async}}){{/async}}; +{{#useResponseEntity}} return {{#async}}CompletableFuture.completedFuture({{/async}}new ResponseEntity<>({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}){{#async}}){{/async}}; {{/useResponseEntity}} {{^useResponseEntity}}throw new IllegalArgumentException("Not implemented"); {{/useResponseEntity}} diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/xmlAnnotation.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/xmlAnnotation.mustache index b3a89fa362fd..a5cc40c226f4 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/xmlAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/xmlAnnotation.mustache @@ -3,4 +3,5 @@ @JacksonXmlRootElement({{#xmlNamespace}}namespace = "{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") {{/jackson}} @XmlRootElement({{#xmlNamespace}}namespace = "{{.}}", {{/xmlNamespace}}name = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") -@XmlAccessorType(XmlAccessType.FIELD){{/withXml}} \ No newline at end of file +@XmlAccessorType(XmlAccessType.FIELD) +{{/withXml}} diff --git a/modules/openapi-generator/src/main/resources/aspnetcore/3.0/model.mustache b/modules/openapi-generator/src/main/resources/aspnetcore/3.0/model.mustache index 68bb4d8f562e..66b50ff67b48 100644 --- a/modules/openapi-generator/src/main/resources/aspnetcore/3.0/model.mustache +++ b/modules/openapi-generator/src/main/resources/aspnetcore/3.0/model.mustache @@ -27,7 +27,11 @@ using {{packageName}}.Converters; {{#models}} {{#model}} namespace {{modelPackage}} -{ {{#isEnum}}{{>enumClass}}{{/isEnum}}{{^isEnum}} +{ +{{#isEnum}} +{{>enumClass}} +{{/isEnum}} +{{^isEnum}} /// /// {{description}} /// @@ -60,6 +64,7 @@ namespace {{modelPackage}} {{^complexType}} {{>enumClass}} {{/complexType}} + {{/isEnum}} /// /// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} diff --git a/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-source.mustache b/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-source.mustache index ae6f06a4cf43..938f7efc9431 100644 --- a/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-source.mustache @@ -51,14 +51,14 @@ bool {{classname}}::validate(std::stringstream& msg, const std::string& pathPref {{#required}}/* {{name}} */ {{/required}}{ const {{{dataType}}}& value = m_{{name}}; const std::string currentValuePath = _pathPrefix + ".{{nameInCamelCase}}"; - {{> model-validation-body }} +{{> model-validation-body }} } {{/isArray}}{{^isArray}}{{#hasValidation}} {{! Only generate validation if necessary }} {{^required}}if ({{nameInCamelCase}}IsSet()){{/required}} {{#required}}/* {{name}} */ {{/required}}{ const {{{dataType}}}& value = m_{{name}}; const std::string currentValuePath = _pathPrefix + ".{{nameInCamelCase}}"; - {{> model-validation-body }} +{{> model-validation-body }} } {{/hasValidation}}{{#required}}{{#isModel}} if (!m_{{name}}.validate(msg, _pathPrefix + ".{{nameInCamelCase}}")) { diff --git a/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source-HandlerBody.mustache b/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source-HandlerBody.mustache index 811d07845f2e..73572e56d32a 100644 --- a/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source-HandlerBody.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source-HandlerBody.mustache @@ -1,4 +1,4 @@ -const auto request = session->get_request(); + const auto request = session->get_request(); {{#hasBodyParam}} // body params or form params here from the body content string std::string bodyContent = extractBodyContent(session); diff --git a/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source.mustache b/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source.mustache index 37275cd03e57..43f384a3136d 100644 --- a/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source.mustache @@ -151,7 +151,7 @@ void {{vendorExtensions.x-codegen-resource-name}}Resource::defaultSessionClose(c void {{vendorExtensions.x-codegen-resource-name}}Resource::handler_{{httpMethod}}_internal(const std::shared_ptr session) { {{#lambda.indented}} - {{>api-source-HandlerBody}} +{{>api-source-HandlerBody}} {{/lambda.indented}} } @@ -160,7 +160,7 @@ void {{vendorExtensions.x-codegen-resource-name}}Resource::handler_{{httpMethod} // x-extension void {{vendorExtensions.x-codegen-resource-name}}Resource::handler_{{httpMethod}}_internal(const std::shared_ptr session) { {{#lambda.indented}} - {{>api-source-HandlerBody}} +{{>api-source-HandlerBody}} {{/lambda.indented}} } diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/class_members.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/class_members.mustache index 0df06e1e3073..83ff312fc0c4 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/class_members.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/class_members.mustache @@ -35,4 +35,4 @@ ..{{{name}}} = {{#isEnum}}{{^isContainer}}const {{{enumName}}}._({{/isContainer}}{{/isEnum}}{{{defaultValue}}}{{#isEnum}}{{^isContainer}}){{/isContainer}}{{/isEnum}}{{/defaultValue}}{{/vendorExtensions.x-self-and-ancestor-only-props}}; {{/vendorExtensions.x-is-parent}} @BuiltValueSerializer(custom: true) - static Serializer<{{classname}}> get serializer => _${{classname}}Serializer(); \ No newline at end of file + static Serializer<{{classname}}> get serializer => _${{classname}}Serializer(); diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/dart_constructor.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/dart_constructor.mustache index 3b99f0c54016..eae224e047c3 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/dart_constructor.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/dart_constructor.mustache @@ -8,4 +8,4 @@ }} {{#required}}{{^defaultValue}}required {{/defaultValue}}{{/required}} this.{{{name}}}{{#defaultValue}} = {{#isEnum}}{{^isContainer}}const {{{enumName}}}._({{/isContainer}}{{/isEnum}}{{{defaultValue}}}{{#isEnum}}{{^isContainer}}){{/isContainer}}{{/isEnum}}{{/defaultValue}}, {{/vars}} - }); \ No newline at end of file + }); diff --git a/modules/openapi-generator/src/main/resources/dart2/dart_constructor.mustache b/modules/openapi-generator/src/main/resources/dart2/dart_constructor.mustache index dc5dfec5f2a7..d4647d2fb5e7 100644 --- a/modules/openapi-generator/src/main/resources/dart2/dart_constructor.mustache +++ b/modules/openapi-generator/src/main/resources/dart2/dart_constructor.mustache @@ -8,3 +8,4 @@ {{#required}}{{^defaultValue}}required {{/defaultValue}}{{/required}}this.{{{name}}}{{#defaultValue}} = {{#isEnum}}{{^isContainer}}const {{{enumName}}}._({{/isContainer}}{{/isEnum}}{{{.}}}{{#isEnum}}{{^isContainer}}){{/isContainer}}{{/isEnum}}{{/defaultValue}}, {{/vars}} }); + diff --git a/modules/openapi-generator/src/main/resources/dart2/part_of.mustache b/modules/openapi-generator/src/main/resources/dart2/part_of.mustache index d31ade250360..40b9c9735064 100644 --- a/modules/openapi-generator/src/main/resources/dart2/part_of.mustache +++ b/modules/openapi-generator/src/main/resources/dart2/part_of.mustache @@ -1 +1,2 @@ {{#pubLibrary}}part of {{{.}}};{{/pubLibrary}}{{^pubLibrary}}part of {{{pubName}}}.api;{{/pubLibrary}} + diff --git a/modules/openapi-generator/src/main/resources/java-camel-server/pojo.mustache b/modules/openapi-generator/src/main/resources/java-camel-server/pojo.mustache index a69d7ebe84b3..b64317d36223 100644 --- a/modules/openapi-generator/src/main/resources/java-camel-server/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/java-camel-server/pojo.mustache @@ -223,7 +223,9 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}} {{>beanValidation}} {{/useBeanValidation}} {{^useBeanValidation}} - {{#required}}@NotNull{{/required}} + {{#required}} + @NotNull + {{/required}} {{/useBeanValidation}} {{#swagger2AnnotationLibrary}} @Schema(name = "{{{baseName}}}"{{#isReadOnly}}, accessMode = Schema.AccessMode.READ_ONLY{{/isReadOnly}}{{#example}}, example = "{{{.}}}"{{/example}}{{#description}}, description = "{{{.}}}"{{/description}}{{#deprecated}}, deprecated = true{{/deprecated}}, requiredMode = {{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}}) diff --git a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/mp/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/mp/generatedAnnotation.mustache index cf058a0fabdc..3961cee81c49 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/mp/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/mp/generatedAnnotation.mustache @@ -1 +1 @@ -@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/generatedAnnotation.mustache index cf058a0fabdc..3961cee81c49 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/generatedAnnotation.mustache @@ -1 +1 @@ -@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/oneof_interface.mustache b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/oneof_interface.mustache index d6727727460d..3c88e8ec9fd0 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/oneof_interface.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/oneof_interface.mustache @@ -1,4 +1,7 @@ -{{>additionalOneOfTypeAnnotations}}{{>generatedAnnotation}}{{>typeInfoAnnotation}}{{>xmlAnnotation}} +{{>additionalOneOfTypeAnnotations}} +{{>generatedAnnotation}} +{{>typeInfoAnnotation}} +{{>xmlAnnotation}} public interface {{classname}} {{#vendorExtensions.x-implements}}{{#-first}}extends {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { {{#discriminator}} public {{propertyType}} {{propertyGetter}}(); diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiAbstract.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiAbstract.mustache index a2d82121b020..2066e08b607b 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiAbstract.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiAbstract.mustache @@ -2,4 +2,4 @@ @Path("{{{path}}}"){{/subresourceOperation}}{{#hasConsumes}} @Consumes({ {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}} @Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }){{/hasProduces}} - {{#useAbstractClass}}abstract {{/useAbstractClass}}{{#supportAsync}}{{>returnAsyncTypeInterface}}{{/supportAsync}}{{^supportAsync}}{{>returnTypes}}{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>cookieParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}); \ No newline at end of file + {{#useAbstractClass}}abstract {{/useAbstractClass}}{{#supportAsync}}{{>returnAsyncTypeInterface}}{{/supportAsync}}{{^supportAsync}}{{>returnTypes}}{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>cookieParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}); diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiMethod.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiMethod.mustache index b1c07572f6cc..071e9c7b4983 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiMethod.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/apiMethod.mustache @@ -19,4 +19,4 @@ {{/vendorExtensions.x-helidon-hasReturnType}} {{/supportAsync}} {{/returnResponse}} - } \ No newline at end of file + } diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/enumClass.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/enumClass.mustache index 1b67dadb3601..108ae648b0c6 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/enumClass.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/enumClass.mustache @@ -46,3 +46,4 @@ {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected value '" + value + "'");{{/isNullable}} } } + diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/generatedAnnotation.mustache index cf058a0fabdc..3961cee81c49 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/mp/generatedAnnotation.mustache @@ -1 +1 @@ -@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{rootJavaEEPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/enumClass.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/enumClass.mustache index b9eeee00409c..3cb41df019b4 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/enumClass.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/enumClass.mustache @@ -60,3 +60,4 @@ {{#useNullForUnknownEnumValue}}return null;{{/useNullForUnknownEnumValue}}{{^useNullForUnknownEnumValue}}throw new IllegalArgumentException("Unexpected value '" + text + "'");{{/useNullForUnknownEnumValue}} } } + diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/generatedAnnotation.mustache index 47b52025e9d7..f9875f682238 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/generatedAnnotation.mustache @@ -1 +1 @@ -@{{rootJavaEEPackage}}.annotation.Generated(value = "{{{generatorClass}}}"{{^hideGenerationTimestamp}}, date = "{{{generatedDate}}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{rootJavaEEPackage}}.annotation.Generated(value = "{{{generatorClass}}}"{{^hideGenerationTimestamp}}, date = "{{{generatedDate}}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/opHelpers.mustache b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/opHelpers.mustache index e5d6a6e8a84b..be3a94fae5d5 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/opHelpers.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/server/libraries/se/opHelpers.mustache @@ -185,3 +185,4 @@ } {{/responses}} } + diff --git a/modules/openapi-generator/src/main/resources/java-micronaut/common/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-micronaut/common/generatedAnnotation.mustache index 6b157d478bec..e84b116ab17f 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut/common/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut/common/generatedAnnotation.mustache @@ -1 +1 @@ -@Generated(value="{{generatorClass}}"{{^hideGenerationTimestamp}}, date="{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@Generated(value="{{generatorClass}}"{{^hideGenerationTimestamp}}, date="{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/modelInnerEnum.mustache b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/modelInnerEnum.mustache index dab5eafddc6a..669c8c0eb2ec 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/modelInnerEnum.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/modelInnerEnum.mustache @@ -57,4 +57,4 @@ throw new IllegalArgumentException("Unexpected value '" + value + "'"); {{/isNullable}} } - } \ No newline at end of file + } diff --git a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache index 2d05a31d1597..b9edb7c35e69 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache @@ -23,7 +23,12 @@ {{#additionalModelTypeAnnotations}} {{{.}}} {{/additionalModelTypeAnnotations}} -{{>common/generatedAnnotation}}{{#discriminator}}{{>common/model/typeInfoAnnotation}}{{/discriminator}}{{>common/model/xmlAnnotation}}{{#useBeanValidation}} +{{>common/generatedAnnotation}} +{{#discriminator}} +{{>common/model/typeInfoAnnotation}} +{{/discriminator}} +{{>common/model/xmlAnnotation}} +{{#useBeanValidation}} @Introspected {{/useBeanValidation}} {{#vendorExtensions.x-class-extra-annotation}} diff --git a/modules/openapi-generator/src/main/resources/java-msf4j-server/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-msf4j-server/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/java-msf4j-server/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-msf4j-server/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-msf4j-server/pojo.mustache b/modules/openapi-generator/src/main/resources/java-msf4j-server/pojo.mustache index 23e732d43d15..a9992d55b760 100644 --- a/modules/openapi-generator/src/main/resources/java-msf4j-server/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/java-msf4j-server/pojo.mustache @@ -1,8 +1,11 @@ /** * {{description}}{{^description}}{{classname}}{{/description}} - */{{#description}} -@ApiModel(description = "{{{.}}}"){{/description}} -{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}} + */ +{{#description}} +@ApiModel(description = "{{{.}}}") +{{/description}} +{{>additionalModelTypeAnnotations}} +{{>generatedAnnotation}} public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtensions.x-implements}}{{#-first}}implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { {{#vars}} {{#isEnum}} diff --git a/modules/openapi-generator/src/main/resources/java-pkmst/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-pkmst/generatedAnnotation.mustache index e05689d5f0f9..fdd494ae9bd5 100644 --- a/modules/openapi-generator/src/main/resources/java-pkmst/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-pkmst/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{generatorClass}}"{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/java-pkmst/pojo.mustache b/modules/openapi-generator/src/main/resources/java-pkmst/pojo.mustache index 39ba1ad15c61..0ec01387a1fd 100644 --- a/modules/openapi-generator/src/main/resources/java-pkmst/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/java-pkmst/pojo.mustache @@ -2,8 +2,15 @@ * {{description}}{{^description}}{{classname}}{{/description}} */{{#description}} @ApiModel(description = "{{{.}}}"){{/description}} -{{#useBeanValidation}}@Validated{{/useBeanValidation}} -{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}}{{>additionalModelTypeAnnotations}} +{{#useBeanValidation}} +@Validated +{{/useBeanValidation}} +{{>generatedAnnotation}} +{{#discriminator}} +{{>typeInfoAnnotation}} +{{/discriminator}} +{{>xmlAnnotation}} +{{>additionalModelTypeAnnotations}} public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtensions.x-implements}}{{#-first}}implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { {{#serializableModel}} private static final long serialVersionUID = 1L; diff --git a/modules/openapi-generator/src/main/resources/java-pkmst/xmlAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-pkmst/xmlAnnotation.mustache index 70e2626635f4..c54529d8c913 100644 --- a/modules/openapi-generator/src/main/resources/java-pkmst/xmlAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-pkmst/xmlAnnotation.mustache @@ -3,4 +3,5 @@ @JacksonXmlRootElement({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") {{/jackson}} @XmlRootElement({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}name = "{{xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") -@XmlAccessorType(XmlAccessType.FIELD){{/withXml}} \ No newline at end of file +@XmlAccessorType(XmlAccessType.FIELD) +{{/withXml}} diff --git a/modules/openapi-generator/src/main/resources/java-undertow-server/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/java-undertow-server/generatedAnnotation.mustache index b57e0d66dffd..3b0aee441ffc 100644 --- a/modules/openapi-generator/src/main/resources/java-undertow-server/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/java-undertow-server/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = "{{{generatorClass}}}"{{^hideGenerationTimestamp}}, date = "{{{generatedDate}}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = "{{{generatorClass}}}"{{^hideGenerationTimestamp}}, date = "{{{generatedDate}}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/generatedAnnotation.mustache index edd44dce6502..178ab75eb134 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = arrayOf("{{generatorClass}}"){{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = arrayOf("{{generatorClass}}"){{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/apiDelegate.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/apiDelegate.mustache index 47bd58a48188..1b6bfda92e8b 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/apiDelegate.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/apiDelegate.mustache @@ -35,7 +35,7 @@ interface {{classname}}Delegate { */ {{#reactive}}{{^isArray}}suspend {{/isArray}}{{/reactive}}fun {{operationId}}({{#allParams}}{{{paramName}}}: {{^isFile}}{{^reactive}}{{>optionalDataType}}{{/reactive}}{{#reactive}}{{^isArray}}{{>optionalDataType}}{{/isArray}}{{#isArray}}{{#isBodyParam}}Flow<{{{baseType}}}>{{/isBodyParam}}{{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{/isArray}}{{/reactive}}{{/isFile}}{{#isFile}}Resource?{{/isFile}}{{^-last}}, {{/-last}}{{/allParams}}): {{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}}{{^skipDefaultDelegateInterface}} { - {{>methodBody}} +{{>methodBody}} }{{/skipDefaultDelegateInterface}} {{/operation}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/dataClass.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/dataClass.mustache index 63eeb81eea3d..ca10f58fa61d 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/dataClass.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/dataClass.mustache @@ -19,12 +19,12 @@ {{/-last}}{{/optionalVars}} ) {{/discriminator}}{{#parent}}: {{{.}}}{{#serializableModel}}, Serializable{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}: Serializable{{/serializableModel}}{{/parent}}{ {{#discriminator}} - {{#requiredVars}} - {{>interfaceReqVar}} - {{/requiredVars}} - {{#optionalVars}} - {{>interfaceOptVar}} - {{/optionalVars}} +{{#requiredVars}} +{{>interfaceReqVar}} +{{/requiredVars}} +{{#optionalVars}} +{{>interfaceOptVar}} +{{/optionalVars}} {{/discriminator}} {{#hasEnums}}{{#vars}}{{#isEnum}} /** diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/generatedAnnotation.mustache index 194dbbd52ef7..0583991c9bb5 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/generatedAnnotation.mustache @@ -1 +1 @@ -@{{javaxPackage}}.annotation.Generated(value = ["{{generatorClass}}"]{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@{{javaxPackage}}.annotation.Generated(value = ["{{generatorClass}}"]{{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceOptVar.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceOptVar.mustache index f8d228d17101..5692336c217c 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceOptVar.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceOptVar.mustache @@ -1,5 +1,10 @@ {{#swagger2AnnotationLibrary}} - @get:Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}requiredMode = Schema.RequiredMode.REQUIRED, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}description = "{{{description}}}"){{/swagger2AnnotationLibrary}}{{#swagger1AnnotationLibrary}} - @get:ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swagger1AnnotationLibrary}}{{#vendorExtensions.x-field-extra-annotation}} - {{{.}}}{{/vendorExtensions.x-field-extra-annotation}} - {{>modelMutable}} {{{name}}}: {{#isEnum}}{{classname}}.{{nameInPascalCase}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}? {{^discriminator}}= {{{defaultValue}}}{{^defaultValue}}null{{/defaultValue}}{{/discriminator}} + @get:Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}requiredMode = Schema.RequiredMode.REQUIRED, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}description = "{{{description}}}")\ +{{/swagger2AnnotationLibrary}} +{{#swagger1AnnotationLibrary}} + @get:ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") +{{/swagger1AnnotationLibrary}} +{{#vendorExtensions.x-field-extra-annotation}} + {{{.}}} +{{/vendorExtensions.x-field-extra-annotation}} + {{>modelMutable}} {{{name}}}: {{#isEnum}}{{classname}}.{{nameInPascalCase}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}?{{^discriminator}} = {{{defaultValue}}}{{^defaultValue}}null{{/defaultValue}}{{/discriminator}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceReqVar.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceReqVar.mustache index 710ae9c450ca..37b6a57cbb80 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceReqVar.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/interfaceReqVar.mustache @@ -1,5 +1,10 @@ {{#swagger2AnnotationLibrary}} - @get:Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}requiredMode = Schema.RequiredMode.REQUIRED, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}description = "{{{description}}}"){{/swagger2AnnotationLibrary}}{{#swagger1AnnotationLibrary}} - @get:ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swagger1AnnotationLibrary}}{{#vendorExtensions.x-field-extra-annotation}} - {{{.}}}{{/vendorExtensions.x-field-extra-annotation}} - {{>modelMutable}} {{{name}}}: {{#isEnum}}{{classname}}.{{nameInPascalCase}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}} + @get:Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}requiredMode = Schema.RequiredMode.REQUIRED, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}description = "{{{description}}}") +{{/swagger2AnnotationLibrary}} +{{#swagger1AnnotationLibrary}} + @get:ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}") +{{/swagger1AnnotationLibrary}} +{{#vendorExtensions.x-field-extra-annotation}} + {{{.}}} +{{/vendorExtensions.x-field-extra-annotation}} + {{>modelMutable}} {{{name}}}: {{#isEnum}}{{classname}}.{{nameInPascalCase}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}} diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/methodBody.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/methodBody.mustache index 30be6d64a4b4..67c718c56177 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/methodBody.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/methodBody.mustache @@ -2,8 +2,8 @@ {{#examples}} {{#-first}} {{#async}} -return CompletableFuture.supplyAsync(()-> { - {{/async}}getRequest().ifPresent { request -> + return CompletableFuture.supplyAsync(()-> { + {{/async}} getRequest().ifPresent { request -> {{#async}} {{/async}} for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) { {{/-first}} {{#async}} {{/async}}{{^async}} {{/async}} if (mediaType.isCompatibleWith(MediaType.valueOf("{{{contentType}}}"))) { @@ -20,9 +20,9 @@ return CompletableFuture.supplyAsync(()-> { {{/-last}} {{/examples}} {{^examples}} -return {{#async}}CompletableFuture.completedFuture({{/async}}ResponseEntity({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}) + return {{#async}}CompletableFuture.completedFuture({{/async}}ResponseEntity({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}) {{/examples}} {{/reactive}} {{#reactive}} -return ResponseEntity({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}) + return ResponseEntity({{#returnSuccessCode}}HttpStatus.OK{{/returnSuccessCode}}{{^returnSuccessCode}}HttpStatus.NOT_IMPLEMENTED{{/returnSuccessCode}}) {{/reactive}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/ktorm-schema/data_class_set.mustache b/modules/openapi-generator/src/main/resources/ktorm-schema/data_class_set.mustache index 39ce7c54fae4..36d29df5111a 100644 --- a/modules/openapi-generator/src/main/resources/ktorm-schema/data_class_set.mustache +++ b/modules/openapi-generator/src/main/resources/ktorm-schema/data_class_set.mustache @@ -1 +1 @@ - set({{{classname}}}s.{{{name}}}, entity.{{{name}}}) \ No newline at end of file + set({{{classname}}}s.{{{name}}}, entity.{{{name}}}) diff --git a/modules/openapi-generator/src/main/resources/python/partial_api.mustache b/modules/openapi-generator/src/main/resources/python/partial_api.mustache index dd3a9a1fa12b..e3b243120e92 100644 --- a/modules/openapi-generator/src/main/resources/python/partial_api.mustache +++ b/modules/openapi-generator/src/main/resources/python/partial_api.mustache @@ -49,4 +49,4 @@ '{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}}, {{/isWildcard}} {{/responses}} - } \ No newline at end of file + } diff --git a/modules/openapi-generator/src/main/resources/rust-server/client-operation.mustache b/modules/openapi-generator/src/main/resources/rust-server/client-operation.mustache index a5f96e3dbfaf..6e33488d489c 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/client-operation.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/client-operation.mustache @@ -265,3 +265,4 @@ } } } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/client-request-body-instance.mustache b/modules/openapi-generator/src/main/resources/rust-server/client-request-body-instance.mustache index f0f265a29d1d..854d69cc9df1 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/client-request-body-instance.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/client-request-body-instance.mustache @@ -107,3 +107,4 @@ {{/bodyParam}} {{/x-consumes-basic}} {{/vendorExtensions}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/client-request-body-multipart-form.mustache b/modules/openapi-generator/src/main/resources/rust-server/client-request-body-multipart-form.mustache index ce8869195f77..a4886dfacd67 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/client-request-body-multipart-form.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/client-request-body-multipart-form.mustache @@ -63,3 +63,4 @@ Ok(h) => h, Err(e) => return Err(ApiError(format!("Unable to create header: {} - {}", multipart_header, e))) }); + diff --git a/modules/openapi-generator/src/main/resources/rust-server/client-response-body-instance.mustache b/modules/openapi-generator/src/main/resources/rust-server/client-response-body-instance.mustache index 3ff6dfb0c7a9..1068d1cea3ec 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/client-response-body-instance.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/client-response-body-instance.mustache @@ -20,3 +20,4 @@ {{/x-produces-plain-text}} {{/x-produces-bytes}} {{/vendorExtensions}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/client-response-body-multipart-related.mustache b/modules/openapi-generator/src/main/resources/rust-server/client-response-body-multipart-related.mustache index 0c6aeaacc490..52b36eca1069 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/client-response-body-multipart-related.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/client-response-body-multipart-related.mustache @@ -74,3 +74,4 @@ let param_{{{paramName}}} = match param_{{{paramName}}} { {{/formParams}} }; {{/vendorExtensions.x-consumes-basic}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache b/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache index aea5b6543760..6e6e0a31b4d8 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache @@ -16,3 +16,4 @@ info!("{{#vendorExtensions}}{{{x-operation-id}}}{{/vendorExtensions}}({{#allParams}}{{#vendorExtensions}}{{{x-format-string}}}{{/vendorExtensions}}{{^-last}}, {{/-last}}{{/allParams}}) - X-Span-ID: {:?}"{{#allParams}}, {{{paramName}}}{{/allParams}}, context.get().0.clone()); Err(ApiError("Api-Error: Operation is NOT implemented".into())) } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/generate-multipart-related.mustache b/modules/openapi-generator/src/main/resources/rust-server/generate-multipart-related.mustache index 59b647a4130c..0c269a0a9bc1 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/generate-multipart-related.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/generate-multipart-related.mustache @@ -37,3 +37,4 @@ write_multipart(&mut body, &boundary, &body_parts) .expect("Failed to write multipart body"); {{/-last}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/response.mustache b/modules/openapi-generator/src/main/resources/rust-server/response.mustache index ac74c0b4e2a3..9fdca8bb88a6 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/response.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/response.mustache @@ -58,3 +58,4 @@ pub enum {{{operationId}}}Response { {{/-last}} {{/responses}} } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-make-service.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-make-service.mustache index 7471c9c2278c..ef87c7cbc056 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-make-service.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-make-service.mustache @@ -58,3 +58,4 @@ impl hyper::service::Service for MakeService where future::ok(service) } } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-operation.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-operation.mustache index 4957b65c4dc5..e2326b44eeae 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-operation.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-operation.mustache @@ -316,3 +316,4 @@ } {{/vendorExtensions.x-has-request-body}} }, + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-paths.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-paths.mustache index c5297d058d26..14945a8addd0 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-paths.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-paths.mustache @@ -21,3 +21,4 @@ mod paths { {{/hasPathParams}} {{/pathSet}} } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache index 97422852ca75..8229c2115a1f 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache @@ -50,3 +50,4 @@ .expect("Unable to create Bad Request response for missing body parameter {{{baseName}}}")), }; {{/required}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-form.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-form.mustache index 24021a86b7f0..4b8bdf6f1379 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-form.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-form.mustache @@ -22,3 +22,4 @@ {{/isMap}} {{/formParams}} {{/vendorExtensions}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-instance.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-instance.mustache index 4fea15ea52c3..763ec41bf2f6 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-instance.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-instance.mustache @@ -18,3 +18,4 @@ {{/bodyParams}} {{/x-consumes-multipart}} {{/vendorExtensions}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache index c5022acf84bb..77b422e36541 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache @@ -96,3 +96,4 @@ } }; {{/formParams}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache index b9dc330ef3f8..22a230855761 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache @@ -84,3 +84,4 @@ }; {{/required}} {{/formParams}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-response-body-instance.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-response-body-instance.mustache index 9bb648c525f7..36655c28fdce 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-response-body-instance.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-response-body-instance.mustache @@ -48,3 +48,4 @@ {{/vendorExtensions}} *response.body_mut() = Body::from(body); {{/dataType}} + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-service-footer.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-service-footer.mustache index 793cd99e5cca..14f25e21201e 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-service-footer.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-service-footer.mustache @@ -12,3 +12,4 @@ )) } } + diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-service-header.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-service-header.mustache index 997b5b5c9f0e..f71d3fe7d602 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-service-header.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-service-header.mustache @@ -92,3 +92,4 @@ impl hyper::service::Service<(Request, C)> for Service where Please update both places if changing how this code is autogenerated. }} match method { + diff --git a/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallGeneric.mustache b/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallGeneric.mustache index d5b1ba61c57c..2ece10b208c3 100644 --- a/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallGeneric.mustache @@ -1,6 +1 @@ -{{^authName}} -delegate.{{operationId}}.handle(req, {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses) -{{/authName}} -{{#authName}} -delegate.{{operationId}}.handle_{{authName}}(auth, req, {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses) -{{/authName}} +{{^authName}}delegate.{{operationId}}.handle(req, {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses){{/authName}}{{#authName}}delegate.{{operationId}}.handle_{{authName}}(auth, req, {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses){{/authName}} diff --git a/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallJson.mustache b/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallJson.mustache index e023b906240b..e7db28395b4e 100644 --- a/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallJson.mustache +++ b/modules/openapi-generator/src/main/resources/scala-http4s-server/delegateCallJson.mustache @@ -1,6 +1 @@ -{{^authName}} - delegate.{{operationId}}.handle(req, req.asJsonDecode[{{{bodyParam.dataType}}}] , {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses) -{{/authName}} -{{#authName}} - delegate.{{operationId}}.handle_{{authName}}(auth, req, req.asJsonDecode[{{{bodyParam.dataType}}}] , {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses) -{{/authName}} +{{^authName}}delegate.{{operationId}}.handle(req, req.asJsonDecode[{{{bodyParam.dataType}}}] , {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses){{/authName}}{{#authName}}delegate.{{operationId}}.handle_{{authName}}(auth, req, req.asJsonDecode[{{{bodyParam.dataType}}}] , {{#pathParams}}{{baseName}}, {{/pathParams}}{{#queryParams}}{{baseName}}, {{/queryParams}}responses){{/authName}} diff --git a/modules/openapi-generator/src/main/resources/scala-play-server/generatedAnnotation.mustache b/modules/openapi-generator/src/main/resources/scala-play-server/generatedAnnotation.mustache index 8f2e5db545bf..74c6f6fa9396 100644 --- a/modules/openapi-generator/src/main/resources/scala-play-server/generatedAnnotation.mustache +++ b/modules/openapi-generator/src/main/resources/scala-play-server/generatedAnnotation.mustache @@ -1 +1 @@ -@javax.annotation.Generated(value = Array("{{generatorClass}}"){{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") \ No newline at end of file +@javax.annotation.Generated(value = Array("{{generatorClass}}"){{^hideGenerationTimestamp}}, date = "{{generatedDate}}"{{/hideGenerationTimestamp}}, comments = "Generator version: {{generatorVersion}}") diff --git a/pom.xml b/pom.xml index 025e70f4534d..556adf1e5c48 100644 --- a/pom.xml +++ b/pom.xml @@ -1227,7 +1227,7 @@ 2.15.2 2.17.1 0.8.10 - 1.15 + 1.16 5.10.2 1.6.21 1.6.21 diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs index e87aec99cc66..bd2e31c4fbc1 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs @@ -141,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs index ae30da28141e..548be7a34a17 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs @@ -143,7 +143,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs index ee11b0f5c9b3..582820f83852 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs @@ -182,7 +182,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs index 3a0530813ead..0b035eabb51c 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs @@ -56,7 +56,6 @@ public enum ArrayStringEnumDefaultEnum [EnumMember(Value = "unclassified")] Unclassified = 3 } - /// /// Initializes a new instance of the class. /// @@ -281,7 +280,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs index ccf8e681847c..919daa9a89e1 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs @@ -159,7 +159,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs index f3b46cae4930..77248f93773d 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -255,7 +254,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs index 0ff925611a5b..c4b37671a36f 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs @@ -56,7 +56,6 @@ public enum OutcomesEnum [EnumMember(Value = "SKIPPED")] SKIPPED = 3 } - /// /// Initializes a new instance of the class. /// @@ -164,7 +163,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs index 66eab762090b..dfe5e85e0b21 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs index d38d85da5203..2228acf8ceac 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs index 124ef98ce3a9..595d4b9eb517 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs @@ -179,7 +179,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.cs index a6cad9859cf1..9c15de049b9b 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/echo_api/go-external-refs/model_bird.go b/samples/client/echo_api/go-external-refs/model_bird.go index 5b15b73862eb..280dad869c98 100644 --- a/samples/client/echo_api/go-external-refs/model_bird.go +++ b/samples/client/echo_api/go-external-refs/model_bird.go @@ -160,4 +160,3 @@ func (v *NullableBird) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_category.go b/samples/client/echo_api/go-external-refs/model_category.go index 20937702195d..55bf1d8ff9f3 100644 --- a/samples/client/echo_api/go-external-refs/model_category.go +++ b/samples/client/echo_api/go-external-refs/model_category.go @@ -160,4 +160,3 @@ func (v *NullableCategory) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_data_query.go b/samples/client/echo_api/go-external-refs/model_data_query.go index 9a5fe8ce9068..91a06e2c0e70 100644 --- a/samples/client/echo_api/go-external-refs/model_data_query.go +++ b/samples/client/echo_api/go-external-refs/model_data_query.go @@ -209,4 +209,3 @@ func (v *NullableDataQuery) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_default_value.go b/samples/client/echo_api/go-external-refs/model_default_value.go index 48d42bfe77b9..137d4095311a 100644 --- a/samples/client/echo_api/go-external-refs/model_default_value.go +++ b/samples/client/echo_api/go-external-refs/model_default_value.go @@ -388,4 +388,3 @@ func (v *NullableDefaultValue) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_number_properties_only.go b/samples/client/echo_api/go-external-refs/model_number_properties_only.go index 667c4aec6db3..ebe46fc73f28 100644 --- a/samples/client/echo_api/go-external-refs/model_number_properties_only.go +++ b/samples/client/echo_api/go-external-refs/model_number_properties_only.go @@ -196,4 +196,3 @@ func (v *NullableNumberPropertiesOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_pet.go b/samples/client/echo_api/go-external-refs/model_pet.go index 13f24706dfd5..9ef6578b13cc 100644 --- a/samples/client/echo_api/go-external-refs/model_pet.go +++ b/samples/client/echo_api/go-external-refs/model_pet.go @@ -329,4 +329,3 @@ func (v *NullablePet) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_query.go b/samples/client/echo_api/go-external-refs/model_query.go index 653e18c8300b..dac78647f266 100644 --- a/samples/client/echo_api/go-external-refs/model_query.go +++ b/samples/client/echo_api/go-external-refs/model_query.go @@ -161,4 +161,3 @@ func (v *NullableQuery) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_string_enum_ref.go b/samples/client/echo_api/go-external-refs/model_string_enum_ref.go index f1ae6625287e..91540adbccff 100644 --- a/samples/client/echo_api/go-external-refs/model_string_enum_ref.go +++ b/samples/client/echo_api/go-external-refs/model_string_enum_ref.go @@ -111,4 +111,3 @@ func (v *NullableStringEnumRef) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_tag.go b/samples/client/echo_api/go-external-refs/model_tag.go index 0b69e30a761e..209b90e04b38 100644 --- a/samples/client/echo_api/go-external-refs/model_tag.go +++ b/samples/client/echo_api/go-external-refs/model_tag.go @@ -160,4 +160,3 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go b/samples/client/echo_api/go-external-refs/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go index b270889eaec8..4c2921ca0e22 100644 --- a/samples/client/echo_api/go-external-refs/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go +++ b/samples/client/echo_api/go-external-refs/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go @@ -232,4 +232,3 @@ func (v *NullableTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParame return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go-external-refs/model_test_query_style_form_explode_true_array_string_query_object_parameter.go b/samples/client/echo_api/go-external-refs/model_test_query_style_form_explode_true_array_string_query_object_parameter.go index d2e8f8775297..eeaf29208ff0 100644 --- a/samples/client/echo_api/go-external-refs/model_test_query_style_form_explode_true_array_string_query_object_parameter.go +++ b/samples/client/echo_api/go-external-refs/model_test_query_style_form_explode_true_array_string_query_object_parameter.go @@ -124,4 +124,3 @@ func (v *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) U return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_bird.go b/samples/client/echo_api/go/model_bird.go index 5b15b73862eb..280dad869c98 100644 --- a/samples/client/echo_api/go/model_bird.go +++ b/samples/client/echo_api/go/model_bird.go @@ -160,4 +160,3 @@ func (v *NullableBird) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_category.go b/samples/client/echo_api/go/model_category.go index 20937702195d..55bf1d8ff9f3 100644 --- a/samples/client/echo_api/go/model_category.go +++ b/samples/client/echo_api/go/model_category.go @@ -160,4 +160,3 @@ func (v *NullableCategory) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_data_query.go b/samples/client/echo_api/go/model_data_query.go index 9a5fe8ce9068..91a06e2c0e70 100644 --- a/samples/client/echo_api/go/model_data_query.go +++ b/samples/client/echo_api/go/model_data_query.go @@ -209,4 +209,3 @@ func (v *NullableDataQuery) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_default_value.go b/samples/client/echo_api/go/model_default_value.go index 48d42bfe77b9..137d4095311a 100644 --- a/samples/client/echo_api/go/model_default_value.go +++ b/samples/client/echo_api/go/model_default_value.go @@ -388,4 +388,3 @@ func (v *NullableDefaultValue) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_number_properties_only.go b/samples/client/echo_api/go/model_number_properties_only.go index 667c4aec6db3..ebe46fc73f28 100644 --- a/samples/client/echo_api/go/model_number_properties_only.go +++ b/samples/client/echo_api/go/model_number_properties_only.go @@ -196,4 +196,3 @@ func (v *NullableNumberPropertiesOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_pet.go b/samples/client/echo_api/go/model_pet.go index 13f24706dfd5..9ef6578b13cc 100644 --- a/samples/client/echo_api/go/model_pet.go +++ b/samples/client/echo_api/go/model_pet.go @@ -329,4 +329,3 @@ func (v *NullablePet) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_query.go b/samples/client/echo_api/go/model_query.go index 653e18c8300b..dac78647f266 100644 --- a/samples/client/echo_api/go/model_query.go +++ b/samples/client/echo_api/go/model_query.go @@ -161,4 +161,3 @@ func (v *NullableQuery) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_string_enum_ref.go b/samples/client/echo_api/go/model_string_enum_ref.go index f1ae6625287e..91540adbccff 100644 --- a/samples/client/echo_api/go/model_string_enum_ref.go +++ b/samples/client/echo_api/go/model_string_enum_ref.go @@ -111,4 +111,3 @@ func (v *NullableStringEnumRef) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_tag.go b/samples/client/echo_api/go/model_tag.go index 0b69e30a761e..209b90e04b38 100644 --- a/samples/client/echo_api/go/model_tag.go +++ b/samples/client/echo_api/go/model_tag.go @@ -160,4 +160,3 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_test_form_object_multipart_request_marker.go b/samples/client/echo_api/go/model_test_form_object_multipart_request_marker.go index d25366f75c12..19fd383c9910 100644 --- a/samples/client/echo_api/go/model_test_form_object_multipart_request_marker.go +++ b/samples/client/echo_api/go/model_test_form_object_multipart_request_marker.go @@ -124,4 +124,3 @@ func (v *NullableTestFormObjectMultipartRequestMarker) UnmarshalJSON(src []byte) return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go b/samples/client/echo_api/go/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go index b270889eaec8..4c2921ca0e22 100644 --- a/samples/client/echo_api/go/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go +++ b/samples/client/echo_api/go/model_test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.go @@ -232,4 +232,3 @@ func (v *NullableTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParame return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/go/model_test_query_style_form_explode_true_array_string_query_object_parameter.go b/samples/client/echo_api/go/model_test_query_style_form_explode_true_array_string_query_object_parameter.go index d2e8f8775297..eeaf29208ff0 100644 --- a/samples/client/echo_api/go/model_test_query_style_form_explode_true_array_string_query_object_parameter.go +++ b/samples/client/echo_api/go/model_test_query_style_form_explode_true_array_string_query_object_parameter.go @@ -124,4 +124,3 @@ func (v *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) U return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java index 361d461c6639..0671a00d9cbe 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java @@ -34,14 +34,13 @@ Bird.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -56,8 +55,7 @@ public Bird size(@javax.annotation.Nullable String size) { * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -81,8 +79,7 @@ public Bird color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java index ab9af00bda1a..4000c4803569 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java @@ -34,14 +34,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -56,8 +55,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -81,8 +79,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java index 08a99cf81eea..331520eaeae3 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -40,18 +40,16 @@ DataQuery.JSON_PROPERTY_DATE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nullable - private OffsetDateTime date; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { @@ -67,8 +65,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -92,8 +89,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -117,8 +113,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * A date * @return date */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java index f3878ee31252..ef0d4ed59cd4 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -48,10 +48,10 @@ DefaultValue.JSON_PROPERTY_STRING_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -89,34 +89,26 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; - @javax.annotation.Nullable - private List arrayString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; - @javax.annotation.Nullable - private JsonNullable stringNullable = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } @@ -139,8 +131,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -172,8 +163,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -205,8 +195,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -238,8 +227,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -271,8 +259,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -308,8 +295,7 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringNullable() { return arrayStringNullable.orElse(null); @@ -317,7 +303,6 @@ public List getArrayStringNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } @@ -353,8 +338,7 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); @@ -362,7 +346,6 @@ public List getArrayStringExtensionNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } @@ -386,8 +369,7 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * Get stringNullable * @return stringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringNullable() { return stringNullable.orElse(null); @@ -395,7 +377,6 @@ public String getStringNullable() { @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 5f44753f35b3..3021ef5afdbe 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -36,18 +36,16 @@ NumberPropertiesOnly.JSON_PROPERTY_DOUBLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -62,8 +60,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * Get number * @return number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -87,8 +84,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * Get _float * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -114,8 +110,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * maximum: 50.2 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 32efe4b67ed9..dfa4bfdb727a 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -168,8 +160,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -234,8 +224,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -259,8 +248,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java index 7383b1df01a4..384b62289a53 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java @@ -37,10 +37,10 @@ Query.JSON_PROPERTY_OUTCOMES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - protected Long id; + @javax.annotation.Nullable protected Long id; /** * Gets or Sets outcomes @@ -78,10 +78,8 @@ public static OutcomesEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; - @javax.annotation.Nullable - protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -96,8 +94,7 @@ public Query id(@javax.annotation.Nullable Long id) { * Query * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -129,8 +126,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java index bfbc60ff793b..506bcd9b2fc0 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java @@ -34,14 +34,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -56,8 +55,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -81,8 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index b441ab62d790..657bd4038c5f 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -34,10 +34,10 @@ }) @JsonTypeName("test_form_object_multipart_request_marker") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -52,8 +52,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 0294f53b1e92..676549576327 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -37,22 +37,19 @@ }) @JsonTypeName("test_query_style_deepObject_explode_true_object_allOf_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -67,8 +64,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -92,8 +88,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -117,8 +112,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -142,8 +136,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index e3f337b30064..9e500c905166 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -37,10 +37,10 @@ }) @JsonTypeName("test_query_style_form_explode_true_array_string_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; - @javax.annotation.Nullable - private List values = new ArrayList<>(); + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -63,8 +63,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java index 5dc5e0d3f0c5..8723d58f7fb0 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Bird.java @@ -26,16 +26,15 @@ * Bird */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -51,7 +50,6 @@ public Bird size(@javax.annotation.Nullable String size) { * @return size */ @javax.annotation.Nullable - public String getSize() { return size; } @@ -73,7 +71,6 @@ public Bird color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - public String getColor() { return color; } @@ -83,7 +80,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java index c128cee24311..431739aad802 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Category.java @@ -26,16 +26,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -51,7 +50,6 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -73,7 +71,6 @@ public Category name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } @@ -83,7 +80,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java index 606a98af052d..8e5ed773f7a5 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DataQuery.java @@ -31,21 +31,19 @@ * DataQuery */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String SERIALIZED_NAME_SUFFIX = "suffix"; @SerializedName(SERIALIZED_NAME_SUFFIX) - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nullable - private OffsetDateTime date; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { @@ -62,7 +60,6 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * @return suffix */ @javax.annotation.Nullable - public String getSuffix() { return suffix; } @@ -84,7 +81,6 @@ public DataQuery text(@javax.annotation.Nullable String text) { * @return text */ @javax.annotation.Nullable - public String getText() { return text; } @@ -106,7 +102,6 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * @return date */ @javax.annotation.Nullable - public OffsetDateTime getDate() { return date; } @@ -116,7 +111,6 @@ public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java index 09d07d8b75e1..6e0df46c3a33 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -31,11 +31,11 @@ * to test the default value of properties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT) - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -85,41 +85,33 @@ public ArrayStringEnumDefaultEnum read(final JsonReader jsonReader) throws IOExc } } } - public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT) - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String SERIALIZED_NAME_ARRAY_STRING_DEFAULT = "array_string_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_DEFAULT) - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT = "array_integer_default"; @SerializedName(SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT) - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String SERIALIZED_NAME_ARRAY_STRING = "array_string"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING) - @javax.annotation.Nullable - private List arrayString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_STRING_NULLABLE = "array_string_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_NULLABLE) - @javax.annotation.Nullable - private List arrayStringNullable; + @javax.annotation.Nullable private List arrayStringNullable; public static final String SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE) - @javax.annotation.Nullable - private List arrayStringExtensionNullable; + @javax.annotation.Nullable private List arrayStringExtensionNullable; public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable"; @SerializedName(SERIALIZED_NAME_STRING_NULLABLE) - @javax.annotation.Nullable - private String stringNullable; + @javax.annotation.Nullable private String stringNullable; public DefaultValue() { } @@ -143,7 +135,6 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @javax.annotation.Nullable - public List getArrayStringEnumRefDefault() { return arrayStringEnumRefDefault; } @@ -173,7 +164,6 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @javax.annotation.Nullable - public List getArrayStringEnumDefault() { return arrayStringEnumDefault; } @@ -203,7 +193,6 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @javax.annotation.Nullable - public List getArrayStringDefault() { return arrayStringDefault; } @@ -233,7 +222,6 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @javax.annotation.Nullable - public List getArrayIntegerDefault() { return arrayIntegerDefault; } @@ -263,7 +251,6 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @javax.annotation.Nullable - public List getArrayString() { return arrayString; } @@ -293,7 +280,6 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * @return arrayStringNullable */ @javax.annotation.Nullable - public List getArrayStringNullable() { return arrayStringNullable; } @@ -323,7 +309,6 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * @return arrayStringExtensionNullable */ @javax.annotation.Nullable - public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable; } @@ -345,7 +330,6 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * @return stringNullable */ @javax.annotation.Nullable - public String getStringNullable() { return stringNullable; } @@ -355,7 +339,6 @@ public void setStringNullable(@javax.annotation.Nullable String stringNullable) this.stringNullable = stringNullable; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 7cfde325390f..e84ee9b90525 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -27,21 +27,19 @@ * NumberPropertiesOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -57,7 +55,6 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * @return number */ @javax.annotation.Nullable - public BigDecimal getNumber() { return number; } @@ -79,7 +76,6 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - public Float getFloat() { return _float; } @@ -103,7 +99,6 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - public Double getDouble() { return _double; } @@ -113,7 +108,6 @@ public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java index bf904ee1a7f5..6b71e11a612d 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -31,31 +31,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -105,11 +101,9 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -125,7 +119,6 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -147,7 +140,6 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } @@ -169,7 +161,6 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - public Category getCategory() { return category; } @@ -199,7 +190,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - public List getPhotoUrls() { return photoUrls; } @@ -229,7 +219,6 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - public List getTags() { return tags; } @@ -251,7 +240,6 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } @@ -261,7 +249,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java index 23ea531e016d..25238f35d621 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java @@ -29,11 +29,11 @@ * Query */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; /** * Gets or Sets outcomes @@ -83,11 +83,9 @@ public OutcomesEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_OUTCOMES = "outcomes"; @SerializedName(SERIALIZED_NAME_OUTCOMES) - @javax.annotation.Nullable - private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -103,7 +101,6 @@ public Query id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -133,7 +130,6 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @javax.annotation.Nullable - public List getOutcomes() { return outcomes; } @@ -143,7 +139,6 @@ public void setOutcomes(@javax.annotation.Nullable List outcomes) this.outcomes = outcomes; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java index 3879ea1fbb77..a1ae638ac193 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -26,16 +26,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -51,7 +50,6 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -73,7 +71,6 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } @@ -83,7 +80,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 6ebad72a27c9..793497c91f87 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -26,11 +26,11 @@ * TestFormObjectMultipartRequestMarker */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -46,7 +46,6 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * @return name */ @javax.annotation.Nullable - public String getName() { return name; } @@ -56,7 +55,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 93fac35e29f3..db59ed6b62c4 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -26,26 +26,23 @@ * TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -61,7 +58,6 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @javax.annotation.Nullable - public String getSize() { return size; } @@ -83,7 +79,6 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @javax.annotation.Nullable - public String getColor() { return color; } @@ -105,7 +100,6 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -127,7 +121,6 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @javax.annotation.Nullable - public String getName() { return name; } @@ -137,7 +130,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 2947e11be5d8..1a50920fb2a6 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -29,11 +29,11 @@ * TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - @javax.annotation.Nullable - private List values = new ArrayList<>(); + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -57,7 +57,6 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @javax.annotation.Nullable - public List getValues() { return values; } @@ -67,7 +66,6 @@ public void setValues(@javax.annotation.Nullable List values) { this.values = values; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/native/docs/Bird.md b/samples/client/echo_api/java/native/docs/Bird.md index 2a6f8a660d65..958d8cb5b528 100644 --- a/samples/client/echo_api/java/native/docs/Bird.md +++ b/samples/client/echo_api/java/native/docs/Bird.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/Category.md b/samples/client/echo_api/java/native/docs/Category.md index 7289ebf585bb..287bdad9fda4 100644 --- a/samples/client/echo_api/java/native/docs/Category.md +++ b/samples/client/echo_api/java/native/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/DataQuery.md b/samples/client/echo_api/java/native/docs/DataQuery.md index d61a881571c0..22c86098e9f2 100644 --- a/samples/client/echo_api/java/native/docs/DataQuery.md +++ b/samples/client/echo_api/java/native/docs/DataQuery.md @@ -12,4 +12,3 @@ |**date** | **Instant** | A date | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/DefaultValue.md b/samples/client/echo_api/java/native/docs/DefaultValue.md index 20a9b8ee2508..5e6eb2bae23d 100644 --- a/samples/client/echo_api/java/native/docs/DefaultValue.md +++ b/samples/client/echo_api/java/native/docs/DefaultValue.md @@ -28,4 +28,3 @@ to test the default value of properties | UNCLASSIFIED | "unclassified" | - diff --git a/samples/client/echo_api/java/native/docs/NumberPropertiesOnly.md b/samples/client/echo_api/java/native/docs/NumberPropertiesOnly.md index 7e153538475a..19fae1c9af0b 100644 --- a/samples/client/echo_api/java/native/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/java/native/docs/NumberPropertiesOnly.md @@ -12,4 +12,3 @@ |**_double** | **Double** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/Pet.md b/samples/client/echo_api/java/native/docs/Pet.md index 82aa8a25ed7c..4d0c4ead463a 100644 --- a/samples/client/echo_api/java/native/docs/Pet.md +++ b/samples/client/echo_api/java/native/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/echo_api/java/native/docs/Query.md b/samples/client/echo_api/java/native/docs/Query.md index 99c6fd6faa5d..c42bafa4e06d 100644 --- a/samples/client/echo_api/java/native/docs/Query.md +++ b/samples/client/echo_api/java/native/docs/Query.md @@ -21,4 +21,3 @@ | SKIPPED | "SKIPPED" | - diff --git a/samples/client/echo_api/java/native/docs/StringEnumRef.md b/samples/client/echo_api/java/native/docs/StringEnumRef.md index dff22ecf074b..74722d1ace40 100644 --- a/samples/client/echo_api/java/native/docs/StringEnumRef.md +++ b/samples/client/echo_api/java/native/docs/StringEnumRef.md @@ -12,4 +12,3 @@ * `UNCLASSIFIED` (value: `"unclassified"`) - diff --git a/samples/client/echo_api/java/native/docs/Tag.md b/samples/client/echo_api/java/native/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/echo_api/java/native/docs/Tag.md +++ b/samples/client/echo_api/java/native/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/java/native/docs/TestFormObjectMultipartRequestMarker.md index 3e67574f36d3..108e02d59ea6 100644 --- a/samples/client/echo_api/java/native/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/java/native/docs/TestFormObjectMultipartRequestMarker.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/java/native/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index a756a343e8a8..98b0c847dffe 100644 --- a/samples/client/echo_api/java/native/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/java/native/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -13,4 +13,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/echo_api/java/native/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md b/samples/client/echo_api/java/native/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md index 9235e80fb823..3c1de3381a4b 100644 --- a/samples/client/echo_api/java/native/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md +++ b/samples/client/echo_api/java/native/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md @@ -10,4 +10,3 @@ |**values** | **List<String>** | | [optional] | - diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index cf59d691c93c..cf473f80d728 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -143,5 +143,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java index b84c6db75f20..b48b00946848 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java @@ -37,14 +37,13 @@ Bird.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -58,8 +57,7 @@ public Bird size(@javax.annotation.Nullable String size) { * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { return size; @@ -82,8 +80,7 @@ public Bird color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; @@ -96,7 +93,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Bird object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java index ffd1ad0aee17..057eaac0ffaa 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -37,14 +37,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -58,8 +57,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +80,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +93,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Category object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java index 27d78a88f311..ff7cb0c4919b 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java @@ -42,18 +42,16 @@ DataQuery.JSON_PROPERTY_DATE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nullable - private Instant date; + @javax.annotation.Nullable private Instant date; public DataQuery() { } @@ -67,8 +65,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { return suffix; @@ -91,8 +88,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { return text; @@ -115,8 +111,7 @@ public DataQuery date(@javax.annotation.Nullable Instant date) { * A date * @return date */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Instant getDate() { return date; @@ -129,7 +124,6 @@ public void setDate(@javax.annotation.Nullable Instant date) { this.date = date; } - @Override public DataQuery id(@javax.annotation.Nullable Long id) { this.setId(id); diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java index 67589ae146ca..aec4ab4c7bff 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -50,10 +50,10 @@ DefaultValue.JSON_PROPERTY_STRING_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -91,22 +91,17 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; - @javax.annotation.Nullable - private List arrayString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); @@ -137,8 +132,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { return arrayStringEnumRefDefault; @@ -169,8 +163,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { return arrayStringEnumDefault; @@ -201,8 +194,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { return arrayStringDefault; @@ -233,8 +225,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { return arrayIntegerDefault; @@ -265,8 +256,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { return arrayString; @@ -301,15 +291,13 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } @@ -345,15 +333,13 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } @@ -377,15 +363,13 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * Get stringNullable * @return stringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringNullable() { return stringNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } @@ -399,7 +383,6 @@ public void setStringNullable(@javax.annotation.Nullable String stringNullable) this.stringNullable = JsonNullable.of(stringNullable); } - /** * Return true if this DefaultValue object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 7d137c11f083..60d32afac589 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -39,18 +39,16 @@ NumberPropertiesOnly.JSON_PROPERTY_DOUBLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -64,8 +62,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * Get number * @return number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { return number; @@ -88,8 +85,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * Get _float * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; @@ -114,8 +110,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * maximum: 50.2 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; @@ -128,7 +123,6 @@ public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; } - /** * Return true if this NumberPropertiesOnly object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java index c2103c4e4807..1ab7460832ac 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -45,26 +45,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -102,10 +98,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -143,8 +136,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -167,8 +159,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -199,8 +190,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -255,8 +244,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -269,7 +257,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java index cb7f8b46aa03..473c46c8cf12 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java @@ -39,10 +39,10 @@ Query.JSON_PROPERTY_OUTCOMES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; /** * Gets or Sets outcomes @@ -80,10 +80,8 @@ public static OutcomesEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; - @javax.annotation.Nullable - private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -97,8 +95,7 @@ public Query id(@javax.annotation.Nullable Long id) { * Query * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -129,8 +126,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { return outcomes; @@ -143,7 +139,6 @@ public void setOutcomes(@javax.annotation.Nullable List outcomes) this.outcomes = outcomes; } - /** * Return true if this Query object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java index 40576eb1c3a0..89e4933d70dc 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -37,14 +37,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -58,8 +57,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +80,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +93,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index a94fbeda20b3..567eb4269ef1 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -36,10 +36,10 @@ TestFormObjectMultipartRequestMarker.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -53,8 +53,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -67,7 +66,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this test_form_object_multipart_request_marker object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 17049ccb438a..4f839cd1e336 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -39,22 +39,19 @@ TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -68,8 +65,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { return size; @@ -92,8 +88,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; @@ -116,8 +111,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -140,8 +134,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -154,7 +147,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this test_query_style_deepObject_explode_true_object_allOf_query_object_parameter object is equal to o. */ diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 749dd75adf99..43ecd28b32ab 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -38,10 +38,10 @@ TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.JSON_PROPERTY_VALUES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; - @javax.annotation.Nullable - private List values = new ArrayList<>(); + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -63,8 +63,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { return values; @@ -77,7 +76,6 @@ public void setValues(@javax.annotation.Nullable List values) { this.values = values; } - /** * Return true if this test_query_style_form_explode_true_array_string_query_object_parameter object is equal to o. */ diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Category.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Category.java index a46f851ce72d..630c706e234f 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Category.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Category.java @@ -25,11 +25,11 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public Category() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/ModelApiResponse.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/ModelApiResponse.java index 8a9e434e7c43..4a73baaf4248 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/ModelApiResponse.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/ModelApiResponse.java @@ -25,11 +25,11 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public ModelApiResponse() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Order.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Order.java index 0f1e02f420f9..c0c981a24555 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Order.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Order.java @@ -25,11 +25,11 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public Order() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Pet.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Pet.java index 94e2cb52a51d..d4ac842dae13 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Pet.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Pet.java @@ -25,11 +25,11 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public Pet() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Tag.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Tag.java index 652cf0d7ff56..e4e8142da38e 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Tag.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/Tag.java @@ -25,11 +25,11 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public Tag() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/User.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/User.java index 808a6da511cf..2ff7c1ea768c 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/User.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/modelCopy/User.java @@ -25,11 +25,11 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public User() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java index 37002712db4d..37fc87701f31 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * A category for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -101,7 +98,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4985d7bd9088..5d5afd8705e4 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * Describes the result of uploading an image resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -125,7 +120,6 @@ public void setMessage(@javax.annotation.Nullable String message) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java index 2351919eec6a..fdd9a18ccc27 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * An order for a pets from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -252,7 +240,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java index 04a48fb35b63..87deb507167d 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -151,8 +145,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -276,7 +264,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java index 6de6cf8769f4..9bf445676997 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * A tag for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -101,7 +98,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java index c6a0b23dcbd2..17294b3096f2 100644 --- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * A User who is purchasing from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -245,7 +230,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index f9d75d9f2c0b..921f54a201cf 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java index 39abbcc32119..d51a1c77ec69 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Bird.java @@ -49,16 +49,15 @@ * Bird */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -72,8 +71,7 @@ public Bird size(@javax.annotation.Nullable String size) { * Get size * @return size */ - @javax.annotation.Nullable - public String getSize() { + @javax.annotation.Nullable public String getSize() { return size; } @@ -91,8 +89,7 @@ public Bird color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -101,7 +98,6 @@ public void setColor(@javax.annotation.Nullable String color) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 049946e40401..2f762fc45e15 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -101,7 +98,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java index 1f14e151e706..4054048c7451 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DataQuery.java @@ -53,21 +53,19 @@ * DataQuery */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String SERIALIZED_NAME_SUFFIX = "suffix"; @SerializedName(SERIALIZED_NAME_SUFFIX) - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nullable - private OffsetDateTime date; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { } @@ -81,8 +79,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @javax.annotation.Nullable - public String getSuffix() { + @javax.annotation.Nullable public String getSuffix() { return suffix; } @@ -100,8 +97,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @javax.annotation.Nullable - public String getText() { + @javax.annotation.Nullable public String getText() { return text; } @@ -119,8 +115,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * A date * @return date */ - @javax.annotation.Nullable - public OffsetDateTime getDate() { + @javax.annotation.Nullable public OffsetDateTime getDate() { return date; } @@ -129,7 +124,6 @@ public void setDate(@javax.annotation.Nullable OffsetDateTime date) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java index 01585e62fced..126007d2f36c 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -53,11 +53,11 @@ * to test the default value of properties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT) - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -112,41 +112,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ArrayStringEnumDefaultEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT) - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String SERIALIZED_NAME_ARRAY_STRING_DEFAULT = "array_string_default"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_DEFAULT) - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT = "array_integer_default"; @SerializedName(SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT) - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String SERIALIZED_NAME_ARRAY_STRING = "array_string"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING) - @javax.annotation.Nullable - private List arrayString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_STRING_NULLABLE = "array_string_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_NULLABLE) - @javax.annotation.Nullable - private List arrayStringNullable; + @javax.annotation.Nullable private List arrayStringNullable; public static final String SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE) - @javax.annotation.Nullable - private List arrayStringExtensionNullable; + @javax.annotation.Nullable private List arrayStringExtensionNullable; public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable"; @SerializedName(SERIALIZED_NAME_STRING_NULLABLE) - @javax.annotation.Nullable - private String stringNullable; + @javax.annotation.Nullable private String stringNullable; public DefaultValue() { } @@ -168,8 +160,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @javax.annotation.Nullable - public List getArrayStringEnumRefDefault() { + @javax.annotation.Nullable public List getArrayStringEnumRefDefault() { return arrayStringEnumRefDefault; } @@ -195,8 +186,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @javax.annotation.Nullable - public List getArrayStringEnumDefault() { + @javax.annotation.Nullable public List getArrayStringEnumDefault() { return arrayStringEnumDefault; } @@ -222,8 +212,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @javax.annotation.Nullable - public List getArrayStringDefault() { + @javax.annotation.Nullable public List getArrayStringDefault() { return arrayStringDefault; } @@ -249,8 +238,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @javax.annotation.Nullable - public List getArrayIntegerDefault() { + @javax.annotation.Nullable public List getArrayIntegerDefault() { return arrayIntegerDefault; } @@ -276,8 +264,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @javax.annotation.Nullable - public List getArrayString() { + @javax.annotation.Nullable public List getArrayString() { return arrayString; } @@ -303,8 +290,7 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @javax.annotation.Nullable - public List getArrayStringNullable() { + @javax.annotation.Nullable public List getArrayStringNullable() { return arrayStringNullable; } @@ -330,8 +316,7 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @javax.annotation.Nullable - public List getArrayStringExtensionNullable() { + @javax.annotation.Nullable public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable; } @@ -349,8 +334,7 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * Get stringNullable * @return stringNullable */ - @javax.annotation.Nullable - public String getStringNullable() { + @javax.annotation.Nullable public String getStringNullable() { return stringNullable; } @@ -359,7 +343,6 @@ public void setStringNullable(@javax.annotation.Nullable String stringNullable) } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 8dddb47bbbb8..799e3dfde3a5 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -50,21 +50,19 @@ * NumberPropertiesOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -78,8 +76,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * Get number * @return number */ - @javax.annotation.Nullable - public BigDecimal getNumber() { + @javax.annotation.Nullable public BigDecimal getNumber() { return number; } @@ -97,8 +94,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * Get _float * @return _float */ - @javax.annotation.Nullable - public Float getFloat() { + @javax.annotation.Nullable public Float getFloat() { return _float; } @@ -118,8 +114,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * maximum: 50.2 * @return _double */ - @javax.annotation.Nullable - public Double getDouble() { + @javax.annotation.Nullable public Double getDouble() { return _double; } @@ -128,7 +123,6 @@ public void setDouble(@javax.annotation.Nullable Double _double) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index ff29135a2e84..761c024e3fbf 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -150,8 +144,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -188,8 +180,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -215,8 +206,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -261,8 +250,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -271,7 +259,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java index 104b498c71d0..9eb2c0f20e0d 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Query.java @@ -51,11 +51,11 @@ * Query */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; /** * Gets or Sets outcomes @@ -110,11 +110,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti OutcomesEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_OUTCOMES = "outcomes"; @SerializedName(SERIALIZED_NAME_OUTCOMES) - @javax.annotation.Nullable - private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable private List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -128,8 +126,7 @@ public Query id(@javax.annotation.Nullable Long id) { * Query * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -155,8 +152,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @javax.annotation.Nullable - public List getOutcomes() { + @javax.annotation.Nullable public List getOutcomes() { return outcomes; } @@ -165,7 +161,6 @@ public void setOutcomes(@javax.annotation.Nullable List outcomes) } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index a9a5ea327d05..c10b6af5174b 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -101,7 +98,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index e534d99f4a72..080b74d9a65b 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -49,11 +49,11 @@ * TestFormObjectMultipartRequestMarker */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -67,8 +67,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -77,7 +76,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index d0c5e0944cf7..63cbd551eda8 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -49,26 +49,23 @@ * TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -82,8 +79,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @javax.annotation.Nullable - public String getSize() { + @javax.annotation.Nullable public String getSize() { return size; } @@ -101,8 +97,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -120,8 +115,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -139,8 +133,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -149,7 +142,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 2cc079464993..3966364f459d 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -51,11 +51,11 @@ * TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) - @javax.annotation.Nullable - private List values = new ArrayList<>(); + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -77,8 +77,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @javax.annotation.Nullable - public List getValues() { + @javax.annotation.Nullable public List getValues() { return values; } @@ -87,7 +86,6 @@ public void setValues(@javax.annotation.Nullable List values) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java index 34e899ff4069..6fc7e6f31b5a 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java @@ -31,14 +31,13 @@ Bird.JSON_PROPERTY_COLOR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; - @jakarta.annotation.Nullable - private String size; + @jakarta.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - private String color; + @jakarta.annotation.Nullable private String color; public Bird() { } @@ -53,8 +52,7 @@ public Bird size(@jakarta.annotation.Nullable String size) { * Get size * @return size */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -78,8 +76,7 @@ public Bird color(@jakarta.annotation.Nullable String color) { * Get color * @return color */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java index e473fd07b525..b9f8599457e6 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Category() { } @@ -53,8 +52,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java index 2c143745ac8d..0837ad67314a 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -37,18 +37,16 @@ DataQuery.JSON_PROPERTY_DATE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; - @jakarta.annotation.Nullable - private String suffix; + @jakarta.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; - @jakarta.annotation.Nullable - private String text; + @jakarta.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nullable - private Instant date; + @jakarta.annotation.Nullable private Instant date; public DataQuery() { @@ -64,8 +62,7 @@ public DataQuery suffix(@jakarta.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -89,8 +86,7 @@ public DataQuery text(@jakarta.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -114,8 +110,7 @@ public DataQuery date(@jakarta.annotation.Nullable Instant date) { * A date * @return date */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Instant getDate() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java index 76cb555663a9..dc588ee96dfc 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -45,10 +45,10 @@ DefaultValue.JSON_PROPERTY_STRING_NULLABLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; - @jakarta.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @jakarta.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -86,34 +86,26 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; - @jakarta.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @jakarta.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; - @jakarta.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @jakarta.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; - @jakarta.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @jakarta.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; - @jakarta.annotation.Nullable - private List arrayString = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; - @jakarta.annotation.Nullable - private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; - @jakarta.annotation.Nullable - private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; - @jakarta.annotation.Nullable - private JsonNullable stringNullable = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } @@ -136,8 +128,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -169,8 +160,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -202,8 +192,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -235,8 +224,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -268,8 +256,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -305,8 +292,7 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayStringNullable() { return arrayStringNullable.orElse(null); @@ -314,7 +300,6 @@ public List getArrayStringNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } @@ -350,8 +335,7 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); @@ -359,7 +343,6 @@ public List getArrayStringExtensionNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } @@ -383,8 +366,7 @@ public DefaultValue stringNullable(@jakarta.annotation.Nullable String stringNul * Get stringNullable * @return stringNullable */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getStringNullable() { return stringNullable.orElse(null); @@ -392,7 +374,6 @@ public String getStringNullable() { @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 0ad8e1425d09..ac7d95bef904 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -33,18 +33,16 @@ NumberPropertiesOnly.JSON_PROPERTY_DOUBLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nullable - private BigDecimal number; + @jakarta.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -59,8 +57,7 @@ public NumberPropertiesOnly number(@jakarta.annotation.Nullable BigDecimal numbe * Get number * @return number */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -84,8 +81,7 @@ public NumberPropertiesOnly _float(@jakarta.annotation.Nullable Float _float) { * Get _float * @return _float */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -111,8 +107,7 @@ public NumberPropertiesOnly _double(@jakarta.annotation.Nullable Double _double) * maximum: 50.2 * @return _double */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index b87d1ffb0c7a..0bc044cac11b 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -40,26 +40,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -97,10 +93,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -115,8 +109,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -140,8 +133,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -165,8 +157,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -198,8 +189,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -256,8 +245,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java index 23a782052209..19b93f432bb7 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java @@ -34,10 +34,10 @@ Query.JSON_PROPERTY_OUTCOMES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - protected Long id; + @jakarta.annotation.Nullable protected Long id; /** * Gets or Sets outcomes @@ -75,10 +75,8 @@ public static OutcomesEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; - @jakarta.annotation.Nullable - protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @jakarta.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -93,8 +91,7 @@ public Query id(@jakarta.annotation.Nullable Long id) { * Query * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,8 +123,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index 47692c004012..2fa12962577b 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 0da88ff96307..827bb7bce4dd 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -31,10 +31,10 @@ }) @JsonTypeName("test_form_object_multipart_request_marker") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -49,8 +49,7 @@ public TestFormObjectMultipartRequestMarker name(@jakarta.annotation.Nullable St * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 9266038c3038..6e52a38a31e7 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -34,22 +34,19 @@ }) @JsonTypeName("test_query_style_deepObject_explode_true_object_allOf_query_object_parameter") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; - @jakarta.annotation.Nullable - private String size; + @jakarta.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - private String color; + @jakarta.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -64,8 +61,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -89,8 +85,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -114,8 +109,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -139,8 +133,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index b2352039369d..1366f31313a7 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -34,10 +34,10 @@ }) @JsonTypeName("test_query_style_form_explode_true_array_string_query_object_parameter") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; - @jakarta.annotation.Nullable - private List values = new ArrayList<>(); + @jakarta.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -60,8 +60,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java index 94ea5b6e3a76..9c4a51f50575 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java @@ -31,14 +31,13 @@ Bird.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -53,8 +52,7 @@ public Bird size(@javax.annotation.Nullable String size) { * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -78,8 +76,7 @@ public Bird color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index 3352a6a4e9b7..e51d0eb25643 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java index d896a4d99fe6..2eb5e42ba7be 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java @@ -37,18 +37,16 @@ DataQuery.JSON_PROPERTY_DATE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nullable - private OffsetDateTime date; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { @@ -64,8 +62,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -89,8 +86,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -114,8 +110,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * A date * @return date */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java index 83bafeeec9aa..1bccaab3b883 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -45,10 +45,10 @@ DefaultValue.JSON_PROPERTY_STRING_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -86,34 +86,26 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; - @javax.annotation.Nullable - private List arrayString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; - @javax.annotation.Nullable - private JsonNullable stringNullable = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } @@ -136,8 +128,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -169,8 +160,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -202,8 +192,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -235,8 +224,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -268,8 +256,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -305,8 +292,7 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringNullable() { return arrayStringNullable.orElse(null); @@ -314,7 +300,6 @@ public List getArrayStringNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } @@ -350,8 +335,7 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); @@ -359,7 +343,6 @@ public List getArrayStringExtensionNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } @@ -383,8 +366,7 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * Get stringNullable * @return stringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringNullable() { return stringNullable.orElse(null); @@ -392,7 +374,6 @@ public String getStringNullable() { @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index af5570f15ddb..44df3b06ff4d 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -33,18 +33,16 @@ NumberPropertiesOnly.JSON_PROPERTY_DOUBLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -59,8 +57,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * Get number * @return number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -84,8 +81,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * Get _float * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -111,8 +107,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * maximum: 50.2 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 6b7743d204b7..172af34c295b 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -40,26 +40,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -97,10 +93,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -115,8 +109,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -140,8 +133,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -165,8 +157,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -198,8 +189,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -256,8 +245,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java index 3f63c815b9ce..2f23a913e211 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java @@ -34,10 +34,10 @@ Query.JSON_PROPERTY_OUTCOMES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - protected Long id; + @javax.annotation.Nullable protected Long id; /** * Gets or Sets outcomes @@ -75,10 +75,8 @@ public static OutcomesEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; - @javax.annotation.Nullable - protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -93,8 +91,7 @@ public Query id(@javax.annotation.Nullable Long id) { * Query * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,8 +123,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index 62b916789836..c6084ad89e0f 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 4193be14bab7..f25fc54e19f4 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -31,10 +31,10 @@ }) @JsonTypeName("test_form_object_multipart_request_marker") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -49,8 +49,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index a104c7b82704..fd8772d87f6b 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -34,22 +34,19 @@ }) @JsonTypeName("test_query_style_deepObject_explode_true_object_allOf_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -64,8 +61,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -89,8 +85,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -114,8 +109,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -139,8 +133,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 3d68a3e00c53..d8c0178761d4 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -34,10 +34,10 @@ }) @JsonTypeName("test_query_style_form_explode_true_array_string_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; - @javax.annotation.Nullable - private List values = new ArrayList<>(); + @javax.annotation.Nullable private List values = new ArrayList<>(); public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -60,8 +60,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java index 94ea5b6e3a76..9c4a51f50575 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java @@ -31,14 +31,13 @@ Bird.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Bird { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public Bird() { } @@ -53,8 +52,7 @@ public Bird size(@javax.annotation.Nullable String size) { * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -78,8 +76,7 @@ public Bird color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index 3352a6a4e9b7..e51d0eb25643 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java index d896a4d99fe6..2eb5e42ba7be 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java @@ -37,18 +37,16 @@ DataQuery.JSON_PROPERTY_DATE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DataQuery extends Query { public static final String JSON_PROPERTY_SUFFIX = "suffix"; - @javax.annotation.Nullable - private String suffix; + @javax.annotation.Nullable private String suffix; public static final String JSON_PROPERTY_TEXT = "text"; - @javax.annotation.Nullable - private String text; + @javax.annotation.Nullable private String text; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nullable - private OffsetDateTime date; + @javax.annotation.Nullable private OffsetDateTime date; public DataQuery() { @@ -64,8 +62,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * test suffix * @return suffix */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUFFIX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -89,8 +86,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * Some text containing white spaces * @return text */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -114,8 +110,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * A date * @return date */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java index 090e0fd983bd..28a34ff76be9 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -45,10 +45,10 @@ DefaultValue.JSON_PROPERTY_STRING_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DefaultValue { public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default"; - @javax.annotation.Nullable - private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE)); /** * Gets or Sets arrayStringEnumDefault @@ -86,34 +86,26 @@ public static ArrayStringEnumDefaultEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default"; - @javax.annotation.Nullable - private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); + @javax.annotation.Nullable private List arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE)); public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default"; - @javax.annotation.Nullable - private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); + @javax.annotation.Nullable private List arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped")); public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default"; - @javax.annotation.Nullable - private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); + @javax.annotation.Nullable private List arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3)); public static final String JSON_PROPERTY_ARRAY_STRING = "array_string"; - @javax.annotation.Nullable - private List arrayString; + @javax.annotation.Nullable private List arrayString; public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable"; - @javax.annotation.Nullable - private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayStringExtensionNullable = JsonNullable.>undefined(); public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable"; - @javax.annotation.Nullable - private JsonNullable stringNullable = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringNullable = JsonNullable.undefined(); public DefaultValue() { } @@ -136,8 +128,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * Get arrayStringEnumRefDefault * @return arrayStringEnumRefDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -169,8 +160,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * Get arrayStringEnumDefault * @return arrayStringEnumDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -202,8 +192,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * Get arrayStringDefault * @return arrayStringDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -235,8 +224,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * Get arrayIntegerDefault * @return arrayIntegerDefault */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -268,8 +256,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * Get arrayString * @return arrayString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -305,8 +292,7 @@ public DefaultValue addArrayStringNullableItem(String arrayStringNullableItem) { * Get arrayStringNullable * @return arrayStringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringNullable() { return arrayStringNullable.orElse(null); @@ -314,7 +300,6 @@ public List getArrayStringNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } @@ -350,8 +335,7 @@ public DefaultValue addArrayStringExtensionNullableItem(String arrayStringExtens * Get arrayStringExtensionNullable * @return arrayStringExtensionNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); @@ -359,7 +343,6 @@ public List getArrayStringExtensionNullable() { @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } @@ -383,8 +366,7 @@ public DefaultValue stringNullable(@javax.annotation.Nullable String stringNulla * Get stringNullable * @return stringNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringNullable() { return stringNullable.orElse(null); @@ -392,7 +374,6 @@ public String getStringNullable() { @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index af5570f15ddb..44df3b06ff4d 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -33,18 +33,16 @@ NumberPropertiesOnly.JSON_PROPERTY_DOUBLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberPropertiesOnly { public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nullable - private BigDecimal number; + @javax.annotation.Nullable private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public NumberPropertiesOnly() { } @@ -59,8 +57,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * Get number * @return number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -84,8 +81,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * Get _float * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -111,8 +107,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * maximum: 50.2 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index fbb00f394ddb..cd029244e3f1 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -40,26 +40,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls; + @javax.annotation.Nonnull private List photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags; + @javax.annotation.Nullable private List tags; /** * pet status in the store @@ -97,10 +93,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -115,8 +109,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -140,8 +133,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -165,8 +157,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -198,8 +189,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -256,8 +245,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java index 3f63c815b9ce..2f23a913e211 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java @@ -34,10 +34,10 @@ Query.JSON_PROPERTY_OUTCOMES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Query { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - protected Long id; + @javax.annotation.Nullable protected Long id; /** * Gets or Sets outcomes @@ -75,10 +75,8 @@ public static OutcomesEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_OUTCOMES = "outcomes"; - @javax.annotation.Nullable - protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); + @javax.annotation.Nullable protected List outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE)); public Query() { } @@ -93,8 +91,7 @@ public Query id(@javax.annotation.Nullable Long id) { * Query * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,8 +123,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * Get outcomes * @return outcomes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTCOMES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index 62b916789836..c6084ad89e0f 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 4193be14bab7..f25fc54e19f4 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -31,10 +31,10 @@ }) @JsonTypeName("test_form_object_multipart_request_marker") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestFormObjectMultipartRequestMarker { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestFormObjectMultipartRequestMarker() { } @@ -49,8 +49,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index a104c7b82704..fd8772d87f6b 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -34,22 +34,19 @@ }) @JsonTypeName("test_query_style_deepObject_explode_true_object_allOf_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter { public static final String JSON_PROPERTY_SIZE = "size"; - @javax.annotation.Nullable - private String size; + @javax.annotation.Nullable private String size; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() { } @@ -64,8 +61,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * Get size * @return size */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -89,8 +85,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -114,8 +109,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -139,8 +133,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index e10a1169c1ea..ca3363127e7f 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -34,10 +34,10 @@ }) @JsonTypeName("test_query_style_form_explode_true_array_string_query_object_parameter") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { public static final String JSON_PROPERTY_VALUES = "values"; - @javax.annotation.Nullable - private List values; + @javax.annotation.Nullable private List values; public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() { } @@ -60,8 +60,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * Get values * @return values */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt index 4207d12f74be..f8140aa35938 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Bird.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param color */ - data class Bird ( @get:JsonProperty("size") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 9ca46c3d0fa9..5311561ee718 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt index aa1c1f36365a..050a787b0ece 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt @@ -33,7 +33,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param stringNullable */ - data class DefaultValue ( @get:JsonProperty("array_string_enum_ref_default") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt index 5658fb2393f0..3e5fb8d425d5 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param double */ - data class NumberPropertiesOnly ( @get:JsonProperty("number") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index adc88b273579..e856badf27a3 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt index 6c346a4c093f..311b9609be31 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Query.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param outcomes */ - data class Query ( /* Query */ diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 9cef5f51bd68..2593d03ffb96 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt index 2c197f0ce801..641b07666fd4 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param propertyValues */ - data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter ( @get:JsonProperty("values") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt index 4207d12f74be..f8140aa35938 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Bird.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param color */ - data class Bird ( @get:JsonProperty("size") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 9ca46c3d0fa9..5311561ee718 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt index aa1c1f36365a..050a787b0ece 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/DefaultValue.kt @@ -33,7 +33,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param stringNullable */ - data class DefaultValue ( @get:JsonProperty("array_string_enum_ref_default") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt index 5658fb2393f0..3e5fb8d425d5 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/NumberPropertiesOnly.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param double */ - data class NumberPropertiesOnly ( @get:JsonProperty("number") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index adc88b273579..e856badf27a3 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt index 6c346a4c093f..311b9609be31 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Query.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param outcomes */ - data class Query ( /* Query */ diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 9cef5f51bd68..2593d03ffb96 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt index 2c197f0ce801..641b07666fd4 100644 --- a/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt +++ b/samples/client/echo_api/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param propertyValues */ - data class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter ( @get:JsonProperty("values") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiBird.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiBird.kt index ac0f2f486022..37c1001c9c25 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiBird.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiBird.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param color */ - data class ApiBird ( @SerializedName("size") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt index f8ec4e1cc51e..19366deee230 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class ApiCategory ( @SerializedName("id") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt index ec5413f8b2cb..223075cceda8 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiDefaultValue.kt @@ -32,7 +32,6 @@ import com.google.gson.annotations.SerializedName * @param stringNullable */ - data class ApiDefaultValue ( @SerializedName("array_string_enum_ref_default") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt index 0262f3edc403..6fe73b68b74d 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiNumberPropertiesOnly.kt @@ -26,7 +26,6 @@ import com.google.gson.annotations.SerializedName * @param double */ - data class ApiNumberPropertiesOnly ( @SerializedName("number") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt index 198ccf7f68ca..7df502db1457 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param status pet status in the store */ - data class ApiPet ( @SerializedName("name") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt index e9f961d7441a..59ffbc8cf6f9 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiQuery.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param outcomes */ - data class ApiQuery ( /* Query */ diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt index 42e79293f18c..1762b01c81a1 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class ApiTag ( @SerializedName("id") diff --git a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt index f0cd66c86efc..cb900a9574ac 100644 --- a/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt +++ b/samples/client/echo_api/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.kt @@ -24,7 +24,6 @@ import com.google.gson.annotations.SerializedName * @param propertyValues */ - data class ApiTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter ( @SerializedName("values") diff --git a/samples/client/echo_api/php-nextgen-streaming/README.md b/samples/client/echo_api/php-nextgen-streaming/README.md index 6d8376ff1699..045bf7791fd1 100644 --- a/samples/client/echo_api/php-nextgen-streaming/README.md +++ b/samples/client/echo_api/php-nextgen-streaming/README.md @@ -53,7 +53,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/AuthApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/AuthApi.md index 874f3c61c69c..fa163ae37317 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/AuthApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/AuthApi.md @@ -30,7 +30,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -87,7 +86,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer authorization: http_bearer_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md index 6c26bb843ffd..ecbfb3a66d17 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md @@ -33,7 +33,6 @@ Test binary (gif) response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -142,7 +140,6 @@ Test array of binary in multipart mime require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -198,7 +195,6 @@ Test single binary in multipart mime require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -254,7 +250,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -310,7 +305,6 @@ Test free form object require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -366,7 +360,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -422,7 +415,6 @@ Test empty response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -478,7 +470,6 @@ Test string enum response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -534,7 +525,6 @@ Test empty json (request body) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/FormApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/FormApi.md index f9236a17214e..02aa7adc9059 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/FormApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/FormApi.md @@ -26,7 +26,6 @@ Test form parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Test form parameter(s) for multipart schema require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -142,7 +140,6 @@ Test form parameter(s) for oneOf schema require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/HeaderApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/HeaderApi.md index d13c2d2ea7be..424a1de41114 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/HeaderApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/HeaderApi.md @@ -24,7 +24,6 @@ Test header parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\HeaderApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/PathApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/PathApi.md index 45583fd7edd9..136c3ed6fbbf 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/PathApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/PathApi.md @@ -24,7 +24,6 @@ Test path parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\PathApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/QueryApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/QueryApi.md index 7e1a9f372b8e..acd1bfe1e69b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/QueryApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/QueryApi.md @@ -33,7 +33,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -91,7 +90,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -151,7 +149,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -211,7 +208,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -267,7 +263,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -323,7 +318,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -379,7 +373,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -435,7 +428,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -491,7 +483,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -547,7 +538,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php index 2ec57ccb1242..43f78e7334df 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php index f9ac732f6446..f62d0f7a4c15 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php index 6a881f7007e6..7c3bd660d31f 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php index 7f8abfe57bbc..4b9488b244e1 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php index 216c2b65edef..c7f4e7bb0cb7 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php index d07e2e7c6464..24e2b112bee6 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/ApiException.php b/samples/client/echo_api/php-nextgen-streaming/src/ApiException.php index c43103dc9af8..023731f5181f 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/ApiException.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/ApiException.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php b/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php index 2311c4c6d111..2b5c0c251059 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php b/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php index cc993ae6ee5c..196377aa1119 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php index e1920e4824a9..24ca3299c6dd 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php index 5f050270cbb7..d2536d058bcb 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php index efd8516e5071..4925f3503f38 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php index 82cd5ae9e0e8..4839923eb279 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/ModelInterface.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/ModelInterface.php index 46896d046621..727597125737 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/ModelInterface.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/ModelInterface.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php index d63c7ede4c70..acc5d42774fd 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php index 888cd6439261..3e0dfc64e71f 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php index 574bd6764993..8a57b3281f5c 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/StringEnumRef.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/StringEnumRef.php index ea9c5983351f..fd3a68978d38 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/StringEnumRef.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/StringEnumRef.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php index 2033e7b2e55c..12fff91b34ad 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php index f387a81e248f..3d3ede58f04f 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php index 35ea10b634e0..0b1dd79dc0a8 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php index 483c06af1764..e1416fd40651 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen-streaming/src/ObjectSerializer.php b/samples/client/echo_api/php-nextgen-streaming/src/ObjectSerializer.php index 65a4ebaa36a5..caa145eafbeb 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/ObjectSerializer.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/ObjectSerializer.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/README.md b/samples/client/echo_api/php-nextgen/README.md index 6d8376ff1699..045bf7791fd1 100644 --- a/samples/client/echo_api/php-nextgen/README.md +++ b/samples/client/echo_api/php-nextgen/README.md @@ -53,7 +53,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/AuthApi.md b/samples/client/echo_api/php-nextgen/docs/Api/AuthApi.md index 874f3c61c69c..fa163ae37317 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/AuthApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/AuthApi.md @@ -30,7 +30,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -87,7 +86,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer authorization: http_bearer_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md index f9b966860b77..3161f8bf190a 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md @@ -33,7 +33,6 @@ Test binary (gif) response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -142,7 +140,6 @@ Test array of binary in multipart mime require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -198,7 +195,6 @@ Test single binary in multipart mime require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -254,7 +250,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -310,7 +305,6 @@ Test free form object require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -366,7 +360,6 @@ Test body parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -422,7 +415,6 @@ Test empty response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -478,7 +470,6 @@ Test string enum response body require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -534,7 +525,6 @@ Test empty json (request body) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\BodyApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/FormApi.md b/samples/client/echo_api/php-nextgen/docs/Api/FormApi.md index f9236a17214e..02aa7adc9059 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/FormApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/FormApi.md @@ -26,7 +26,6 @@ Test form parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Test form parameter(s) for multipart schema require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -142,7 +140,6 @@ Test form parameter(s) for oneOf schema require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FormApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md b/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md index d13c2d2ea7be..424a1de41114 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md @@ -24,7 +24,6 @@ Test header parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\HeaderApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md b/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md index 45583fd7edd9..136c3ed6fbbf 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md @@ -24,7 +24,6 @@ Test path parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\PathApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md b/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md index 7e1a9f372b8e..acd1bfe1e69b 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md @@ -33,7 +33,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -91,7 +90,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -151,7 +149,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -211,7 +208,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -267,7 +263,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -323,7 +318,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -379,7 +373,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -435,7 +428,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -491,7 +483,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -547,7 +538,6 @@ Test query parameter(s) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\QueryApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/echo_api/php-nextgen/src/Api/AuthApi.php b/samples/client/echo_api/php-nextgen/src/Api/AuthApi.php index 2ec57ccb1242..43f78e7334df 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/AuthApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/AuthApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php index f6901c9acf61..fb4347a9eef6 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Api/FormApi.php b/samples/client/echo_api/php-nextgen/src/Api/FormApi.php index 6a881f7007e6..7c3bd660d31f 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/FormApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/FormApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php b/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php index 7f8abfe57bbc..4b9488b244e1 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php index 216c2b65edef..c7f4e7bb0cb7 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php b/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php index d07e2e7c6464..24e2b112bee6 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/ApiException.php b/samples/client/echo_api/php-nextgen/src/ApiException.php index c43103dc9af8..023731f5181f 100644 --- a/samples/client/echo_api/php-nextgen/src/ApiException.php +++ b/samples/client/echo_api/php-nextgen/src/ApiException.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Configuration.php b/samples/client/echo_api/php-nextgen/src/Configuration.php index 2311c4c6d111..2b5c0c251059 100644 --- a/samples/client/echo_api/php-nextgen/src/Configuration.php +++ b/samples/client/echo_api/php-nextgen/src/Configuration.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/HeaderSelector.php b/samples/client/echo_api/php-nextgen/src/HeaderSelector.php index cc993ae6ee5c..196377aa1119 100644 --- a/samples/client/echo_api/php-nextgen/src/HeaderSelector.php +++ b/samples/client/echo_api/php-nextgen/src/HeaderSelector.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/Bird.php b/samples/client/echo_api/php-nextgen/src/Model/Bird.php index e1920e4824a9..24ca3299c6dd 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Bird.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Bird.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/Category.php b/samples/client/echo_api/php-nextgen/src/Model/Category.php index 5f050270cbb7..d2536d058bcb 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Category.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Category.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php b/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php index efd8516e5071..4925f3503f38 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php +++ b/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php b/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php index 82cd5ae9e0e8..4839923eb279 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php +++ b/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/ModelInterface.php b/samples/client/echo_api/php-nextgen/src/Model/ModelInterface.php index 46896d046621..727597125737 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/ModelInterface.php +++ b/samples/client/echo_api/php-nextgen/src/Model/ModelInterface.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php b/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php index d63c7ede4c70..acc5d42774fd 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php +++ b/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/Pet.php b/samples/client/echo_api/php-nextgen/src/Model/Pet.php index 888cd6439261..3e0dfc64e71f 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Pet.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Pet.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/Query.php b/samples/client/echo_api/php-nextgen/src/Model/Query.php index 574bd6764993..8a57b3281f5c 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Query.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Query.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/StringEnumRef.php b/samples/client/echo_api/php-nextgen/src/Model/StringEnumRef.php index ea9c5983351f..fd3a68978d38 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/StringEnumRef.php +++ b/samples/client/echo_api/php-nextgen/src/Model/StringEnumRef.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/Tag.php b/samples/client/echo_api/php-nextgen/src/Model/Tag.php index 2033e7b2e55c..12fff91b34ad 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Tag.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Tag.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php b/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php index f387a81e248f..3d3ede58f04f 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php index 35ea10b634e0..0b1dd79dc0a8 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php index 483c06af1764..e1416fd40651 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/php-nextgen/src/ObjectSerializer.php b/samples/client/echo_api/php-nextgen/src/ObjectSerializer.php index 65a4ebaa36a5..caa145eafbeb 100644 --- a/samples/client/echo_api/php-nextgen/src/ObjectSerializer.php +++ b/samples/client/echo_api/php-nextgen/src/ObjectSerializer.php @@ -19,7 +19,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/echo_api/powershell/src/PSOpenAPITools/Model/StringEnumRef.ps1 b/samples/client/echo_api/powershell/src/PSOpenAPITools/Model/StringEnumRef.ps1 index 3ea65a59c5ac..7f3f4e457eb0 100644 --- a/samples/client/echo_api/powershell/src/PSOpenAPITools/Model/StringEnumRef.ps1 +++ b/samples/client/echo_api/powershell/src/PSOpenAPITools/Model/StringEnumRef.ps1 @@ -24,4 +24,3 @@ enum StringEnumRef { # enum value: "unclassified" unclassified } - diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md index 1e9e76b68375..dcb1c10df454 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md @@ -72,7 +72,6 @@ configuration = openapi_client.Configuration( password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -159,4 +158,3 @@ Authentication schemes defined for the API: team@openapitools.org - diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/AuthApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/AuthApi.md index 507592b4811e..56ca14f2de09 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/AuthApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/AuthApi.md @@ -40,7 +40,6 @@ configuration = openapi_client.Configuration( username = os.environ["USERNAME"], password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -56,7 +55,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -113,7 +111,6 @@ configuration = openapi_client.Configuration( configuration = openapi_client.Configuration( access_token = os.environ["BEARER_TOKEN"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -129,7 +126,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md index d4cc6d4dab6d..a6311d82dfd2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md @@ -37,7 +37,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -53,7 +52,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -100,7 +98,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -117,7 +114,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -167,7 +163,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -184,7 +179,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -234,7 +228,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -251,7 +244,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -302,7 +294,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -319,7 +310,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -369,7 +359,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -386,7 +375,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -437,7 +425,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -454,7 +441,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -505,7 +491,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -522,7 +507,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -573,7 +557,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -590,7 +573,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -641,7 +623,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -658,7 +639,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/FormApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/FormApi.md index 86ae2be36975..47e5bc6e3c80 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/FormApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/FormApi.md @@ -30,7 +30,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -49,7 +48,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -102,7 +100,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -119,7 +116,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -169,7 +165,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -191,7 +186,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/HeaderApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/HeaderApi.md index 137b5c00d105..d2f37031165e 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/HeaderApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/HeaderApi.md @@ -29,7 +29,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -50,7 +49,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/PathApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/PathApi.md index dd9362bb746e..19cfab1ad3de 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/PathApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/PathApi.md @@ -29,7 +29,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -49,7 +48,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/QueryApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/QueryApi.md index 8c8bf981a5f7..bf706e43ab12 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/QueryApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/QueryApi.md @@ -38,7 +38,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -56,7 +55,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -107,7 +105,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -126,7 +123,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -178,7 +174,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -197,7 +192,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -250,7 +244,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -267,7 +260,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -317,7 +309,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -334,7 +325,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -384,7 +374,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -401,7 +390,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -451,7 +439,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -468,7 +455,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -519,7 +505,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -536,7 +521,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -587,7 +571,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -604,7 +587,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -654,7 +636,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -671,7 +652,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/__init__.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/__init__.py index 3f63fe12abdb..4bce0c3dffdb 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/__init__.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/__init__.py @@ -14,7 +14,6 @@ Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py index 2f3e9dfcdb63..298ec07e30a4 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py index 33aba2cbd446..4844a177eaf7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py index 3353457f7ee8..a265ac77fb2e 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py index 5c1cd1b540dd..2216155eaab2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py index d2ba4662c21a..41d0c6366570 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py index 7d2ecbb1c2ca..9c9637189ec3 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py index 60d053860e36..f8a45e618893 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import datetime from dateutil.parser import parse from enum import Enum diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py index 27946de17875..538582ae96a9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import copy import logging from logging import FileHandler diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py index bd5561d241ed..71a5635b686d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - from typing import Any, Optional from typing_extensions import Self diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/__init__.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/__init__.py index f070f6323167..6fa8559939ed 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/__init__.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from openapi_client.models.bird import Bird from openapi_client.models.category import Category diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py index 9bb24b9e6d80..b2018a0e30a9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py index c8e9bb709fd1..cf228582ba24 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py index 255a5ab7f422..403412aaa2e9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py index 8dceac31e3d5..3b9d6270daa9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py index d089c9775ace..0ea20b5e68ed 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py index bfe90956d977..4c0dd2f5334f 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py index 97199fb7fd95..3dfcb2499b10 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py index 90328aea76dd..a61ff40dfba3 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import json from enum import Enum @@ -36,4 +35,3 @@ def from_json(cls, json_str: str) -> Self: """Create an instance of StringEnumRef from a JSON string""" return cls(json.loads(json_str)) - diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py index 5ec177ca73ae..49479ae6f3d0 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py index 9fab70ea178d..c2b2d96a507a 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 8cf292b6a90b..df23b86f30b8 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 726b427743ca..f99c4d65f4f2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py index 91fb8eb029dc..cc8e4a562267 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import io import json import re diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py index 64d7cd1c9db5..c514596811ea 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following diff --git a/samples/client/echo_api/python-pydantic-v1/README.md b/samples/client/echo_api/python-pydantic-v1/README.md index 5920a252a6e3..af1122b889de 100644 --- a/samples/client/echo_api/python-pydantic-v1/README.md +++ b/samples/client/echo_api/python-pydantic-v1/README.md @@ -73,7 +73,6 @@ configuration = openapi_client.Configuration( password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -160,4 +159,3 @@ Authentication schemes defined for the API: team@openapitools.org - diff --git a/samples/client/echo_api/python-pydantic-v1/docs/AuthApi.md b/samples/client/echo_api/python-pydantic-v1/docs/AuthApi.md index e4db5503ece0..5fe745efd960 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/AuthApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/AuthApi.md @@ -41,7 +41,6 @@ configuration = openapi_client.Configuration( username = os.environ["USERNAME"], password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -57,7 +56,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -113,7 +111,6 @@ configuration = openapi_client.Configuration( configuration = openapi_client.Configuration( access_token = os.environ["BEARER_TOKEN"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -129,7 +126,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. diff --git a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md index 0f22b6b2a6d2..e5bca9679287 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md @@ -38,7 +38,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -54,7 +53,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -100,7 +98,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -117,7 +114,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -166,7 +162,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -183,7 +178,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -232,7 +226,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -249,7 +242,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -299,7 +291,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -316,7 +307,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -365,7 +355,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -382,7 +371,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -432,7 +420,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -449,7 +436,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -499,7 +485,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -516,7 +501,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -566,7 +550,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -583,7 +566,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -633,7 +615,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -650,7 +631,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python-pydantic-v1/docs/FormApi.md b/samples/client/echo_api/python-pydantic-v1/docs/FormApi.md index 56841c42d416..e269a4337674 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/FormApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/FormApi.md @@ -31,7 +31,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -50,7 +49,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -102,7 +100,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -119,7 +116,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -168,7 +164,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -190,7 +185,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md b/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md index 7bf15b0037c0..be956f9d2b22 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md @@ -30,7 +30,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -51,7 +50,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md b/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md index 14e23b66b969..6b2b87f0a158 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md @@ -30,7 +30,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -50,7 +49,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md b/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md index 5d56e95efc23..ae0fad791e3b 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md @@ -39,7 +39,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -57,7 +56,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -107,7 +105,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -126,7 +123,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -177,7 +173,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -196,7 +191,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -248,7 +242,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -265,7 +258,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -314,7 +306,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -331,7 +322,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -380,7 +370,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -397,7 +386,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -446,7 +434,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -463,7 +450,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -513,7 +499,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -530,7 +515,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -580,7 +564,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -597,7 +580,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes @@ -646,7 +628,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -663,7 +644,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters Name | Type | Description | Notes diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/__init__.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/__init__.py index 3f63fe12abdb..4bce0c3dffdb 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/__init__.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/__init__.py @@ -14,7 +14,6 @@ Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/auth_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/auth_api.py index dcb3ff423f8e..d72ff5790da8 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/auth_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py index 73a283c02b1a..48e8066ea136 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/form_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/form_api.py index 4d33489816c6..76e88698e25b 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/form_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py index fe24cff0b3bb..f4733e12c1e9 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py index 9660feaad571..c90608083f16 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py index 680dbd3fba51..4b547e02d156 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import re # noqa: F401 import io import warnings diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api_client.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api_client.py index 6d0d11c5b538..c5155518e8fa 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api_client.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api_client.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import atexit import datetime from dateutil.parser import parse diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/configuration.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/configuration.py index 7c6f3e11f99f..0ef86ebbec3f 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/configuration.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/configuration.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import copy import logging import multiprocessing diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/exceptions.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/exceptions.py index ae3e985d2fee..20eaf143ed04 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/exceptions.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/exceptions.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/__init__.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/__init__.py index f070f6323167..6fa8559939ed 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/__init__.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from openapi_client.models.bird import Bird from openapi_client.models.category import Category diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/bird.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/bird.py index 77887a53120d..6a7648e8870a 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/bird.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/category.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/category.py index ee8e5c258ae9..9a3aa84749bc 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/category.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/category.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/data_query.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/data_query.py index 84f355f3fdd5..dad52f88e88a 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/data_query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/default_value.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/default_value.py index a73193247fd1..432c7d110530 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/default_value.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/number_properties_only.py index 10bb3a590a21..16a7a427490f 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/number_properties_only.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/pet.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/pet.py index 26832037b0e3..e5a67b9472e7 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/pet.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/query.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/query.py index 43919c0f569d..b711fffcf6c8 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/query.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/string_enum_ref.py index f200a1dafb8e..de008042890a 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/string_enum_ref.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import json import pprint import re # noqa: F401 @@ -39,4 +38,3 @@ def from_json(cls, json_str: str) -> StringEnumRef: """Create an instance of StringEnumRef from a JSON string""" return StringEnumRef(json.loads(json_str)) - diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/tag.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/tag.py index 66a39adff29c..ee1c96ed5c61 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/tag.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_form_object_multipart_request_marker.py index 54ea54fd8d27..9d93ffb76fa2 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_form_object_multipart_request_marker.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 42e1101ec022..9b37e16f6dce 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 1bff80a6df1c..70cc0afef53a 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/rest.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/rest.py index 8538f9ee5200..763aa6ff3720 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/rest.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/rest.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import io import json import logging diff --git a/samples/client/echo_api/python-pydantic-v1/setup.py b/samples/client/echo_api/python-pydantic-v1/setup.py index d91b9d9f069e..4fce4bb514ed 100644 --- a/samples/client/echo_api/python-pydantic-v1/setup.py +++ b/samples/client/echo_api/python-pydantic-v1/setup.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following diff --git a/samples/client/echo_api/python/README.md b/samples/client/echo_api/python/README.md index 1e9e76b68375..dcb1c10df454 100644 --- a/samples/client/echo_api/python/README.md +++ b/samples/client/echo_api/python/README.md @@ -72,7 +72,6 @@ configuration = openapi_client.Configuration( password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -159,4 +158,3 @@ Authentication schemes defined for the API: team@openapitools.org - diff --git a/samples/client/echo_api/python/docs/AuthApi.md b/samples/client/echo_api/python/docs/AuthApi.md index 507592b4811e..56ca14f2de09 100644 --- a/samples/client/echo_api/python/docs/AuthApi.md +++ b/samples/client/echo_api/python/docs/AuthApi.md @@ -40,7 +40,6 @@ configuration = openapi_client.Configuration( username = os.environ["USERNAME"], password = os.environ["PASSWORD"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -56,7 +55,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -113,7 +111,6 @@ configuration = openapi_client.Configuration( configuration = openapi_client.Configuration( access_token = os.environ["BEARER_TOKEN"] ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -129,7 +126,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. diff --git a/samples/client/echo_api/python/docs/BodyApi.md b/samples/client/echo_api/python/docs/BodyApi.md index d4cc6d4dab6d..a6311d82dfd2 100644 --- a/samples/client/echo_api/python/docs/BodyApi.md +++ b/samples/client/echo_api/python/docs/BodyApi.md @@ -37,7 +37,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -53,7 +52,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters This endpoint does not need any parameter. @@ -100,7 +98,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -117,7 +114,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -167,7 +163,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -184,7 +179,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -234,7 +228,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -251,7 +244,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -302,7 +294,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -319,7 +310,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -369,7 +359,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -386,7 +375,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -437,7 +425,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -454,7 +441,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -505,7 +491,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -522,7 +507,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -573,7 +557,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -590,7 +573,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -641,7 +623,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -658,7 +639,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python/docs/FormApi.md b/samples/client/echo_api/python/docs/FormApi.md index 86ae2be36975..47e5bc6e3c80 100644 --- a/samples/client/echo_api/python/docs/FormApi.md +++ b/samples/client/echo_api/python/docs/FormApi.md @@ -30,7 +30,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -49,7 +48,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -102,7 +100,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -119,7 +116,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -169,7 +165,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -191,7 +186,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python/docs/HeaderApi.md b/samples/client/echo_api/python/docs/HeaderApi.md index 137b5c00d105..d2f37031165e 100644 --- a/samples/client/echo_api/python/docs/HeaderApi.md +++ b/samples/client/echo_api/python/docs/HeaderApi.md @@ -29,7 +29,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -50,7 +49,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python/docs/PathApi.md b/samples/client/echo_api/python/docs/PathApi.md index dd9362bb746e..19cfab1ad3de 100644 --- a/samples/client/echo_api/python/docs/PathApi.md +++ b/samples/client/echo_api/python/docs/PathApi.md @@ -29,7 +29,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -49,7 +48,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python/docs/QueryApi.md b/samples/client/echo_api/python/docs/QueryApi.md index 8c8bf981a5f7..bf706e43ab12 100644 --- a/samples/client/echo_api/python/docs/QueryApi.md +++ b/samples/client/echo_api/python/docs/QueryApi.md @@ -38,7 +38,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -56,7 +55,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -107,7 +105,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -126,7 +123,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -178,7 +174,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -197,7 +192,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -250,7 +244,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -267,7 +260,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -317,7 +309,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -334,7 +325,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -384,7 +374,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -401,7 +390,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -451,7 +439,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -468,7 +455,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -519,7 +505,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -536,7 +521,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -587,7 +571,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -604,7 +587,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters @@ -654,7 +636,6 @@ configuration = openapi_client.Configuration( host = "http://localhost:3000" ) - # Enter a context with an instance of the API client with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class @@ -671,7 +652,6 @@ with openapi_client.ApiClient(configuration) as api_client: ``` - ### Parameters diff --git a/samples/client/echo_api/python/openapi_client/__init__.py b/samples/client/echo_api/python/openapi_client/__init__.py index 3f63fe12abdb..4bce0c3dffdb 100644 --- a/samples/client/echo_api/python/openapi_client/__init__.py +++ b/samples/client/echo_api/python/openapi_client/__init__.py @@ -14,7 +14,6 @@ Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/client/echo_api/python/openapi_client/api/auth_api.py b/samples/client/echo_api/python/openapi_client/api/auth_api.py index 2f3e9dfcdb63..298ec07e30a4 100644 --- a/samples/client/echo_api/python/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python/openapi_client/api/auth_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api/body_api.py b/samples/client/echo_api/python/openapi_client/api/body_api.py index 33aba2cbd446..4844a177eaf7 100644 --- a/samples/client/echo_api/python/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python/openapi_client/api/body_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api/form_api.py b/samples/client/echo_api/python/openapi_client/api/form_api.py index 3353457f7ee8..a265ac77fb2e 100644 --- a/samples/client/echo_api/python/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python/openapi_client/api/form_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api/header_api.py b/samples/client/echo_api/python/openapi_client/api/header_api.py index 5c1cd1b540dd..2216155eaab2 100644 --- a/samples/client/echo_api/python/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python/openapi_client/api/header_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api/path_api.py b/samples/client/echo_api/python/openapi_client/api/path_api.py index d2ba4662c21a..41d0c6366570 100644 --- a/samples/client/echo_api/python/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python/openapi_client/api/path_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api/query_api.py b/samples/client/echo_api/python/openapi_client/api/query_api.py index 7d2ecbb1c2ca..9c9637189ec3 100644 --- a/samples/client/echo_api/python/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python/openapi_client/api/query_api.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt from typing import Any, Dict, List, Optional, Tuple, Union diff --git a/samples/client/echo_api/python/openapi_client/api_client.py b/samples/client/echo_api/python/openapi_client/api_client.py index 60d053860e36..f8a45e618893 100644 --- a/samples/client/echo_api/python/openapi_client/api_client.py +++ b/samples/client/echo_api/python/openapi_client/api_client.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import datetime from dateutil.parser import parse from enum import Enum diff --git a/samples/client/echo_api/python/openapi_client/configuration.py b/samples/client/echo_api/python/openapi_client/configuration.py index 27946de17875..538582ae96a9 100644 --- a/samples/client/echo_api/python/openapi_client/configuration.py +++ b/samples/client/echo_api/python/openapi_client/configuration.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import copy import logging from logging import FileHandler diff --git a/samples/client/echo_api/python/openapi_client/exceptions.py b/samples/client/echo_api/python/openapi_client/exceptions.py index bd5561d241ed..71a5635b686d 100644 --- a/samples/client/echo_api/python/openapi_client/exceptions.py +++ b/samples/client/echo_api/python/openapi_client/exceptions.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 - from typing import Any, Optional from typing_extensions import Self diff --git a/samples/client/echo_api/python/openapi_client/models/__init__.py b/samples/client/echo_api/python/openapi_client/models/__init__.py index f070f6323167..6fa8559939ed 100644 --- a/samples/client/echo_api/python/openapi_client/models/__init__.py +++ b/samples/client/echo_api/python/openapi_client/models/__init__.py @@ -13,7 +13,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from openapi_client.models.bird import Bird from openapi_client.models.category import Category diff --git a/samples/client/echo_api/python/openapi_client/models/bird.py b/samples/client/echo_api/python/openapi_client/models/bird.py index 9f0dd625119d..fb6bd481408b 100644 --- a/samples/client/echo_api/python/openapi_client/models/bird.py +++ b/samples/client/echo_api/python/openapi_client/models/bird.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/category.py b/samples/client/echo_api/python/openapi_client/models/category.py index d81b92c0f6e3..1f50d66011ac 100644 --- a/samples/client/echo_api/python/openapi_client/models/category.py +++ b/samples/client/echo_api/python/openapi_client/models/category.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/data_query.py b/samples/client/echo_api/python/openapi_client/models/data_query.py index dc9a58598e63..ba1a837b4d34 100644 --- a/samples/client/echo_api/python/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python/openapi_client/models/data_query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/default_value.py b/samples/client/echo_api/python/openapi_client/models/default_value.py index feee1843319f..73bbdf7da9b6 100644 --- a/samples/client/echo_api/python/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python/openapi_client/models/default_value.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py index 08b3d5600ffa..cd649d395204 100644 --- a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/pet.py b/samples/client/echo_api/python/openapi_client/models/pet.py index 0a0ae74d1155..fd27af476274 100644 --- a/samples/client/echo_api/python/openapi_client/models/pet.py +++ b/samples/client/echo_api/python/openapi_client/models/pet.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/query.py b/samples/client/echo_api/python/openapi_client/models/query.py index 97199fb7fd95..3dfcb2499b10 100644 --- a/samples/client/echo_api/python/openapi_client/models/query.py +++ b/samples/client/echo_api/python/openapi_client/models/query.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py index 90328aea76dd..a61ff40dfba3 100644 --- a/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import json from enum import Enum @@ -36,4 +35,3 @@ def from_json(cls, json_str: str) -> Self: """Create an instance of StringEnumRef from a JSON string""" return cls(json.loads(json_str)) - diff --git a/samples/client/echo_api/python/openapi_client/models/tag.py b/samples/client/echo_api/python/openapi_client/models/tag.py index feec4b3f31cc..bd600dbdfaa9 100644 --- a/samples/client/echo_api/python/openapi_client/models/tag.py +++ b/samples/client/echo_api/python/openapi_client/models/tag.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py index 9f7747151bd5..b14e920ea3db 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 8ed0f58c990b..3bfc60fa5ff4 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index a9a7a5929f2e..c7f197daba6b 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 diff --git a/samples/client/echo_api/python/openapi_client/rest.py b/samples/client/echo_api/python/openapi_client/rest.py index b97741ddfce4..c3845de48347 100644 --- a/samples/client/echo_api/python/openapi_client/rest.py +++ b/samples/client/echo_api/python/openapi_client/rest.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - import io import json import re diff --git a/samples/client/echo_api/python/setup.py b/samples/client/echo_api/python/setup.py index 64d7cd1c9db5..c514596811ea 100644 --- a/samples/client/echo_api/python/setup.py +++ b/samples/client/echo_api/python/setup.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following diff --git a/samples/client/echo_api/ruby-faraday/docs/Bird.md b/samples/client/echo_api/ruby-faraday/docs/Bird.md index 53207a9a2f10..3b1f2cfc7a0e 100644 --- a/samples/client/echo_api/ruby-faraday/docs/Bird.md +++ b/samples/client/echo_api/ruby-faraday/docs/Bird.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Bird.new( color: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/Category.md b/samples/client/echo_api/ruby-faraday/docs/Category.md index 17adafbed759..b446f5c207f3 100644 --- a/samples/client/echo_api/ruby-faraday/docs/Category.md +++ b/samples/client/echo_api/ruby-faraday/docs/Category.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Category.new( name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/DataQuery.md b/samples/client/echo_api/ruby-faraday/docs/DataQuery.md index 2ef4c6b1a0d6..b87c96706ddd 100644 --- a/samples/client/echo_api/ruby-faraday/docs/DataQuery.md +++ b/samples/client/echo_api/ruby-faraday/docs/DataQuery.md @@ -19,4 +19,3 @@ instance = OpenapiClient::DataQuery.new( date: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/DefaultValue.md b/samples/client/echo_api/ruby-faraday/docs/DefaultValue.md index 72736b7608dc..83ac9ccdb804 100644 --- a/samples/client/echo_api/ruby-faraday/docs/DefaultValue.md +++ b/samples/client/echo_api/ruby-faraday/docs/DefaultValue.md @@ -29,4 +29,3 @@ instance = OpenapiClient::DefaultValue.new( string_nullable: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/NumberPropertiesOnly.md b/samples/client/echo_api/ruby-faraday/docs/NumberPropertiesOnly.md index 5040bff00ddd..431022478af1 100644 --- a/samples/client/echo_api/ruby-faraday/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/ruby-faraday/docs/NumberPropertiesOnly.md @@ -19,4 +19,3 @@ instance = OpenapiClient::NumberPropertiesOnly.new( double: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/Pet.md b/samples/client/echo_api/ruby-faraday/docs/Pet.md index 817b46ce714a..5084d224ef79 100644 --- a/samples/client/echo_api/ruby-faraday/docs/Pet.md +++ b/samples/client/echo_api/ruby-faraday/docs/Pet.md @@ -25,4 +25,3 @@ instance = OpenapiClient::Pet.new( status: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/Query.md b/samples/client/echo_api/ruby-faraday/docs/Query.md index e7b670a033da..4ae83ce678bd 100644 --- a/samples/client/echo_api/ruby-faraday/docs/Query.md +++ b/samples/client/echo_api/ruby-faraday/docs/Query.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Query.new( outcomes: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/StringEnumRef.md b/samples/client/echo_api/ruby-faraday/docs/StringEnumRef.md index 169bcb44d76f..ce772a5f3bb1 100644 --- a/samples/client/echo_api/ruby-faraday/docs/StringEnumRef.md +++ b/samples/client/echo_api/ruby-faraday/docs/StringEnumRef.md @@ -12,4 +12,3 @@ require 'openapi_client' instance = OpenapiClient::StringEnumRef.new() ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/Tag.md b/samples/client/echo_api/ruby-faraday/docs/Tag.md index d3bcb5933abd..b3ba35c01a83 100644 --- a/samples/client/echo_api/ruby-faraday/docs/Tag.md +++ b/samples/client/echo_api/ruby-faraday/docs/Tag.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Tag.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/ruby-faraday/docs/TestFormObjectMultipartRequestMarker.md index caf8f8331778..0d212249f837 100644 --- a/samples/client/echo_api/ruby-faraday/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/ruby-faraday/docs/TestFormObjectMultipartRequestMarker.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestFormObjectMultipartRequestMarker.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index a0f7cd16fe86..573fdb16fd9b 100644 --- a/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -21,4 +21,3 @@ instance = OpenapiClient::TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObj name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md b/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md index b21365f8f3a8..1b06c6c25a69 100644 --- a/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-faraday/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestQueryStyleFormExplodeTrueArrayStringQueryObjectPar values: null ) ``` - diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client.rb index a67f7fed8bc7..9488533e3160 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/auth_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/auth_api.rb index cc4631d0f325..58d9a745e8d4 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/auth_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/auth_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb index 9ce0f0900c39..c17639193e7f 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/form_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/form_api.rb index ea11b6fafa1d..0b7521bd1a5f 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/form_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/form_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/header_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/header_api.rb index 59c72e21f69d..bea55345604b 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/header_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/header_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb index 9d81de732cda..af9dbdd9b88a 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/path_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/query_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/query_api.rb index 9aeb686f1ffc..8dc232f3f291 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/query_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/query_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_client.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_client.rb index f4eb40bbfac7..267fff11b625 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_client.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -245,7 +244,6 @@ def basic_auth(conn) end end end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_error.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_error.rb index 4f97191633ab..e946f8c57470 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_error.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api_error.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/configuration.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/configuration.rb index 731f582785ba..c1c571395d07 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/configuration.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/configuration.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient @@ -150,7 +149,6 @@ class Configuration # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders attr_accessor :params_encoder - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/bird.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/bird.rb index 696a770e2622..c383fa8a2b46 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/bird.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/bird.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/category.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/category.rb index b8390e4726d0..f0f0dcffdf1a 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/category.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/category.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/data_query.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/data_query.rb index 91bef372eabe..26a250d6c5bf 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/data_query.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/data_query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -262,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/default_value.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/default_value.rb index 0e072f0ccdf5..f66e52e90dfb 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/default_value.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/default_value.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -311,7 +310,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/number_properties_only.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/number_properties_only.rb index e12e145145ba..3a3ac7619c8d 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/number_properties_only.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/number_properties_only.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/pet.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/pet.rb index 48109c6e675f..735877ad970b 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/pet.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/pet.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -306,7 +305,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/query.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/query.rb index 2e6891e7120e..6edde80e601d 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/query.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -242,7 +241,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/string_enum_ref.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/string_enum_ref.rb index 2e811af240d6..30c7514f8818 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/string_enum_ref.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/string_enum_ref.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if StringEnumRef.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #StringEnumRef" end - end -end + endend diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/tag.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/tag.rb index 23157234b5d3..c4f9ac9f6acb 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/tag.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/tag.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_form_object_multipart_request_marker.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_form_object_multipart_request_marker.rb index adf4f15a5f01..6c571f867fb6 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_form_object_multipart_request_marker.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_form_object_multipart_request_marker.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb index fb75021de637..39d5ca02233b 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb index 717042bdc634..e78a6d43f65c 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/version.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/version.rb index 9ccf46939b34..0b5e9c52bd19 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/version.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/version.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-faraday/openapi_client.gemspec b/samples/client/echo_api/ruby-faraday/openapi_client.gemspec index 2c98dd8abbc6..9d23d0b9a34d 100644 --- a/samples/client/echo_api/ruby-faraday/openapi_client.gemspec +++ b/samples/client/echo_api/ruby-faraday/openapi_client.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/echo_api/ruby-faraday/spec/spec_helper.rb b/samples/client/echo_api/ruby-faraday/spec/spec_helper.rb index 36fe04107e27..b3141e2fc89f 100644 --- a/samples/client/echo_api/ruby-faraday/spec/spec_helper.rb +++ b/samples/client/echo_api/ruby-faraday/spec/spec_helper.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/echo_api/ruby-httpx/docs/Bird.md b/samples/client/echo_api/ruby-httpx/docs/Bird.md index 53207a9a2f10..3b1f2cfc7a0e 100644 --- a/samples/client/echo_api/ruby-httpx/docs/Bird.md +++ b/samples/client/echo_api/ruby-httpx/docs/Bird.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Bird.new( color: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/Category.md b/samples/client/echo_api/ruby-httpx/docs/Category.md index 17adafbed759..b446f5c207f3 100644 --- a/samples/client/echo_api/ruby-httpx/docs/Category.md +++ b/samples/client/echo_api/ruby-httpx/docs/Category.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Category.new( name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/DataQuery.md b/samples/client/echo_api/ruby-httpx/docs/DataQuery.md index 2ef4c6b1a0d6..b87c96706ddd 100644 --- a/samples/client/echo_api/ruby-httpx/docs/DataQuery.md +++ b/samples/client/echo_api/ruby-httpx/docs/DataQuery.md @@ -19,4 +19,3 @@ instance = OpenapiClient::DataQuery.new( date: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/DefaultValue.md b/samples/client/echo_api/ruby-httpx/docs/DefaultValue.md index 72736b7608dc..83ac9ccdb804 100644 --- a/samples/client/echo_api/ruby-httpx/docs/DefaultValue.md +++ b/samples/client/echo_api/ruby-httpx/docs/DefaultValue.md @@ -29,4 +29,3 @@ instance = OpenapiClient::DefaultValue.new( string_nullable: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/NumberPropertiesOnly.md b/samples/client/echo_api/ruby-httpx/docs/NumberPropertiesOnly.md index 5040bff00ddd..431022478af1 100644 --- a/samples/client/echo_api/ruby-httpx/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/ruby-httpx/docs/NumberPropertiesOnly.md @@ -19,4 +19,3 @@ instance = OpenapiClient::NumberPropertiesOnly.new( double: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/Pet.md b/samples/client/echo_api/ruby-httpx/docs/Pet.md index 817b46ce714a..5084d224ef79 100644 --- a/samples/client/echo_api/ruby-httpx/docs/Pet.md +++ b/samples/client/echo_api/ruby-httpx/docs/Pet.md @@ -25,4 +25,3 @@ instance = OpenapiClient::Pet.new( status: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/Query.md b/samples/client/echo_api/ruby-httpx/docs/Query.md index e7b670a033da..4ae83ce678bd 100644 --- a/samples/client/echo_api/ruby-httpx/docs/Query.md +++ b/samples/client/echo_api/ruby-httpx/docs/Query.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Query.new( outcomes: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/StringEnumRef.md b/samples/client/echo_api/ruby-httpx/docs/StringEnumRef.md index 169bcb44d76f..ce772a5f3bb1 100644 --- a/samples/client/echo_api/ruby-httpx/docs/StringEnumRef.md +++ b/samples/client/echo_api/ruby-httpx/docs/StringEnumRef.md @@ -12,4 +12,3 @@ require 'openapi_client' instance = OpenapiClient::StringEnumRef.new() ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/Tag.md b/samples/client/echo_api/ruby-httpx/docs/Tag.md index d3bcb5933abd..b3ba35c01a83 100644 --- a/samples/client/echo_api/ruby-httpx/docs/Tag.md +++ b/samples/client/echo_api/ruby-httpx/docs/Tag.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Tag.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/ruby-httpx/docs/TestFormObjectMultipartRequestMarker.md index caf8f8331778..0d212249f837 100644 --- a/samples/client/echo_api/ruby-httpx/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/ruby-httpx/docs/TestFormObjectMultipartRequestMarker.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestFormObjectMultipartRequestMarker.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index a0f7cd16fe86..573fdb16fd9b 100644 --- a/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -21,4 +21,3 @@ instance = OpenapiClient::TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObj name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md b/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md index b21365f8f3a8..1b06c6c25a69 100644 --- a/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-httpx/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestQueryStyleFormExplodeTrueArrayStringQueryObjectPar values: null ) ``` - diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client.rb index a67f7fed8bc7..9488533e3160 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/auth_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/auth_api.rb index cc4631d0f325..58d9a745e8d4 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/auth_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/auth_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb index 9ce0f0900c39..c17639193e7f 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/form_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/form_api.rb index ea11b6fafa1d..0b7521bd1a5f 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/form_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/form_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb index 59c72e21f69d..bea55345604b 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb index 9d81de732cda..af9dbdd9b88a 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb index 9aeb686f1ffc..8dc232f3f291 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_client.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_client.rb index c510b4b35077..997932bd032f 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_client.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -178,7 +177,6 @@ def session @session = session end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_error.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_error.rb index 4f97191633ab..e946f8c57470 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_error.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api_error.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/configuration.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/configuration.rb index 4481f4a384b6..2ee6541cbd97 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/configuration.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/configuration.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient @@ -121,7 +120,6 @@ class Configuration # @return [Hash{Symbol => Object}, nil] attr_accessor :proxy - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/bird.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/bird.rb index 696a770e2622..c383fa8a2b46 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/bird.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/bird.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/category.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/category.rb index b8390e4726d0..f0f0dcffdf1a 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/category.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/category.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/data_query.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/data_query.rb index 91bef372eabe..26a250d6c5bf 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/data_query.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/data_query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -262,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/default_value.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/default_value.rb index 0e072f0ccdf5..f66e52e90dfb 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/default_value.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/default_value.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -311,7 +310,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/number_properties_only.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/number_properties_only.rb index e12e145145ba..3a3ac7619c8d 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/number_properties_only.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/number_properties_only.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/pet.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/pet.rb index 48109c6e675f..735877ad970b 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/pet.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/pet.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -306,7 +305,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/query.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/query.rb index 2e6891e7120e..6edde80e601d 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/query.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -242,7 +241,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/string_enum_ref.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/string_enum_ref.rb index 2e811af240d6..30c7514f8818 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/string_enum_ref.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/string_enum_ref.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if StringEnumRef.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #StringEnumRef" end - end -end + endend diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/tag.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/tag.rb index 23157234b5d3..c4f9ac9f6acb 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/tag.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/tag.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_form_object_multipart_request_marker.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_form_object_multipart_request_marker.rb index adf4f15a5f01..6c571f867fb6 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_form_object_multipart_request_marker.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_form_object_multipart_request_marker.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb index fb75021de637..39d5ca02233b 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb index 717042bdc634..e78a6d43f65c 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/version.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/version.rb index 9ccf46939b34..0b5e9c52bd19 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/version.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/version.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-httpx/openapi_client.gemspec b/samples/client/echo_api/ruby-httpx/openapi_client.gemspec index e11b1101403e..a2b3ba652209 100644 --- a/samples/client/echo_api/ruby-httpx/openapi_client.gemspec +++ b/samples/client/echo_api/ruby-httpx/openapi_client.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/echo_api/ruby-httpx/spec/spec_helper.rb b/samples/client/echo_api/ruby-httpx/spec/spec_helper.rb index 36fe04107e27..b3141e2fc89f 100644 --- a/samples/client/echo_api/ruby-httpx/spec/spec_helper.rb +++ b/samples/client/echo_api/ruby-httpx/spec/spec_helper.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/echo_api/ruby-typhoeus/docs/Bird.md b/samples/client/echo_api/ruby-typhoeus/docs/Bird.md index 53207a9a2f10..3b1f2cfc7a0e 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/Bird.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/Bird.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Bird.new( color: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/Category.md b/samples/client/echo_api/ruby-typhoeus/docs/Category.md index 17adafbed759..b446f5c207f3 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/Category.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/Category.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Category.new( name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/DataQuery.md b/samples/client/echo_api/ruby-typhoeus/docs/DataQuery.md index 2ef4c6b1a0d6..b87c96706ddd 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/DataQuery.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/DataQuery.md @@ -19,4 +19,3 @@ instance = OpenapiClient::DataQuery.new( date: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/DefaultValue.md b/samples/client/echo_api/ruby-typhoeus/docs/DefaultValue.md index 72736b7608dc..83ac9ccdb804 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/DefaultValue.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/DefaultValue.md @@ -29,4 +29,3 @@ instance = OpenapiClient::DefaultValue.new( string_nullable: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/NumberPropertiesOnly.md b/samples/client/echo_api/ruby-typhoeus/docs/NumberPropertiesOnly.md index 5040bff00ddd..431022478af1 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/NumberPropertiesOnly.md @@ -19,4 +19,3 @@ instance = OpenapiClient::NumberPropertiesOnly.new( double: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/Pet.md b/samples/client/echo_api/ruby-typhoeus/docs/Pet.md index 817b46ce714a..5084d224ef79 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/Pet.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/Pet.md @@ -25,4 +25,3 @@ instance = OpenapiClient::Pet.new( status: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/Query.md b/samples/client/echo_api/ruby-typhoeus/docs/Query.md index e7b670a033da..4ae83ce678bd 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/Query.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/Query.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Query.new( outcomes: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/StringEnumRef.md b/samples/client/echo_api/ruby-typhoeus/docs/StringEnumRef.md index 169bcb44d76f..ce772a5f3bb1 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/StringEnumRef.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/StringEnumRef.md @@ -12,4 +12,3 @@ require 'openapi_client' instance = OpenapiClient::StringEnumRef.new() ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/Tag.md b/samples/client/echo_api/ruby-typhoeus/docs/Tag.md index d3bcb5933abd..b3ba35c01a83 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/Tag.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/Tag.md @@ -17,4 +17,3 @@ instance = OpenapiClient::Tag.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/ruby-typhoeus/docs/TestFormObjectMultipartRequestMarker.md index caf8f8331778..0d212249f837 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/TestFormObjectMultipartRequestMarker.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestFormObjectMultipartRequestMarker.new( name: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index a0f7cd16fe86..573fdb16fd9b 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -21,4 +21,3 @@ instance = OpenapiClient::TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObj name: Dogs ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md b/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md index b21365f8f3a8..1b06c6c25a69 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md @@ -15,4 +15,3 @@ instance = OpenapiClient::TestQueryStyleFormExplodeTrueArrayStringQueryObjectPar values: null ) ``` - diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client.rb index a67f7fed8bc7..9488533e3160 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/auth_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/auth_api.rb index cc4631d0f325..58d9a745e8d4 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/auth_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/auth_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb index 9ce0f0900c39..c17639193e7f 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/form_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/form_api.rb index ea11b6fafa1d..0b7521bd1a5f 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/form_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/form_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/header_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/header_api.rb index 59c72e21f69d..bea55345604b 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/header_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/header_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb index 9d81de732cda..af9dbdd9b88a 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/path_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/query_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/query_api.rb index 9aeb686f1ffc..8dc232f3f291 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/query_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/query_api.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_client.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_client.rb index d2a2ba44217e..18c880f913bf 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_client.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_client.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -202,7 +201,6 @@ def download_file(request) tempfile end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_error.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_error.rb index 4f97191633ab..e946f8c57470 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_error.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api_error.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/configuration.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/configuration.rb index 80457418da04..34065b47ce3f 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/configuration.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/configuration.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient @@ -151,7 +150,6 @@ class Configuration # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 attr_accessor :params_encoding - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/bird.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/bird.rb index 696a770e2622..c383fa8a2b46 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/bird.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/bird.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/category.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/category.rb index b8390e4726d0..f0f0dcffdf1a 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/category.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/category.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/data_query.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/data_query.rb index 91bef372eabe..26a250d6c5bf 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/data_query.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/data_query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -262,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/default_value.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/default_value.rb index 0e072f0ccdf5..f66e52e90dfb 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/default_value.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/default_value.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -311,7 +310,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/number_properties_only.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/number_properties_only.rb index e12e145145ba..3a3ac7619c8d 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/number_properties_only.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/number_properties_only.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/pet.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/pet.rb index 48109c6e675f..735877ad970b 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/pet.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/pet.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -306,7 +305,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/query.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/query.rb index 2e6891e7120e..6edde80e601d 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/query.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/query.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -242,7 +241,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/string_enum_ref.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/string_enum_ref.rb index 2e811af240d6..30c7514f8818 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/string_enum_ref.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/string_enum_ref.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if StringEnumRef.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #StringEnumRef" end - end -end + endend diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/tag.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/tag.rb index 23157234b5d3..c4f9ac9f6acb 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/tag.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/tag.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_form_object_multipart_request_marker.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_form_object_multipart_request_marker.rb index adf4f15a5f01..6c571f867fb6 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_form_object_multipart_request_marker.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_form_object_multipart_request_marker.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb index fb75021de637..39d5ca02233b 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb index 717042bdc634..e78a6d43f65c 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/version.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/version.rb index 9ccf46939b34..0b5e9c52bd19 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/version.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/version.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module OpenapiClient diff --git a/samples/client/echo_api/ruby-typhoeus/openapi_client.gemspec b/samples/client/echo_api/ruby-typhoeus/openapi_client.gemspec index a5497ea1cb10..bea564811887 100644 --- a/samples/client/echo_api/ruby-typhoeus/openapi_client.gemspec +++ b/samples/client/echo_api/ruby-typhoeus/openapi_client.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 0.1.0 Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/echo_api/ruby-typhoeus/spec/spec_helper.rb b/samples/client/echo_api/ruby-typhoeus/spec/spec_helper.rb index 36fe04107e27..b3141e2fc89f 100644 --- a/samples/client/echo_api/ruby-typhoeus/spec/spec_helper.rb +++ b/samples/client/echo_api/ruby-typhoeus/spec/spec_helper.rb @@ -7,7 +7,6 @@ Contact: team@openapitools.org Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts index ffe05310d2dd..9e6ec6a1bfde 100644 --- a/samples/client/echo_api/typescript-axios/build/api.ts +++ b/samples/client/echo_api/typescript-axios/build/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -271,7 +270,6 @@ export const StringEnumRef = { export type StringEnumRef = typeof StringEnumRef[keyof typeof StringEnumRef]; - /** * * @export @@ -519,7 +517,6 @@ export class AuthApi extends BaseAPI { } - /** * BodyApi - axios parameter creator * @export @@ -1255,7 +1252,6 @@ export class BodyApi extends BaseAPI { } - /** * FormApi - axios parameter creator * @export @@ -1574,7 +1570,6 @@ export class FormApi extends BaseAPI { } - /** * HeaderApi - axios parameter creator * @export @@ -1730,7 +1725,6 @@ export const TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum = { } as const; export type TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum = typeof TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum[keyof typeof TestHeaderIntegerBooleanStringEnumsEnumNonrefStringHeaderEnum]; - /** * PathApi - axios parameter creator * @export @@ -1868,7 +1862,6 @@ export const TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnum } as const; export type TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathEnum = typeof TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathEnum[keyof typeof TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathEnumNonrefStringPathEnum]; - /** * QueryApi - axios parameter creator * @export @@ -2670,4 +2663,3 @@ export const TestEnumRefStringEnumNonrefStringQueryEnum = { } as const; export type TestEnumRefStringEnumNonrefStringQueryEnum = typeof TestEnumRefStringEnumNonrefStringQueryEnum[keyof typeof TestEnumRefStringEnumNonrefStringQueryEnum]; - diff --git a/samples/client/echo_api/typescript-axios/build/base.ts b/samples/client/echo_api/typescript-axios/build/base.ts index b95cd69a9ed8..edc23abc6cd2 100644 --- a/samples/client/echo_api/typescript-axios/build/base.ts +++ b/samples/client/echo_api/typescript-axios/build/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/echo_api/typescript-axios/build/common.ts b/samples/client/echo_api/typescript-axios/build/common.ts index fc1881f27b35..3a4a39f611a8 100644 --- a/samples/client/echo_api/typescript-axios/build/common.ts +++ b/samples/client/echo_api/typescript-axios/build/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/echo_api/typescript-axios/build/configuration.ts b/samples/client/echo_api/typescript-axios/build/configuration.ts index c952b7aefd76..dbacb1c9bcbf 100644 --- a/samples/client/echo_api/typescript-axios/build/configuration.ts +++ b/samples/client/echo_api/typescript-axios/build/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/echo_api/typescript-axios/build/index.ts b/samples/client/echo_api/typescript-axios/build/index.ts index 99df53bd2b8a..deff2a0f460c 100644 --- a/samples/client/echo_api/typescript-axios/build/index.ts +++ b/samples/client/echo_api/typescript-axios/build/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartArrayRequest.cs b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartArrayRequest.cs index a9568625dbce..01c9835b4eac 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartArrayRequest.cs +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartArrayRequest.cs @@ -115,7 +115,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequest.cs b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequest.cs index 5c75594cab70..3be74b7bba33 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequest.cs +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequest.cs @@ -161,7 +161,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequestMarker.cs b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequestMarker.cs index 22c4d970da17..c29be54dcb08 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequestMarker.cs +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartMixedRequestMarker.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartSingleRequest.cs b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartSingleRequest.cs index f3922222c8de..3d7ec00d06a3 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartSingleRequest.cs +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Model/MultipartSingleRequest.cs @@ -115,7 +115,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_additional_data.go b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_additional_data.go index a7186d87f51f..9a549093ee4c 100644 --- a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_additional_data.go +++ b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_additional_data.go @@ -239,4 +239,3 @@ func (v *NullableAdditionalData) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_base_item.go b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_base_item.go index 96d4179808c9..0afba2cce91d 100644 --- a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_base_item.go +++ b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_base_item.go @@ -183,4 +183,3 @@ func (v *NullableBaseItem) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_final_item.go b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_final_item.go index d3845f84998f..4ea353827c50 100644 --- a/samples/client/others/go/allof_multiple_ref_and_discriminator/model_final_item.go +++ b/samples/client/others/go/allof_multiple_ref_and_discriminator/model_final_item.go @@ -244,4 +244,3 @@ func (v *NullableFinalItem) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/oneof-anyof-required/model_nested_object1.go b/samples/client/others/go/oneof-anyof-required/model_nested_object1.go index f403748a8968..47be1241d675 100644 --- a/samples/client/others/go/oneof-anyof-required/model_nested_object1.go +++ b/samples/client/others/go/oneof-anyof-required/model_nested_object1.go @@ -156,4 +156,3 @@ func (v *NullableNestedObject1) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/oneof-anyof-required/model_nested_object2.go b/samples/client/others/go/oneof-anyof-required/model_nested_object2.go index c3f9468bc15c..8032959b1e6d 100644 --- a/samples/client/others/go/oneof-anyof-required/model_nested_object2.go +++ b/samples/client/others/go/oneof-anyof-required/model_nested_object2.go @@ -156,4 +156,3 @@ func (v *NullableNestedObject2) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/oneof-anyof-required/model_object.go b/samples/client/others/go/oneof-anyof-required/model_object.go index f0a03353b5c2..ae61ffb22d6a 100644 --- a/samples/client/others/go/oneof-anyof-required/model_object.go +++ b/samples/client/others/go/oneof-anyof-required/model_object.go @@ -154,4 +154,3 @@ func (v *NullableObject) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/go/oneof-anyof-required/model_object2.go b/samples/client/others/go/oneof-anyof-required/model_object2.go index ee4ff5ec523e..705ea87fc031 100644 --- a/samples/client/others/go/oneof-anyof-required/model_object2.go +++ b/samples/client/others/go/oneof-anyof-required/model_object2.go @@ -104,4 +104,3 @@ func (v *NullableObject2) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/others/java/jersey2-oneOf-Mixed/docs/Example.md b/samples/client/others/java/jersey2-oneOf-Mixed/docs/Example.md index 0e1dbddcd6a1..c75da8ef2796 100644 --- a/samples/client/others/java/jersey2-oneOf-Mixed/docs/Example.md +++ b/samples/client/others/java/jersey2-oneOf-Mixed/docs/Example.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index c1e4f4a33527..f340e9fd129c 100644 --- a/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/Example.java b/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/Example.java index eeb8f3882267..3c7511697ff7 100644 --- a/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/Example.java +++ b/samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/model/Example.java @@ -49,6 +49,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Example.ExampleDeserializer.class) @JsonSerialize(using = Example.ExampleSerializer.class) public class Example extends AbstractOpenApiSchema { @@ -140,7 +141,6 @@ public Example getNullValue(DeserializationContext ctxt) throws JsonMappingExcep public Example() { super("oneOf", Boolean.FALSE); } - public Example(UUID o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/others/java/jersey2-oneOf-duplicates/docs/Example.md b/samples/client/others/java/jersey2-oneOf-duplicates/docs/Example.md index f9241275dbb1..c2474e8419e4 100644 --- a/samples/client/others/java/jersey2-oneOf-duplicates/docs/Example.md +++ b/samples/client/others/java/jersey2-oneOf-duplicates/docs/Example.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index c1e4f4a33527..f340e9fd129c 100644 --- a/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/Example.java b/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/Example.java index b8ced5fc431c..55ad8ecd5b85 100644 --- a/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/Example.java +++ b/samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/model/Example.java @@ -49,6 +49,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Example.ExampleDeserializer.class) @JsonSerialize(using = Example.ExampleSerializer.class) public class Example extends AbstractOpenApiSchema { @@ -140,7 +141,6 @@ public Example getNullValue(DeserializationContext ctxt) throws JsonMappingExcep public Example() { super("oneOf", Boolean.FALSE); } - public Example(List o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 01169dfa047b..40ad48a08a1b 100644 --- a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/MyExampleGet200Response.java b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/MyExampleGet200Response.java index f5b0e2c17c6f..038996ec2db8 100644 --- a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/MyExampleGet200Response.java +++ b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/MyExampleGet200Response.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MyExampleGet200Response extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(MyExampleGet200Response.class.getName()); diff --git a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java index 281db31de5ed..f633d21d3067 100644 --- a/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java +++ b/samples/client/others/java/okhttp-gson-oneOf-array/src/main/java/org/openapitools/client/model/OneOf1.java @@ -51,11 +51,11 @@ * OneOf1 */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OneOf1 { public static final String SERIALIZED_NAME_MESSAGE1 = "message1"; @SerializedName(SERIALIZED_NAME_MESSAGE1) - @javax.annotation.Nullable - private String message1; + @javax.annotation.Nullable private String message1; public OneOf1() { } @@ -69,9 +69,7 @@ public OneOf1 message1(@javax.annotation.Nullable String message1) { * Get message1 * @return message1 */ - @javax.annotation.Nullable - - public String getMessage1() { + @javax.annotation.Nullable public String getMessage1() { return message1; } @@ -80,7 +78,6 @@ public void setMessage1(@javax.annotation.Nullable String message1) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 97a2c41ba8ac..aeb590e87797 100644 --- a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/MyExamplePostRequest.java b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/MyExamplePostRequest.java index 40270516374e..e9f52d3ad0a1 100644 --- a/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/MyExamplePostRequest.java +++ b/samples/client/others/java/okhttp-gson-oneOf/src/main/java/org/openapitools/client/model/MyExamplePostRequest.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MyExamplePostRequest extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(MyExamplePostRequest.class.getName()); diff --git a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 9404f782b206..11f02a32cf26 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SimpleOneOf.java b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SimpleOneOf.java index 6e8377845f9e..1f7beff4848c 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SimpleOneOf.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SimpleOneOf.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SimpleOneOf extends AbstractOpenApiSchema implements Serializable { private static final Logger log = Logger.getLogger(SimpleOneOf.class.getName()); diff --git a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java index b15c6f7d4c7a..8421dd4a7f9a 100644 --- a/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java +++ b/samples/client/others/java/okhttp-gson-streaming/src/main/java/org/openapitools/client/model/SomeObj.java @@ -50,6 +50,7 @@ * SomeObj */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SomeObj implements Serializable { private static final long serialVersionUID = 1L; @@ -102,31 +103,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti TypeEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_$_TYPE = "$_type"; @SerializedName(SERIALIZED_NAME_$_TYPE) - @javax.annotation.Nullable - private TypeEnum $type = TypeEnum.SOME_OBJ_IDENTIFIER; + @javax.annotation.Nullable private TypeEnum $type = TypeEnum.SOME_OBJ_IDENTIFIER; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) - @javax.annotation.Nullable - private Boolean active; + @javax.annotation.Nullable private Boolean active; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public SomeObj() { } @@ -140,8 +135,7 @@ public SomeObj() { * Get $type * @return $type */ - @javax.annotation.Nullable - public TypeEnum get$Type() { + @javax.annotation.Nullable public TypeEnum get$Type() { return $type; } @@ -159,8 +153,7 @@ public SomeObj id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -178,8 +171,7 @@ public SomeObj name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -197,8 +189,7 @@ public SomeObj active(@javax.annotation.Nullable Boolean active) { * Get active * @return active */ - @javax.annotation.Nullable - public Boolean getActive() { + @javax.annotation.Nullable public Boolean getActive() { return active; } @@ -216,8 +207,7 @@ public SomeObj type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -226,7 +216,6 @@ public void setType(@javax.annotation.Nullable String type) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catComposed.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catComposed.ts index 5a0e145deb88..adc039498478 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catComposed.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catComposed.ts @@ -14,4 +14,3 @@ export interface CatComposedModel { hunts?: boolean; } - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catInherited.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catInherited.ts index 0edfd1a07179..435d13840b24 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catInherited.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catInherited.ts @@ -14,4 +14,3 @@ export interface CatInheritedModel { hunts?: boolean; } - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catMapped.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catMapped.ts index a45844e85f20..2b50d2e5fd45 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catMapped.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/catMapped.ts @@ -14,4 +14,3 @@ export interface CatMappedModel { hunts?: boolean; } - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogComposed.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogComposed.ts index 79f4f55c0470..8295e03888e6 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogComposed.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogComposed.ts @@ -20,4 +20,3 @@ export enum DogComposedModelInlineBreedEnum { - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogInherited.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogInherited.ts index 37104f1e2d4e..557875553912 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogInherited.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogInherited.ts @@ -17,4 +17,3 @@ export interface DogInheritedModel { - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogMapped.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogMapped.ts index 24a3e3a0424b..eb07ddbd2730 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogMapped.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dogMapped.ts @@ -17,4 +17,3 @@ export interface DogMappedModel { - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dummy.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dummy.ts index 39744d612101..28ce8912b39b 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dummy.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/dummy.ts @@ -13,4 +13,3 @@ export interface DummyModel { 'property.name'?: string; } - diff --git a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/petWithoutDiscriminator.ts b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/petWithoutDiscriminator.ts index 2fc3c93a5bc7..ad6f90e1e177 100644 --- a/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/petWithoutDiscriminator.ts +++ b/samples/client/others/typescript-angular/builds/composed-schemas-tagged-unions/model/petWithoutDiscriminator.ts @@ -13,4 +13,3 @@ export interface PetWithoutDiscriminatorModel { petType: string; } - diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/api.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/api.ts index 76a72f3a74a7..1047512983a6 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/api.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/api.ts @@ -14,4 +14,3 @@ - diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/base.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/base.ts index 208ec53dda46..3d7ce8653e4e 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/base.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts index 95d62a0dcddb..29f664099899 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts index 2b516f9129ed..0de3571269b1 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/index.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/index.ts index 09f94830a1fe..5919c078a7b3 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/index.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; export * from "./model"; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts index 9604cf4c300b..3be24c42de00 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts @@ -13,7 +13,6 @@ */ - /** * * @export diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts index 3643cc60cff6..2a0892f03efb 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - // May contain unused imports in some cases // @ts-ignore import type { BranchDto } from './branch-dto'; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts index 4c6d31ceb243..619a9bb10645 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts @@ -13,7 +13,6 @@ */ - /** * * @export diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/flat-stock-pick-order-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/flat-stock-pick-order-dto.ts index 12cd97a7d4cc..f422254ea475 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/flat-stock-pick-order-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/flat-stock-pick-order-dto.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - // May contain unused imports in some cases // @ts-ignore import type { AbstractFlatStockPickOrderBaseDto } from './abstract-flat-stock-pick-order-base-dto'; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/internal-authenticated-user-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/internal-authenticated-user-dto.ts index b3d1d3737cab..d5499daf8db3 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/internal-authenticated-user-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/internal-authenticated-user-dto.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - // May contain unused imports in some cases // @ts-ignore import type { AbstractUserDto } from './abstract-user-dto'; diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/remote-authenticated-user-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/remote-authenticated-user-dto.ts index 0cfe57c46a78..2f18f848d5fb 100644 --- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/remote-authenticated-user-dto.ts +++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/remote-authenticated-user-dto.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - // May contain unused imports in some cases // @ts-ignore import type { AbstractUserDto } from './abstract-user-dto'; diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts index 53bf52f50bb9..37eec88de4f1 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { BranchDto } from './BranchDto'; import { @@ -48,7 +47,6 @@ export interface AbstractUserDto { */ type?: string; } - /** * Check if a given object implements the AbstractUserDto interface. */ @@ -107,4 +105,3 @@ export function AbstractUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boo 'type': value['type'], }; } - diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts index 5de31fa073f8..e8222c8be5c6 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface BranchDto { */ name?: string; } - /** * Check if a given object implements the BranchDto interface. */ @@ -62,4 +60,3 @@ export function BranchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/InternalAuthenticatedUserDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/InternalAuthenticatedUserDto.ts index 14a4f768ac4f..10291ce36de7 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/models/InternalAuthenticatedUserDto.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/models/InternalAuthenticatedUserDto.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { BranchDto } from './BranchDto'; import { @@ -35,7 +34,6 @@ import { */ export interface InternalAuthenticatedUserDto extends AbstractUserDto { } - /** * Check if a given object implements the InternalAuthenticatedUserDto interface. */ @@ -58,4 +56,3 @@ export function InternalAuthenticatedUserDtoFromJSONTyped(json: any, ignoreDiscr export function InternalAuthenticatedUserDtoToJSONTyped(value?: InternalAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any { return value; } - diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/RemoteAuthenticatedUserDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/RemoteAuthenticatedUserDto.ts index 6791e2e1216f..6819a50e0a78 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/models/RemoteAuthenticatedUserDto.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/models/RemoteAuthenticatedUserDto.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { BranchDto } from './BranchDto'; import { @@ -35,7 +34,6 @@ import { */ export interface RemoteAuthenticatedUserDto extends AbstractUserDto { } - /** * Check if a given object implements the RemoteAuthenticatedUserDto interface. */ @@ -58,4 +56,3 @@ export function RemoteAuthenticatedUserDtoFromJSONTyped(json: any, ignoreDiscrim export function RemoteAuthenticatedUserDtoToJSONTyped(value?: RemoteAuthenticatedUserDto | null, ignoreDiscriminator: boolean = false): any { return value; } - diff --git a/samples/client/others/typescript-fetch/self-import-issue/runtime.ts b/samples/client/others/typescript-fetch/self-import-issue/runtime.ts index 7dab7bfd087e..e60287f1e388 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/runtime.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/others/typescript-rxjs/allOf-composition/apis/DefaultApi.ts b/samples/client/others/typescript-rxjs/allOf-composition/apis/DefaultApi.ts index 50216e7be704..bf09b2b3499e 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/apis/DefaultApi.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/apis/DefaultApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/others/typescript-rxjs/allOf-composition/models/Hero.ts b/samples/client/others/typescript-rxjs/allOf-composition/models/Hero.ts index 98c39a6ecd68..1de11a781779 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/models/Hero.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/models/Hero.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Hero * @export diff --git a/samples/client/others/typescript-rxjs/allOf-composition/models/Human.ts b/samples/client/others/typescript-rxjs/allOf-composition/models/Human.ts index 2122f4c7a134..434495241561 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/models/Human.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/models/Human.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Human * @export diff --git a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBaby.ts b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBaby.ts index 34e768bf77e7..6752d32dedcc 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBaby.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBaby.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Human, } from './'; diff --git a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBoy.ts b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBoy.ts index 8d648c02f4c9..99b9e89896e2 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBoy.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperBoy.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Human, } from './'; diff --git a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperMan.ts b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperMan.ts index f66efcce6af9..4d8c61ea82b9 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/models/SuperMan.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/models/SuperMan.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Hero, Human, diff --git a/samples/client/others/typescript-rxjs/allOf-composition/runtime.ts b/samples/client/others/typescript-rxjs/allOf-composition/runtime.ts index 64b0b2b4ad40..ea971a274537 100644 --- a/samples/client/others/typescript-rxjs/allOf-composition/runtime.ts +++ b/samples/client/others/typescript-rxjs/allOf-composition/runtime.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { of } from 'rxjs'; import type { Observable } from 'rxjs'; import { ajax } from 'rxjs/ajax'; diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASOrder.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASOrder.cls index 641462b2e6c6..bbf730d7ed21 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASOrder.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASOrder.cls @@ -46,7 +46,6 @@ public class OASOrder { APPROVED, DELIVERED } - /** * Order Status * @return status diff --git a/samples/client/petstore/apex/force-app/main/default/classes/OASPet.cls b/samples/client/petstore/apex/force-app/main/default/classes/OASPet.cls index b97944478972..0d6b3a02d6f0 100644 --- a/samples/client/petstore/apex/force-app/main/default/classes/OASPet.cls +++ b/samples/client/petstore/apex/force-app/main/default/classes/OASPet.cls @@ -52,7 +52,6 @@ public class OASPet { PENDING, SOLD } - /** * pet status in the store * @return status diff --git a/samples/client/petstore/crystal/src/petstore/models/another_property_name_mapping.cr b/samples/client/petstore/crystal/src/petstore/models/another_property_name_mapping.cr index a95e2c312f8e..368d209bb3d3 100644 --- a/samples/client/petstore/crystal/src/petstore/models/another_property_name_mapping.cr +++ b/samples/client/petstore/crystal/src/petstore/models/another_property_name_mapping.cr @@ -187,7 +187,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/api_response.cr b/samples/client/petstore/crystal/src/petstore/models/api_response.cr index 5bf7e9b38a83..def54c3d7841 100644 --- a/samples/client/petstore/crystal/src/petstore/models/api_response.cr +++ b/samples/client/petstore/crystal/src/petstore/models/api_response.cr @@ -184,7 +184,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/category.cr b/samples/client/petstore/crystal/src/petstore/models/category.cr index 7b98fe879d26..0f5bb91f9d5a 100644 --- a/samples/client/petstore/crystal/src/petstore/models/category.cr +++ b/samples/client/petstore/crystal/src/petstore/models/category.cr @@ -197,7 +197,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/format_test.cr b/samples/client/petstore/crystal/src/petstore/models/format_test.cr index 4789e105239b..81dd69ddece6 100644 --- a/samples/client/petstore/crystal/src/petstore/models/format_test.cr +++ b/samples/client/petstore/crystal/src/petstore/models/format_test.cr @@ -433,7 +433,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/order.cr b/samples/client/petstore/crystal/src/petstore/models/order.cr index ff8688ffe31d..c5bf9c45c415 100644 --- a/samples/client/petstore/crystal/src/petstore/models/order.cr +++ b/samples/client/petstore/crystal/src/petstore/models/order.cr @@ -232,7 +232,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/pet.cr b/samples/client/petstore/crystal/src/petstore/models/pet.cr index a61796119ca8..c6d3cb81865b 100644 --- a/samples/client/petstore/crystal/src/petstore/models/pet.cr +++ b/samples/client/petstore/crystal/src/petstore/models/pet.cr @@ -233,7 +233,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/tag.cr b/samples/client/petstore/crystal/src/petstore/models/tag.cr index 0aee24114a56..d0a9a896ec48 100644 --- a/samples/client/petstore/crystal/src/petstore/models/tag.cr +++ b/samples/client/petstore/crystal/src/petstore/models/tag.cr @@ -180,7 +180,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/crystal/src/petstore/models/user.cr b/samples/client/petstore/crystal/src/petstore/models/user.cr index 67fbf89356d2..48f289cccb15 100644 --- a/samples/client/petstore/crystal/src/petstore/models/user.cr +++ b/samples/client/petstore/crystal/src/petstore/models/user.cr @@ -205,7 +205,5 @@ module Petstore value end end - end - end diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs index e9013f0ed0df..40c4c74fcb8a 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs @@ -78,7 +78,6 @@ public enum StatusEnum [EnumMember(Value = "delivered")] DeliveredEnum = 3 } - /// /// Order Status /// diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs index d5a816cd5ee1..9a37e9201bf1 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs @@ -86,7 +86,6 @@ public enum StatusEnum [EnumMember(Value = "sold")] SoldEnum = 3 } - /// /// pet status in the store /// diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs index 01bfb94ecedb..c8463cbfb558 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -156,8 +155,7 @@ private void AfterGetApiKeysId_1DefaultImplementation(IGetApiKeysId_1ApiResponse bool suppressDefaultLog = false; AfterGetApiKeysId_1(ref suppressDefaultLog, apiResponseLocalVar, id); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -179,8 +177,7 @@ private void OnErrorGetApiKeysId_1DefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorGetApiKeysId_1(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, id); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -302,7 +299,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs index 01f8b7046396..5c9f48bb79b7 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -156,8 +155,7 @@ private void AfterGetApiKeysId_0DefaultImplementation(IGetApiKeysId_0ApiResponse bool suppressDefaultLog = false; AfterGetApiKeysId_0(ref suppressDefaultLog, apiResponseLocalVar, id); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -179,8 +177,7 @@ private void OnErrorGetApiKeysId_0DefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorGetApiKeysId_0(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, id); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -302,7 +299,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs index be13fa923c79..dfe401a004e9 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -156,8 +155,7 @@ private void AfterGetApiKeysIdDefaultImplementation(IGetApiKeysIdApiResponse api bool suppressDefaultLog = false; AfterGetApiKeysId(ref suppressDefaultLog, apiResponseLocalVar, id); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -179,8 +177,7 @@ private void OnErrorGetApiKeysIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetApiKeysId(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, id); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -302,7 +299,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiException.cs index 2e24a58ea04e..199453bd527a 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiException.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs index faa5d765bedd..388c598d2575 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 2e5bda82ea8f..b289a379d41c 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -27,7 +27,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 0ced717f3e38..cc019e9a8851 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -27,7 +27,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index fb959c7d7cc9..d5a97ad7c27d 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -41,7 +41,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 454404eb8863..a4fa97f88643 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -41,7 +41,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/Option.cs index 70193a99d42b..492c81292436 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 7537f0872a27..5fd689af787f 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 19ecb6691081..fcad0b8160f0 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -8,7 +8,6 @@ * Contact: support@files.com * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 4e25fbff5735..546de37dc3d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -158,8 +157,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterList(ref suppressDefaultLog, apiResponseLocalVar, personId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -181,8 +179,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -316,9 +313,9 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.Person Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -346,7 +343,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiException.cs index 78fdad8039f0..051114c5c25a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0d99f099669a..edc2fc6b750e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index a7f3806b960f..d2ac4eec7491 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index c818977618f2..0b74c2d903fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/Option.cs index 0b113d11177e..70967c615a56 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 53ad628a9a3f..db4b3209d70b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index ed829aca7729..a7f2e8229bc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 3cdde4b29d96..212edbb1f3b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -7,7 +7,6 @@ * 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; @@ -78,7 +77,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -193,13 +191,11 @@ public void WriteProperties(Utf8JsonWriter writer, Adult adult, JsonSerializerOp writer.WritePropertyName("children"); JsonSerializer.Serialize(writer, adult.Children, jsonSerializerOptions); } - if (adult.FirstNameOption.IsSet) - writer.WriteString("firstName", adult.FirstName); - - if (adult.LastNameOption.IsSet) - writer.WriteString("lastName", adult.LastName); - - writer.WriteString("$_type", adult.Type); + if (adult.FirstNameOption.IsSet) + writer.WriteString("firstName", adult.FirstName); + if (adult.LastNameOption.IsSet) + writer.WriteString("lastName", adult.LastName); + writer.WriteString("$_type", adult.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs index 7f96dcd8b664..497d3534e43f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -7,7 +7,6 @@ * 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; @@ -94,7 +93,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -209,19 +207,16 @@ public void WriteProperties(Utf8JsonWriter writer, Child child, JsonSerializerOp if (child.LastNameOption.IsSet && child.LastName == null) throw new ArgumentNullException(nameof(child.LastName), "Property is required for class Child."); - if (child.AgeOption.IsSet) - writer.WriteNumber("age", child.AgeOption.Value.Value); - - if (child.FirstNameOption.IsSet) - writer.WriteString("firstName", child.FirstName); - - if (child.LastNameOption.IsSet) - writer.WriteString("lastName", child.LastName); - - writer.WriteString("$_type", child.Type); + if (child.AgeOption.IsSet) + writer.WriteNumber("age", child.AgeOption.Value.Value); + if (child.FirstNameOption.IsSet) + writer.WriteString("firstName", child.FirstName); + if (child.LastNameOption.IsSet) + writer.WriteString("lastName", child.LastName); + writer.WriteString("$_type", child.Type); - if (child.BoosterSeatOption.IsSet) - writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value.Value); + if (child.BoosterSeatOption.IsSet) + writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6c9261c98790..88f0894aa660 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -7,7 +7,6 @@ * 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; @@ -116,9 +115,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -235,13 +232,11 @@ public void WriteProperties(Utf8JsonWriter writer, Person person, JsonSerializer if (person.LastNameOption.IsSet && person.LastName == null) throw new ArgumentNullException(nameof(person.LastName), "Property is required for class Person."); - if (person.FirstNameOption.IsSet) - writer.WriteString("firstName", person.FirstName); - - if (person.LastNameOption.IsSet) - writer.WriteString("lastName", person.LastName); - - writer.WriteString("$_type", person.Type); + if (person.FirstNameOption.IsSet) + writer.WriteString("firstName", person.FirstName); + if (person.LastNameOption.IsSet) + writer.WriteString("lastName", person.LastName); + writer.WriteString("$_type", person.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..263bf9b911eb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..5cd766ff9855 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index cd1e938ffb37..be08e3b49df9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -110,9 +109,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -235,8 +232,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..321baaa577dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -82,9 +81,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,8 +163,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index bdb8dcaba25b..6171c154f3ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -82,9 +81,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -164,8 +161,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index de8c3fcf7b7b..853771b26adb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -109,9 +108,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,8 +231,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1fd1ffef4feb..0b7550d442f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -363,9 +360,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -393,7 +390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index 879c3ecdb9ad..1f358e754583 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -539,9 +536,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -569,7 +566,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -598,8 +595,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -621,8 +617,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -764,7 +759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -779,8 +774,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -800,8 +794,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -927,9 +920,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -972,8 +965,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -993,8 +985,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1120,9 +1111,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1150,7 +1141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1165,8 +1156,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1186,8 +1176,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1313,9 +1302,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1343,7 +1332,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 38f936207662..f0973138ec4e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1448,9 +1445,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1478,7 +1475,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1496,8 +1493,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1519,8 +1515,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1665,9 +1660,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1695,7 +1690,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1724,8 +1719,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1747,8 +1741,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1895,9 +1888,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1925,7 +1918,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1943,8 +1936,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1966,8 +1958,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2112,9 +2103,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2142,7 +2133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2172,8 +2163,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2197,8 +2187,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2354,9 +2343,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2384,7 +2373,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2399,8 +2388,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2420,8 +2408,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2547,9 +2534,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2577,7 +2564,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2592,8 +2579,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2613,8 +2599,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2740,9 +2725,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2770,7 +2755,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2785,8 +2770,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2806,8 +2790,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2933,9 +2916,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2963,7 +2946,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2992,8 +2975,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3015,8 +2997,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3152,7 +3133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3181,8 +3162,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3204,8 +3184,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3341,7 +3320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3375,8 +3354,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3400,8 +3378,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3546,7 +3523,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3575,8 +3552,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3598,8 +3574,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3745,9 +3720,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -3775,7 +3750,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3837,8 +3812,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3886,8 +3860,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4121,7 +4094,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4165,8 +4138,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4202,8 +4174,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4396,7 +4367,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4419,8 +4390,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4452,8 +4422,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4617,7 +4586,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4646,8 +4615,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4669,8 +4637,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4806,7 +4773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4835,8 +4802,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4858,8 +4824,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4995,7 +4960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5029,8 +4994,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5054,8 +5018,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5202,7 +5165,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5263,8 +5226,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5302,8 +5264,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5467,7 +5428,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5496,8 +5457,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5519,8 +5479,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5656,7 +5615,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 010a227c8b27..e40c81e07474 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -376,9 +373,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -406,7 +403,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index 6f1add615397..d708463d9973 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1075,7 +1070,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1104,8 +1099,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1127,8 +1121,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1289,9 +1282,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1351,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1373,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1395,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1565,9 +1556,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1601,7 +1592,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1619,8 +1610,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1642,8 +1632,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1793,9 +1782,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1835,7 +1824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1864,8 +1853,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1887,8 +1875,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2058,7 +2045,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2093,8 +2080,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2120,8 +2106,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2283,7 +2268,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2318,8 +2303,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2345,8 +2329,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2518,9 +2501,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2548,7 +2531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2583,8 +2566,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2610,8 +2592,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2783,9 +2764,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2813,7 +2794,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index 2cb0523731c5..65361e00feaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -533,7 +530,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -548,8 +545,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -569,8 +565,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -705,9 +700,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -735,7 +730,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -753,8 +748,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -776,8 +770,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -910,9 +903,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -952,7 +945,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -981,8 +974,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1004,8 +996,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1152,9 +1143,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1188,7 +1179,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 46a87aed2c07..3f5816f3c7b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -622,8 +621,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -645,8 +643,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -782,7 +779,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -811,8 +808,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -834,8 +830,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -971,7 +966,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1000,8 +995,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1023,8 +1017,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1160,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1189,8 +1182,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1212,8 +1204,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1342,7 +1333,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1371,8 +1362,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1394,8 +1384,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1530,9 +1519,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1586,9 +1575,9 @@ public bool TryOk(out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1616,7 +1605,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1650,8 +1639,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1675,8 +1663,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1820,9 +1807,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1856,7 +1843,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1871,8 +1858,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1892,8 +1878,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2008,7 +1993,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2042,8 +2027,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2067,8 +2051,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2214,7 +2197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..364befb0206d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 973f9e9d4e80..218395c88306 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index b491c61f07fa..6817e3c39270 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eec..f58b4501c674 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 534f27a8cc52..1b233732bfc6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..58d445021e5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..cf96397d517f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..9eef9e63b103 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..c574d5a2ea6e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..3b312a560cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..9fda41895306 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..44bf8667e208 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..f00c246ac84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..073503dca9ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..30a9fd8381d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..2a87cf4680be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..f3366e53886e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..55c4682af23c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..dc43e6dd6cd8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..4bf859316189 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 8d76e5b9a7ce..bd1d1a7976c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -76,7 +75,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -172,8 +170,8 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial writer.WriteString("pet_type", ChildCatAllOfPetTypeValueConverter.ToJsonValue(childCat.PetType)); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs index 9e8bc253fdb2..21f91ce0dd43 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..cb921fcaf865 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..eb80cbda5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..ab41548c7686 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..486f9de74139 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..d0abaf05c053 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 6520bebabc0f..0e8a2f08a7cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs index c620b7197c40..a400e7a5e607 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs index 4a414d11d0db..9fdae0149620 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..bb7ca09ead8b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -204,9 +203,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs index 3a1302bf271e..549f50903eeb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs index cd0add6cf3ce..19db7af3bb09 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs index adad28355b70..307c5035bc78 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9d2bdcce2860 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..6e1c51ef8b0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs index da357d93dd28..e02997cbefd1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d82c3b21439c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..274ef7b4267a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..285c83264ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..f1ec3159ed17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..5b356ea284fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..e1e0d40f4ac0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..7dcc77628b90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..fa3c03f346f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 120a8fb0dd54..b0e44363fdd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs index 441ea5dcb7da..6c9c1eecc950 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..31dd097161f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..7e50c69e51b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..2416a236128e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..a4467dcf5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..a0b39c8f7228 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..03d7fe50ba88 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..63f3b46af6e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..a1162409132b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..2348f9b6ea30 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..5be040369fd9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..f4dcb87a7749 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..abd2ee91e7ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..a81386ab9dbb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs index 3dbb629ecf99..fadca2c06704 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -292,22 +289,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - if (order.StatusOption.IsSet) + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + if (order.StatusOption.IsSet) { var statusRawValue = OrderStatusValueConverter.ToJsonValue(order.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs index 6566ca4aa564..cb3a96c98c6b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..2cbec554f7c9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs index e4049df78c03..e86499653415 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -150,9 +149,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -290,19 +287,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - if (pet.StatusOption.IsSet) + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + if (pet.StatusOption.IsSet) { var statusRawValue = PetStatusValueConverter.ToJsonValue(pet.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs index 9e19b612bf97..80e8237afa9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..2f95cf4e9464 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 4eb4f6acc58d..422ccd7db4bc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -621,9 +620,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -1111,15 +1108,12 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); writer.WriteNumber("required_notnullable_enum_integer", requiredNotnullableEnumIntegerRawValue); var requiredNotnullableEnumIntegerOnlyRawValue = RequiredClassRequiredNotnullableEnumIntegerOnlyValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly); @@ -1131,42 +1125,33 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) { var notrequiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableEnumInteger.Value); writer.WriteNumber("notrequired_notnullable_enum_integer", notrequiredNotnullableEnumIntegerRawValue); @@ -1186,13 +1171,11 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -1200,19 +1183,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) { var notrequiredNullableEnumIntegerRawValue = RequiredClassRequiredNullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value); @@ -1244,19 +1225,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -1264,21 +1243,18 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger == null) + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger == null) writer.WriteNull("required_nullable_enum_integer"); else { @@ -1306,11 +1282,10 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -1322,14 +1297,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs index 04988ef3ee99..5a88e78a43d5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs index 775aba4f6af0..aa2ab4bd8956 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs index 5b4f29294ac6..5d7b5f2e72b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs index 365504a241bf..413ba5f03531 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs index 4c5f2c56ba58..8a9e89443054 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs index 36bcb1481310..9e1a16e28b4e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..031648b131a9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..3505a0f0ecfa 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..8b7c60dbfd1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..c6abc777133f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..043704287724 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..e51918c7a305 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..4743b09271dc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs index ccb446b02503..b0d3189ca1e0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs index ec14b39944da..47602a4ec2a5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs index 33ff2ce2cc21..3270c9d4ccaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs index d86b48d4a9b7..2a92b6fa5b07 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs index 4f1c9c53c603..cc15199cd7fb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..13c411093c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs index e89d58457324..f92a3edc061f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..156753c72517 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..755bd2d5bfac 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,9 +185,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - if (zebra.TypeOption.IsSet) + writer.WriteString("className", zebra.ClassName); + if (zebra.TypeOption.IsSet) { var typeRawValue = ZebraTypeValueConverter.ToJsonValue(zebra.Type.Value); writer.WriteString("type", typeRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs index 4a54f2a265a1..18ee3f6629bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..0b47e8dbb78e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs index 2b062a550aba..44b4495cdd20 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..263bf9b911eb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..5cd766ff9855 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 1d1c7c5388c0..7c048dcc1c2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -106,9 +105,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -218,8 +215,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1fd1ffef4feb..0b7550d442f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -363,9 +360,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -393,7 +390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 879c3ecdb9ad..1f358e754583 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -539,9 +536,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -569,7 +566,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -598,8 +595,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -621,8 +617,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -764,7 +759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -779,8 +774,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -800,8 +794,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -927,9 +920,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -972,8 +965,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -993,8 +985,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1120,9 +1111,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1150,7 +1141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1165,8 +1156,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1186,8 +1176,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1313,9 +1302,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1343,7 +1332,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index b3b0cf5352ff..4716b57d5b84 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1448,9 +1445,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1478,7 +1475,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1496,8 +1493,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1519,8 +1515,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1665,9 +1660,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1695,7 +1690,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1724,8 +1719,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1747,8 +1741,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1895,9 +1888,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1925,7 +1918,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1943,8 +1936,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1966,8 +1958,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2112,9 +2103,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2142,7 +2133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2172,8 +2163,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2197,8 +2187,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2354,9 +2343,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2384,7 +2373,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2399,8 +2388,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2420,8 +2408,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2547,9 +2534,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2577,7 +2564,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2592,8 +2579,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2613,8 +2599,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2740,9 +2725,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2770,7 +2755,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2785,8 +2770,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2806,8 +2790,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2933,9 +2916,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2963,7 +2946,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2992,8 +2975,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3015,8 +2997,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3152,7 +3133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3181,8 +3162,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3204,8 +3184,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3341,7 +3320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3375,8 +3354,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3400,8 +3378,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3546,7 +3523,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3575,8 +3552,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3598,8 +3574,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3745,9 +3720,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -3775,7 +3750,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3837,8 +3812,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3886,8 +3860,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4121,7 +4094,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4177,8 +4150,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4214,8 +4186,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4408,7 +4379,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4431,8 +4402,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4464,8 +4434,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4629,7 +4598,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4658,8 +4627,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4681,8 +4649,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4818,7 +4785,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4847,8 +4814,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4870,8 +4836,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5007,7 +4972,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5041,8 +5006,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5066,8 +5030,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5214,7 +5177,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5275,8 +5238,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5314,8 +5276,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5479,7 +5440,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5508,8 +5469,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5531,8 +5491,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5668,7 +5627,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 010a227c8b27..e40c81e07474 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -376,9 +373,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -406,7 +403,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index e86b55647135..e74582c1039c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1075,7 +1070,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1104,8 +1099,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1127,8 +1121,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1289,9 +1282,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1351,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1373,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1395,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1565,9 +1556,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1601,7 +1592,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1619,8 +1610,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1642,8 +1632,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1793,9 +1782,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1835,7 +1824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1864,8 +1853,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1887,8 +1875,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2058,7 +2045,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2093,8 +2080,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2120,8 +2106,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2283,7 +2268,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2318,8 +2303,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2345,8 +2329,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2518,9 +2501,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2548,7 +2531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2583,8 +2566,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2610,8 +2592,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2783,9 +2764,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2813,7 +2794,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index 2cb0523731c5..65361e00feaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -533,7 +530,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -548,8 +545,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -569,8 +565,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -705,9 +700,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -735,7 +730,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -753,8 +748,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -776,8 +770,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -910,9 +903,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -952,7 +945,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -981,8 +974,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1004,8 +996,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1152,9 +1143,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1188,7 +1179,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 46a87aed2c07..3f5816f3c7b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -622,8 +621,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -645,8 +643,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -782,7 +779,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -811,8 +808,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -834,8 +830,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -971,7 +966,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1000,8 +995,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1023,8 +1017,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1160,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1189,8 +1182,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1212,8 +1204,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1342,7 +1333,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1371,8 +1362,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1394,8 +1384,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1530,9 +1519,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1586,9 +1575,9 @@ public bool TryOk(out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1616,7 +1605,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1650,8 +1639,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1675,8 +1663,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1820,9 +1807,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1856,7 +1843,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1871,8 +1858,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1892,8 +1878,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2008,7 +1993,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2042,8 +2027,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2067,8 +2051,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2214,7 +2197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..364befb0206d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 973f9e9d4e80..218395c88306 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index b491c61f07fa..6817e3c39270 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eec..f58b4501c674 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 534f27a8cc52..1b233732bfc6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..58d445021e5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..cf96397d517f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..9eef9e63b103 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..c574d5a2ea6e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..3b312a560cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..9fda41895306 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..44bf8667e208 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..f00c246ac84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..073503dca9ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..30a9fd8381d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..2a87cf4680be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..f3366e53886e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..55c4682af23c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..dc43e6dd6cd8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..4bf859316189 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..6027bde8f37c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -93,7 +92,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -128,7 +126,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -222,10 +219,9 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..cb921fcaf865 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..eb80cbda5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..ab41548c7686 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..486f9de74139 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..d0abaf05c053 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..23f818fe4723 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -109,7 +108,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -175,7 +173,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -231,9 +228,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..9970b90fe0b4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -207,7 +206,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -272,7 +270,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -344,7 +341,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -423,7 +419,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -586,7 +581,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -688,9 +682,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -842,16 +834,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption.Value != null) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9d2bdcce2860 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..6e1c51ef8b0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d82c3b21439c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..274ef7b4267a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..285c83264ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..f1ec3159ed17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..5b356ea284fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..e1e0d40f4ac0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..7dcc77628b90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..fa3c03f346f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..f6e951e924e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -113,7 +112,6 @@ public static string InnerEnumToJsonValue(InnerEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -197,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..31dd097161f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..7e50c69e51b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..2416a236128e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..a4467dcf5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..a0b39c8f7228 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..03d7fe50ba88 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..63f3b46af6e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..a1162409132b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..2348f9b6ea30 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..5be040369fd9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..f4dcb87a7749 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..abd2ee91e7ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..a81386ab9dbb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..ce567c492275 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -246,9 +244,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -374,22 +370,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..2cbec554f7c9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..73b618198e74 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -232,9 +230,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -372,19 +368,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..2f95cf4e9464 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..81d8bab84e77 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -186,7 +185,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -251,7 +249,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -407,7 +404,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -478,7 +474,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -550,7 +545,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -713,7 +707,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -798,7 +791,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -870,7 +862,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1036,7 +1027,6 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1121,7 +1111,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1186,7 +1175,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1345,7 +1333,6 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1699,9 +1686,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2181,78 +2166,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2260,31 +2227,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2298,19 +2261,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2318,42 +2279,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2365,14 +2320,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..031648b131a9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..3505a0f0ecfa 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..8b7c60dbfd1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..c6abc777133f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..043704287724 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..e51918c7a305 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..4743b09271dc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..13c411093c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..f92a3edc061f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..156753c72517 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..798ed23c9b10 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -123,7 +122,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -172,9 +170,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -268,9 +264,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); writer.WriteString("type", typeRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..ea1af5c7ee4a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -107,7 +106,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -149,9 +147,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 1662385fe8f8..7e03dff8740a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterNowGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.NowGet200Response Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index cf39d3c11d75..2489028b0421 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..3371a880a416 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 52e971d082a7..48937d5478ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 968d29161b12..84d3f2293127 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 2b34371084b5..4a8753660d61 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index cddb84058868..70e61323455d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 069d52308681..633c345decd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..a86ce711c8c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -91,9 +90,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public override void Write(Utf8JsonWriter writer, NowGet200Response nowGet200Res /// public void WriteProperties(Utf8JsonWriter writer, NowGet200Response nowGet200Response, JsonSerializerOptions jsonSerializerOptions) { - if (nowGet200Response.NowOption.IsSet) - writer.WriteString("now", nowGet200Response.NowOption.Value.Value.ToString(NowFormat)); - - if (nowGet200Response.TodayOption.IsSet) - writer.WriteString("today", nowGet200Response.TodayOption.Value.Value.ToString(TodayFormat)); + if (nowGet200Response.NowOption.IsSet) + writer.WriteString("now", nowGet200Response.NowOption.Value.Value.ToString(NowFormat)); + if (nowGet200Response.TodayOption.IsSet) + writer.WriteString("today", nowGet200Response.TodayOption.Value.Value.ToString(TodayFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 4e25fbff5735..546de37dc3d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -158,8 +157,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterList(ref suppressDefaultLog, apiResponseLocalVar, personId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -181,8 +179,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -316,9 +313,9 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.Person Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -346,7 +343,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs index 78fdad8039f0..051114c5c25a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0d99f099669a..edc2fc6b750e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index a7f3806b960f..d2ac4eec7491 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index c818977618f2..0b74c2d903fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/Option.cs index 0b113d11177e..70967c615a56 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 53ad628a9a3f..db4b3209d70b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index ed829aca7729..a7f2e8229bc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 3cdde4b29d96..212edbb1f3b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -7,7 +7,6 @@ * 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; @@ -78,7 +77,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -193,13 +191,11 @@ public void WriteProperties(Utf8JsonWriter writer, Adult adult, JsonSerializerOp writer.WritePropertyName("children"); JsonSerializer.Serialize(writer, adult.Children, jsonSerializerOptions); } - if (adult.FirstNameOption.IsSet) - writer.WriteString("firstName", adult.FirstName); - - if (adult.LastNameOption.IsSet) - writer.WriteString("lastName", adult.LastName); - - writer.WriteString("$_type", adult.Type); + if (adult.FirstNameOption.IsSet) + writer.WriteString("firstName", adult.FirstName); + if (adult.LastNameOption.IsSet) + writer.WriteString("lastName", adult.LastName); + writer.WriteString("$_type", adult.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 7f96dcd8b664..497d3534e43f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -7,7 +7,6 @@ * 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; @@ -94,7 +93,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -209,19 +207,16 @@ public void WriteProperties(Utf8JsonWriter writer, Child child, JsonSerializerOp if (child.LastNameOption.IsSet && child.LastName == null) throw new ArgumentNullException(nameof(child.LastName), "Property is required for class Child."); - if (child.AgeOption.IsSet) - writer.WriteNumber("age", child.AgeOption.Value.Value); - - if (child.FirstNameOption.IsSet) - writer.WriteString("firstName", child.FirstName); - - if (child.LastNameOption.IsSet) - writer.WriteString("lastName", child.LastName); - - writer.WriteString("$_type", child.Type); + if (child.AgeOption.IsSet) + writer.WriteNumber("age", child.AgeOption.Value.Value); + if (child.FirstNameOption.IsSet) + writer.WriteString("firstName", child.FirstName); + if (child.LastNameOption.IsSet) + writer.WriteString("lastName", child.LastName); + writer.WriteString("$_type", child.Type); - if (child.BoosterSeatOption.IsSet) - writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value.Value); + if (child.BoosterSeatOption.IsSet) + writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6c9261c98790..88f0894aa660 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -7,7 +7,6 @@ * 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; @@ -116,9 +115,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -235,13 +232,11 @@ public void WriteProperties(Utf8JsonWriter writer, Person person, JsonSerializer if (person.LastNameOption.IsSet && person.LastName == null) throw new ArgumentNullException(nameof(person.LastName), "Property is required for class Person."); - if (person.FirstNameOption.IsSet) - writer.WriteString("firstName", person.FirstName); - - if (person.LastNameOption.IsSet) - writer.WriteString("lastName", person.LastName); - - writer.WriteString("$_type", person.Type); + if (person.FirstNameOption.IsSet) + writer.WriteString("firstName", person.FirstName); + if (person.LastNameOption.IsSet) + writer.WriteString("lastName", person.LastName); + writer.WriteString("$_type", person.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..263bf9b911eb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..5cd766ff9855 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index cd1e938ffb37..be08e3b49df9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -110,9 +109,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -235,8 +232,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..321baaa577dd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -82,9 +81,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,8 +163,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index bdb8dcaba25b..6171c154f3ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -82,9 +81,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -164,8 +161,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index de8c3fcf7b7b..853771b26adb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -109,9 +108,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,8 +231,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1fd1ffef4feb..0b7550d442f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -363,9 +360,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -393,7 +390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index 879c3ecdb9ad..1f358e754583 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -539,9 +536,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -569,7 +566,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -598,8 +595,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -621,8 +617,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -764,7 +759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -779,8 +774,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -800,8 +794,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -927,9 +920,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -972,8 +965,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -993,8 +985,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1120,9 +1111,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1150,7 +1141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1165,8 +1156,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1186,8 +1176,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1313,9 +1302,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1343,7 +1332,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 38f936207662..f0973138ec4e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1448,9 +1445,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1478,7 +1475,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1496,8 +1493,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1519,8 +1515,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1665,9 +1660,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1695,7 +1690,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1724,8 +1719,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1747,8 +1741,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1895,9 +1888,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1925,7 +1918,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1943,8 +1936,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1966,8 +1958,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2112,9 +2103,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2142,7 +2133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2172,8 +2163,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2197,8 +2187,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2354,9 +2343,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2384,7 +2373,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2399,8 +2388,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2420,8 +2408,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2547,9 +2534,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2577,7 +2564,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2592,8 +2579,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2613,8 +2599,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2740,9 +2725,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2770,7 +2755,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2785,8 +2770,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2806,8 +2790,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2933,9 +2916,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2963,7 +2946,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2992,8 +2975,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3015,8 +2997,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3152,7 +3133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3181,8 +3162,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3204,8 +3184,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3341,7 +3320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3375,8 +3354,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3400,8 +3378,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3546,7 +3523,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3575,8 +3552,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3598,8 +3574,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3745,9 +3720,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -3775,7 +3750,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3837,8 +3812,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3886,8 +3860,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4121,7 +4094,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4165,8 +4138,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4202,8 +4174,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4396,7 +4367,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4419,8 +4390,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4452,8 +4422,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4617,7 +4586,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4646,8 +4615,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4669,8 +4637,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4806,7 +4773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4835,8 +4802,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4858,8 +4824,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4995,7 +4960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5029,8 +4994,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5054,8 +5018,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5202,7 +5165,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5263,8 +5226,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5302,8 +5264,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5467,7 +5428,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5496,8 +5457,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5519,8 +5479,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5656,7 +5615,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 010a227c8b27..e40c81e07474 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -376,9 +373,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -406,7 +403,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index 6f1add615397..d708463d9973 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1075,7 +1070,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1104,8 +1099,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1127,8 +1121,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1289,9 +1282,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1351,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1373,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1395,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1565,9 +1556,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1601,7 +1592,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1619,8 +1610,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1642,8 +1632,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1793,9 +1782,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1835,7 +1824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1864,8 +1853,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1887,8 +1875,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2058,7 +2045,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2093,8 +2080,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2120,8 +2106,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2283,7 +2268,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2318,8 +2303,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2345,8 +2329,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2518,9 +2501,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2548,7 +2531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2583,8 +2566,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2610,8 +2592,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2783,9 +2764,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2813,7 +2794,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index 2cb0523731c5..65361e00feaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -533,7 +530,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -548,8 +545,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -569,8 +565,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -705,9 +700,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -735,7 +730,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -753,8 +748,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -776,8 +770,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -910,9 +903,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -952,7 +945,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -981,8 +974,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1004,8 +996,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1152,9 +1143,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1188,7 +1179,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 46a87aed2c07..3f5816f3c7b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -622,8 +621,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -645,8 +643,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -782,7 +779,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -811,8 +808,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -834,8 +830,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -971,7 +966,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1000,8 +995,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1023,8 +1017,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1160,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1189,8 +1182,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1212,8 +1204,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1342,7 +1333,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1371,8 +1362,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1394,8 +1384,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1530,9 +1519,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1586,9 +1575,9 @@ public bool TryOk(out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1616,7 +1605,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1650,8 +1639,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1675,8 +1663,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1820,9 +1807,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1856,7 +1843,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1871,8 +1858,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1892,8 +1878,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2008,7 +1993,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2042,8 +2027,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2067,8 +2051,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2214,7 +2197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..364befb0206d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 973f9e9d4e80..218395c88306 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index b491c61f07fa..6817e3c39270 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eec..f58b4501c674 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 534f27a8cc52..1b233732bfc6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..58d445021e5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..cf96397d517f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..9eef9e63b103 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..c574d5a2ea6e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..3b312a560cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..9fda41895306 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..44bf8667e208 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..f00c246ac84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..073503dca9ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..30a9fd8381d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..2a87cf4680be 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..f3366e53886e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..55c4682af23c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..dc43e6dd6cd8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..4bf859316189 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 8d76e5b9a7ce..bd1d1a7976c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -76,7 +75,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -172,8 +170,8 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial writer.WriteString("pet_type", ChildCatAllOfPetTypeValueConverter.ToJsonValue(childCat.PetType)); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs index 9e8bc253fdb2..21f91ce0dd43 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..cb921fcaf865 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..eb80cbda5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..ab41548c7686 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..486f9de74139 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..d0abaf05c053 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 6520bebabc0f..0e8a2f08a7cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs index c620b7197c40..a400e7a5e607 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs index 4a414d11d0db..9fdae0149620 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..bb7ca09ead8b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -204,9 +203,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs index 3a1302bf271e..549f50903eeb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs index cd0add6cf3ce..19db7af3bb09 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs index adad28355b70..307c5035bc78 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9d2bdcce2860 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..6e1c51ef8b0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs index da357d93dd28..e02997cbefd1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d82c3b21439c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..274ef7b4267a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..285c83264ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..f1ec3159ed17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..5b356ea284fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..e1e0d40f4ac0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..7dcc77628b90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..fa3c03f346f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 120a8fb0dd54..b0e44363fdd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs index 441ea5dcb7da..6c9c1eecc950 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..31dd097161f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..7e50c69e51b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..2416a236128e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..a4467dcf5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..a0b39c8f7228 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..03d7fe50ba88 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..63f3b46af6e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..a1162409132b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..2348f9b6ea30 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..5be040369fd9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..f4dcb87a7749 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..abd2ee91e7ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..a81386ab9dbb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 3dbb629ecf99..fadca2c06704 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -292,22 +289,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - if (order.StatusOption.IsSet) + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + if (order.StatusOption.IsSet) { var statusRawValue = OrderStatusValueConverter.ToJsonValue(order.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs index 6566ca4aa564..cb3a96c98c6b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..2cbec554f7c9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index e4049df78c03..e86499653415 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -150,9 +149,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -290,19 +287,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - if (pet.StatusOption.IsSet) + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + if (pet.StatusOption.IsSet) { var statusRawValue = PetStatusValueConverter.ToJsonValue(pet.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs index 9e19b612bf97..80e8237afa9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..2f95cf4e9464 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 4eb4f6acc58d..422ccd7db4bc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -621,9 +620,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -1111,15 +1108,12 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); writer.WriteNumber("required_notnullable_enum_integer", requiredNotnullableEnumIntegerRawValue); var requiredNotnullableEnumIntegerOnlyRawValue = RequiredClassRequiredNotnullableEnumIntegerOnlyValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly); @@ -1131,42 +1125,33 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) { var notrequiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableEnumInteger.Value); writer.WriteNumber("notrequired_notnullable_enum_integer", notrequiredNotnullableEnumIntegerRawValue); @@ -1186,13 +1171,11 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -1200,19 +1183,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) { var notrequiredNullableEnumIntegerRawValue = RequiredClassRequiredNullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value); @@ -1244,19 +1225,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -1264,21 +1243,18 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger == null) + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger == null) writer.WriteNull("required_nullable_enum_integer"); else { @@ -1306,11 +1282,10 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -1322,14 +1297,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs index 04988ef3ee99..5a88e78a43d5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs index 775aba4f6af0..aa2ab4bd8956 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs index 5b4f29294ac6..5d7b5f2e72b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs index 365504a241bf..413ba5f03531 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs index 4c5f2c56ba58..8a9e89443054 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs index 36bcb1481310..9e1a16e28b4e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..031648b131a9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..3505a0f0ecfa 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..8b7c60dbfd1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..c6abc777133f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..043704287724 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..e51918c7a305 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..4743b09271dc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs index ccb446b02503..b0d3189ca1e0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs index ec14b39944da..47602a4ec2a5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs index 33ff2ce2cc21..3270c9d4ccaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs index d86b48d4a9b7..2a92b6fa5b07 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs index 4f1c9c53c603..cc15199cd7fb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..13c411093c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs index e89d58457324..f92a3edc061f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..156753c72517 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..755bd2d5bfac 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,9 +185,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - if (zebra.TypeOption.IsSet) + writer.WriteString("className", zebra.ClassName); + if (zebra.TypeOption.IsSet) { var typeRawValue = ZebraTypeValueConverter.ToJsonValue(zebra.Type.Value); writer.WriteString("type", typeRawValue); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs index 4a54f2a265a1..18ee3f6629bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..0b47e8dbb78e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs index 2b062a550aba..44b4495cdd20 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index c2a2d862a621..473995316991 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs index 1d43e69742f6..b87facb8932f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..99eb4714a50d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 68e90f4ecbb2..8b40c1d54609 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 3cb4b6ce51e7..b07b11762f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/Option.cs index 55d56f3f2049..9721738eaf36 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 8e7bed46e9c5..80fcdd367e32 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 3924246ab7c2..abcc7cbee93c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Linq; using System.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..263bf9b911eb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..5cd766ff9855 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 1d1c7c5388c0..7c048dcc1c2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections; using System.Collections.Generic; @@ -106,9 +105,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -218,8 +215,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 1fd1ffef4feb..0b7550d442f8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -363,9 +360,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -393,7 +390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 879c3ecdb9ad..1f358e754583 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -539,9 +536,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -569,7 +566,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -598,8 +595,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -621,8 +617,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -764,7 +759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -779,8 +774,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -800,8 +794,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -927,9 +920,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -972,8 +965,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -993,8 +985,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1120,9 +1111,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1150,7 +1141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1165,8 +1156,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1186,8 +1176,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1313,9 +1302,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1343,7 +1332,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index b3b0cf5352ff..4716b57d5b84 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1448,9 +1445,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1478,7 +1475,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1496,8 +1493,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1519,8 +1515,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1665,9 +1660,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1695,7 +1690,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1724,8 +1719,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1747,8 +1741,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1895,9 +1888,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1925,7 +1918,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1943,8 +1936,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1966,8 +1958,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2112,9 +2103,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2142,7 +2133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2172,8 +2163,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2197,8 +2187,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2354,9 +2343,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2384,7 +2373,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2399,8 +2388,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2420,8 +2408,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2547,9 +2534,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2577,7 +2564,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2592,8 +2579,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2613,8 +2599,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2740,9 +2725,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2770,7 +2755,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2785,8 +2770,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2806,8 +2790,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2933,9 +2916,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2963,7 +2946,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2992,8 +2975,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3015,8 +2997,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3152,7 +3133,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3181,8 +3162,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3204,8 +3184,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3341,7 +3320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3375,8 +3354,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3400,8 +3378,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3546,7 +3523,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3575,8 +3552,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3598,8 +3574,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3745,9 +3720,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -3775,7 +3750,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3837,8 +3812,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3886,8 +3860,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4121,7 +4094,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4177,8 +4150,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4214,8 +4186,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4408,7 +4379,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4431,8 +4402,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4464,8 +4434,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4629,7 +4598,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4658,8 +4627,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4681,8 +4649,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4818,7 +4785,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4847,8 +4814,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4870,8 +4836,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5007,7 +4972,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5041,8 +5006,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5066,8 +5030,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5214,7 +5177,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5275,8 +5238,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5314,8 +5276,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5479,7 +5440,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5508,8 +5469,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5531,8 +5491,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5668,7 +5627,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 010a227c8b27..e40c81e07474 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -376,9 +373,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -406,7 +403,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index e86b55647135..e74582c1039c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1075,7 +1070,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1104,8 +1099,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1127,8 +1121,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1289,9 +1282,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1351,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1373,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1395,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1565,9 +1556,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1601,7 +1592,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1619,8 +1610,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1642,8 +1632,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1793,9 +1782,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1835,7 +1824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1864,8 +1853,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1887,8 +1875,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2058,7 +2045,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2093,8 +2080,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2120,8 +2106,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2283,7 +2268,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2318,8 +2303,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2345,8 +2329,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2518,9 +2501,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2548,7 +2531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2583,8 +2566,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2610,8 +2592,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2783,9 +2764,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2813,7 +2794,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index 2cb0523731c5..65361e00feaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -533,7 +530,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -548,8 +545,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -569,8 +565,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -705,9 +700,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -735,7 +730,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -753,8 +748,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -776,8 +770,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -910,9 +903,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -952,7 +945,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -981,8 +974,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1004,8 +996,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1152,9 +1143,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1188,7 +1179,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 46a87aed2c07..3f5816f3c7b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -622,8 +621,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -645,8 +643,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -782,7 +779,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -811,8 +808,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -834,8 +830,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -971,7 +966,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1000,8 +995,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1023,8 +1017,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1160,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1189,8 +1182,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1212,8 +1204,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1342,7 +1333,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1371,8 +1362,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1394,8 +1384,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1530,9 +1519,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1586,9 +1575,9 @@ public bool TryOk(out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1616,7 +1605,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1650,8 +1639,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1675,8 +1663,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1820,9 +1807,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1856,7 +1843,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1871,8 +1858,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1892,8 +1878,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2008,7 +1993,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2042,8 +2027,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2067,8 +2051,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2214,7 +2197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..364befb0206d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 973f9e9d4e80..218395c88306 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index b491c61f07fa..6817e3c39270 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eec..f58b4501c674 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 534f27a8cc52..1b233732bfc6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..58d445021e5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..cf96397d517f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..9eef9e63b103 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..c574d5a2ea6e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..3b312a560cb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..9fda41895306 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..44bf8667e208 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..f00c246ac84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..073503dca9ee 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..30a9fd8381d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..2a87cf4680be 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..f3366e53886e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..55c4682af23c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..dc43e6dd6cd8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..4bf859316189 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..6027bde8f37c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -93,7 +92,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -128,7 +126,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -222,10 +219,9 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..cb921fcaf865 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..eb80cbda5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..ab41548c7686 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..486f9de74139 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..d0abaf05c053 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..23f818fe4723 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -109,7 +108,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -175,7 +173,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -231,9 +228,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..9970b90fe0b4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -207,7 +206,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -272,7 +270,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -344,7 +341,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -423,7 +419,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -586,7 +581,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -688,9 +682,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -842,16 +834,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption.Value != null) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9d2bdcce2860 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..6e1c51ef8b0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d82c3b21439c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..274ef7b4267a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..285c83264ae3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..f1ec3159ed17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..5b356ea284fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..e1e0d40f4ac0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..7dcc77628b90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..fa3c03f346f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..f6e951e924e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -113,7 +112,6 @@ public static string InnerEnumToJsonValue(InnerEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -197,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..31dd097161f7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..7e50c69e51b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..2416a236128e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..a4467dcf5ff7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..a0b39c8f7228 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..03d7fe50ba88 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..63f3b46af6e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..a1162409132b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..2348f9b6ea30 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..5be040369fd9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..f4dcb87a7749 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..abd2ee91e7ea 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..a81386ab9dbb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..ce567c492275 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -246,9 +244,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -374,22 +370,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..2cbec554f7c9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..73b618198e74 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -232,9 +230,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -372,19 +368,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..2f95cf4e9464 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..81d8bab84e77 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -186,7 +185,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -251,7 +249,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -407,7 +404,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -478,7 +474,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -550,7 +545,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -713,7 +707,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -798,7 +791,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -870,7 +862,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1036,7 +1027,6 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1121,7 +1111,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1186,7 +1175,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1345,7 +1333,6 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1699,9 +1686,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2181,78 +2166,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2260,31 +2227,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2298,19 +2261,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2318,42 +2279,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2365,14 +2320,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..031648b131a9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..3505a0f0ecfa 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..8b7c60dbfd1b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..c6abc777133f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..043704287724 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..e51918c7a305 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..4743b09271dc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..13c411093c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..f92a3edc061f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..156753c72517 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..798ed23c9b10 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -123,7 +122,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -172,9 +170,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -268,9 +264,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); writer.WriteString("type", typeRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..ea1af5c7ee4a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -107,7 +106,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -149,9 +147,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 1662385fe8f8..7e03dff8740a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -142,8 +141,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterNowGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -163,8 +161,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -290,9 +287,9 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.NowGet200Response Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -320,7 +317,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index cf39d3c11d75..2489028b0421 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..3371a880a416 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 52e971d082a7..48937d5478ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 968d29161b12..84d3f2293127 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 2b34371084b5..4a8753660d61 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index cddb84058868..70e61323455d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 069d52308681..633c345decd4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..a86ce711c8c6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -91,9 +90,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public override void Write(Utf8JsonWriter writer, NowGet200Response nowGet200Res /// public void WriteProperties(Utf8JsonWriter writer, NowGet200Response nowGet200Response, JsonSerializerOptions jsonSerializerOptions) { - if (nowGet200Response.NowOption.IsSet) - writer.WriteString("now", nowGet200Response.NowOption.Value.Value.ToString(NowFormat)); - - if (nowGet200Response.TodayOption.IsSet) - writer.WriteString("today", nowGet200Response.TodayOption.Value.Value.ToString(TodayFormat)); + if (nowGet200Response.NowOption.IsSet) + writer.WriteString("now", nowGet200Response.NowOption.Value.Value.ToString(NowFormat)); + if (nowGet200Response.TodayOption.IsSet) + writer.WriteString("today", nowGet200Response.TodayOption.Value.Value.ToString(TodayFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 910c5c211fba..f7b8a9cb2cdc 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -160,8 +159,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterList(ref suppressDefaultLog, apiResponseLocalVar, personId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -183,8 +181,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -319,9 +316,9 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.Person? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -349,7 +346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs index eaf62115550f..bf99cd2cf0d1 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 29ca5094b343..724a1133152f 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index f7fe93629939..e5b76b9c9ff1 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index a5cb490f3ef1..7a16707547de 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 79fb8600e4be..c046a0663c18 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 26d8b0757ba4..87a26fea7e41 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/Option.cs index b3419229d654..8ca6449d3692 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index d50991f16ec4..9d5cef4f2f7c 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 25a52d3c7185..54dfd87a7c84 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 061761d954f3..b5584f4aafc4 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -80,7 +79,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -195,13 +193,11 @@ public void WriteProperties(Utf8JsonWriter writer, Adult adult, JsonSerializerOp writer.WritePropertyName("children"); JsonSerializer.Serialize(writer, adult.Children, jsonSerializerOptions); } - if (adult.FirstNameOption.IsSet) - writer.WriteString("firstName", adult.FirstName); - - if (adult.LastNameOption.IsSet) - writer.WriteString("lastName", adult.LastName); - - writer.WriteString("$_type", adult.Type); + if (adult.FirstNameOption.IsSet) + writer.WriteString("firstName", adult.FirstName); + if (adult.LastNameOption.IsSet) + writer.WriteString("lastName", adult.LastName); + writer.WriteString("$_type", adult.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 94bb37a7732d..08254db30acb 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -96,7 +95,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -211,19 +209,16 @@ public void WriteProperties(Utf8JsonWriter writer, Child child, JsonSerializerOp if (child.LastNameOption.IsSet && child.LastName == null) throw new ArgumentNullException(nameof(child.LastName), "Property is required for class Child."); - if (child.AgeOption.IsSet) - writer.WriteNumber("age", child.AgeOption.Value!.Value); - - if (child.FirstNameOption.IsSet) - writer.WriteString("firstName", child.FirstName); - - if (child.LastNameOption.IsSet) - writer.WriteString("lastName", child.LastName); - - writer.WriteString("$_type", child.Type); + if (child.AgeOption.IsSet) + writer.WriteNumber("age", child.AgeOption.Value!.Value); + if (child.FirstNameOption.IsSet) + writer.WriteString("firstName", child.FirstName); + if (child.LastNameOption.IsSet) + writer.WriteString("lastName", child.LastName); + writer.WriteString("$_type", child.Type); - if (child.BoosterSeatOption.IsSet) - writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value!.Value); + if (child.BoosterSeatOption.IsSet) + writer.WriteBoolean("boosterSeat", child.BoosterSeatOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs index d3f9d198830e..798b6d692589 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -118,9 +117,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -237,13 +234,11 @@ public void WriteProperties(Utf8JsonWriter writer, Person person, JsonSerializer if (person.LastNameOption.IsSet && person.LastName == null) throw new ArgumentNullException(nameof(person.LastName), "Property is required for class Person."); - if (person.FirstNameOption.IsSet) - writer.WriteString("firstName", person.FirstName); - - if (person.LastNameOption.IsSet) - writer.WriteString("lastName", person.LastName); - - writer.WriteString("$_type", person.Type); + if (person.FirstNameOption.IsSet) + writer.WriteString("firstName", person.FirstName); + if (person.LastNameOption.IsSet) + writer.WriteString("lastName", person.LastName); + writer.WriteString("$_type", person.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 030cc3bf12e0..e0a5c962867f 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -144,8 +143,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -165,8 +163,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -293,9 +290,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -323,7 +320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs index 6ca1d86d4a35..4a1897951fa3 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..eba42d9fae90 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 5009ae5304f7..deb94fa62fd9 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 02dda463ab26..77d24176265b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 4be8e3a725e0..049f791ce622 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 06d46536f037..e9cf0b8d003b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/Option.cs index 6f4db75a4454..e1feaf22dc4a 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index b10d5ac58f56..8628cb568d31 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index db3ce767d4af..3de98d60d634 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..03ee3d05aa72 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 66a33723aebc..7caa64b812ed 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value!.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 64a206e3bd57..a2d2d96bf489 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -112,9 +111,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -237,8 +234,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 030cc3bf12e0..e0a5c962867f 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -144,8 +143,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -165,8 +163,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -293,9 +290,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -323,7 +320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs index 6ca1d86d4a35..4a1897951fa3 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..eba42d9fae90 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 5009ae5304f7..deb94fa62fd9 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 02dda463ab26..77d24176265b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 4be8e3a725e0..049f791ce622 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 06d46536f037..e9cf0b8d003b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs index 6f4db75a4454..e1feaf22dc4a 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index b10d5ac58f56..8628cb568d31 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs index db3ce767d4af..3de98d60d634 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..6487aa80a4d6 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 36e0ac854e6d..2f16244f311e 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,8 +163,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value!.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 73c92d0cded3..efe48ced6362 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -111,9 +110,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -236,8 +233,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 3d7d0c482339..0e3700e310cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -364,9 +361,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -394,7 +391,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index 84ec2eff6bff..3833fc084cfc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -540,9 +537,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -570,7 +567,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -599,8 +596,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -622,8 +618,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -765,7 +760,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -780,8 +775,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -801,8 +795,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -929,9 +922,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -959,7 +952,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -974,8 +967,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -995,8 +987,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1123,9 +1114,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1153,7 +1144,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1168,8 +1159,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1189,8 +1179,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1317,9 +1306,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1347,7 +1336,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 567ffe1fa4d2..195cd42f0390 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1449,9 +1446,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1479,7 +1476,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1497,8 +1494,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1520,8 +1516,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1667,9 +1662,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1697,7 +1692,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1726,8 +1721,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1749,8 +1743,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1898,9 +1891,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1928,7 +1921,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1946,8 +1939,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1969,8 +1961,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2116,9 +2107,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2146,7 +2137,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2176,8 +2167,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2201,8 +2191,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2359,9 +2348,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2389,7 +2378,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2404,8 +2393,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2425,8 +2413,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2553,9 +2540,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2583,7 +2570,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2598,8 +2585,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2619,8 +2605,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2747,9 +2732,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2777,7 +2762,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2792,8 +2777,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2813,8 +2797,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2941,9 +2924,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2971,7 +2954,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3000,8 +2983,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3023,8 +3005,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3160,7 +3141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3189,8 +3170,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3212,8 +3192,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3349,7 +3328,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3383,8 +3362,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3408,8 +3386,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3554,7 +3531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3583,8 +3560,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3606,8 +3582,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3754,9 +3729,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -3784,7 +3759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3846,8 +3821,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3895,8 +3869,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4130,7 +4103,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4174,8 +4147,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4211,8 +4183,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4405,7 +4376,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4428,8 +4399,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4461,8 +4431,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4627,7 +4596,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4656,8 +4625,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4679,8 +4647,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4816,7 +4783,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4845,8 +4812,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4868,8 +4834,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5005,7 +4970,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5039,8 +5004,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5064,8 +5028,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5212,7 +5175,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5273,8 +5236,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5312,8 +5274,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5478,7 +5439,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5507,8 +5468,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5530,8 +5490,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5667,7 +5626,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index a12284afb01b..7a27b67e8471 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -377,9 +374,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -407,7 +404,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index 3361c03e39bf..97fe26c11d80 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1076,7 +1071,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1105,8 +1100,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1128,8 +1122,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1291,9 +1284,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1353,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1382,8 +1375,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1405,8 +1397,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1568,9 +1559,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1604,7 +1595,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1622,8 +1613,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1645,8 +1635,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1797,9 +1786,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1839,7 +1828,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1868,8 +1857,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1891,8 +1879,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2062,7 +2049,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2097,8 +2084,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2124,8 +2110,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2287,7 +2272,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2322,8 +2307,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2349,8 +2333,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2523,9 +2506,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2553,7 +2536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2588,8 +2571,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2615,8 +2597,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2789,9 +2770,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2819,7 +2800,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index b3cd5adcbcca..78e30b12975b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -534,7 +531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -549,8 +546,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -570,8 +566,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -707,9 +702,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -737,7 +732,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -755,8 +750,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -778,8 +772,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -913,9 +906,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -955,7 +948,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -984,8 +977,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1007,8 +999,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1156,9 +1147,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1192,7 +1183,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 788e681d73c8..533534faad9d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; @@ -630,8 +629,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -653,8 +651,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -790,7 +787,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -819,8 +816,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -842,8 +838,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -979,7 +974,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1008,8 +1003,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1031,8 +1025,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1168,7 +1161,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1197,8 +1190,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1220,8 +1212,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1351,7 +1342,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1371,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1393,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1540,9 +1529,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1596,9 +1585,9 @@ public bool TryOk([NotNullWhen(true)]out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1626,7 +1615,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1660,8 +1649,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1685,8 +1673,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1858,9 +1845,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1894,7 +1881,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1909,8 +1896,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1930,8 +1916,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2047,7 +2032,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2081,8 +2066,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2106,8 +2090,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2253,7 +2236,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 794b3601c853..1508675e41db 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 11b100056516..c61f8d5dedde 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 92ef8f6c92bf..80cde8635d94 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 623f3c18353c..377941f9d864 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 43730a86b868..c1c4ebac9ff1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 012e633f989c..f629b4e85643 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index eb894eec8416..7895afa24ef1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index f9d2680b0ad5..4a1a8d59f28e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index f5bcaf712030..3c4df990ffcd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 8d4153d53022..3af354e696f7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index d0b07da62cc8..0c6a356ae8b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 3b185247e442..01fd9f5dd847 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..00b4a21fa06a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 942640761b26..d5e361f9582e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index debcff217b93..72d121d8c76f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index ded293438a45..8b3ac888c67c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index ee7b94f08bd3..1e9afa3065f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index 476a1c25352b..776e9d0234b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index a3a0a15428b4..44b747359a6b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..8d39e16c9b2f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6a1dfe1d90b6..57af710a4ba5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 9bd387646078..4ec9fec90697 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index d920c4ded985..2615246e5ea9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -76,7 +75,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -172,8 +170,8 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial writer.WriteString("pet_type", ChildCatAllOfPetTypeValueConverter.ToJsonValue(childCat.PetType)); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs index 9e8bc253fdb2..21f91ce0dd43 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCatAllOfPetType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..9fa23ffeedf6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1f3a3bb8a98e..48fae80bb0e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..30aa92910e58 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 2ab1ca19d2d0..af2b116fb360 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 72e59c9baf44..da48ce140939 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 516c952c2071..348856f1f84f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs index c620b7197c40..a400e7a5e607 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysArrayEnumInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs index 4a414d11d0db..9fdae0149620 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArraysJustSymbol.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..9aa31f048fc0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -204,9 +203,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs index 3a1302bf271e..549f50903eeb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs index cd0add6cf3ce..19db7af3bb09 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs index adad28355b70..307c5035bc78 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTestEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..1ee1f107e4ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index b4307b69a3b6..927f689a3581 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs index da357d93dd28..e02997cbefd1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FindPetsByStatusStatusParameterInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..cee3f52e7825 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1540483527a3..ad986f43ffcb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 96902abd13a6..f418f77f5f5a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..33771a4ef565 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..ecf219c05264 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c11463b097e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..4d1589542efe 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..780057834005 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 101cfb09d2ae..783c836b1e66 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs index 441ea5dcb7da..6c9c1eecc950 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index defed9c5c7c8..27daa918c44d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 674358380306..1d8226dbd943 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..b6ea8b7090df 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2467daa6e2b3..9b4ac118ad08 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 808a4b66c6f2..fd6dacc5a403 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..381f8efb274e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 8e865d8efae7..3a1bb5c19b23 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..af9c6d961097 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs index db407f5e3553..8721d4865acf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 3b9f00ed6666..4a4426e5def6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 5f369537bb2a..b5dafb7a2782 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index f720208fafe0..b563ff003395 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 50ad5aef5a1b..bc7109de178c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs index c9c24d32fc40..f22ddfd108a9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -292,22 +289,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - if (order.StatusOption.IsSet) + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + if (order.StatusOption.IsSet) { var statusRawValue = OrderStatusValueConverter.ToJsonValue(order.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs index 6566ca4aa564..cb3a96c98c6b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OrderStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 5a072449fae0..cb6ab8552e26 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 6b354389b24a..60bf48ab9b94 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -150,9 +149,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -290,19 +287,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - if (pet.StatusOption.IsSet) + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + if (pet.StatusOption.IsSet) { var statusRawValue = PetStatusValueConverter.ToJsonValue(pet.Status.Value); writer.WriteString("status", statusRawValue); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs index 9e19b612bf97..80e8237afa9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PetStatus.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..7efa2a804d01 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 6465301de4d0..54cb06c9b06e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -621,9 +620,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -1111,15 +1108,12 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + var requiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumInteger); writer.WriteNumber("required_notnullable_enum_integer", requiredNotnullableEnumIntegerRawValue); var requiredNotnullableEnumIntegerOnlyRawValue = RequiredClassRequiredNotnullableEnumIntegerOnlyValueConverter.ToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly); @@ -1131,42 +1125,33 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) { var notrequiredNotnullableEnumIntegerRawValue = RequiredClassRequiredNotnullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableEnumInteger.Value); writer.WriteNumber("notrequired_notnullable_enum_integer", notrequiredNotnullableEnumIntegerRawValue); @@ -1186,13 +1171,11 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -1200,19 +1183,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) { var notrequiredNullableEnumIntegerRawValue = RequiredClassRequiredNullableEnumIntegerValueConverter.ToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value); @@ -1244,19 +1225,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -1264,21 +1243,18 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger == null) + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger == null) writer.WriteNull("required_nullable_enum_integer"); else { @@ -1306,11 +1282,10 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -1322,14 +1297,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs index 04988ef3ee99..5a88e78a43d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs index 775aba4f6af0..aa2ab4bd8956 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs index 5b4f29294ac6..5d7b5f2e72b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNotnullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs index 365504a241bf..413ba5f03531 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs index 4c5f2c56ba58..8a9e89443054 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumIntegerOnly.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs index 36bcb1481310..9e1a16e28b4e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClassRequiredNullableEnumString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 9d1fbcfd0f6f..1119fbfaa730 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 749507fe8e0c..430b00daaeee 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..49ee7a8df49e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 08b9d580d9f1..23bfb4ea7fe4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index d5fb2f5610ad..5768e589766c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9511eca7a618 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 1936341f8ba6..2e90ff2e14bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs index ccb446b02503..b0d3189ca1e0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumHeaderStringParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs index ec14b39944da..47602a4ec2a5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryDoubleParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs index 33ff2ce2cc21..3270c9d4ccaf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersEnumQueryIntegerParameter.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs index d86b48d4a9b7..2a92b6fa5b07 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormString.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs index 4f1c9c53c603..cc15199cd7fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestEnumParametersRequestEnumFormStringArrayInner.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..a19728f0c178 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs index 0c2e096925ef..aeb4ed564989 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index a445c5ac182b..92b13210b617 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..26f2987fcde5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,9 +185,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - if (zebra.TypeOption.IsSet) + writer.WriteString("className", zebra.ClassName); + if (zebra.TypeOption.IsSet) { var typeRawValue = ZebraTypeValueConverter.ToJsonValue(zebra.Type.Value); writer.WriteString("type", typeRawValue); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs index 4a54f2a265a1..18ee3f6629bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZebraType.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..f1e355baedc3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs index 2b062a550aba..44b4495cdd20 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClassZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index a34c828167b1..f4304a259726 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -195,8 +194,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -218,8 +216,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -366,9 +363,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -396,7 +393,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs index cced9ce3479a..bb890256c82d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -393,8 +392,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -414,8 +412,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -542,9 +539,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse? Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -572,7 +569,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -601,8 +598,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -624,8 +620,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -767,7 +762,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -782,8 +777,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -803,8 +797,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -931,9 +924,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -961,7 +954,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -976,8 +969,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -997,8 +989,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1125,9 +1116,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1155,7 +1146,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1170,8 +1161,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1191,8 +1181,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1319,9 +1308,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1349,7 +1338,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs index 39b422f6f7f7..c560a68da468 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -1302,8 +1301,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1323,8 +1321,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1451,9 +1448,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1481,7 +1478,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1499,8 +1496,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1522,8 +1518,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1669,9 +1664,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1699,7 +1694,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1728,8 +1723,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1751,8 +1745,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1900,9 +1893,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1930,7 +1923,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1948,8 +1941,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1971,8 +1963,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2118,9 +2109,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2148,7 +2139,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2178,8 +2169,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2203,8 +2193,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2361,9 +2350,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2391,7 +2380,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2406,8 +2395,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2427,8 +2415,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2555,9 +2542,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2585,7 +2572,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2600,8 +2587,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2621,8 +2607,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2749,9 +2734,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2779,7 +2764,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2794,8 +2779,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2815,8 +2799,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2943,9 +2926,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2973,7 +2956,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3002,8 +2985,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3025,8 +3007,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3162,7 +3143,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3191,8 +3172,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3214,8 +3194,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3351,7 +3330,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3385,8 +3364,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3410,8 +3388,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3556,7 +3533,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3585,8 +3562,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3608,8 +3584,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3756,9 +3731,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -3786,7 +3761,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3848,8 +3823,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3897,8 +3871,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4132,7 +4105,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4188,8 +4161,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4225,8 +4197,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4419,7 +4390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4442,8 +4413,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4475,8 +4445,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4641,7 +4610,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4670,8 +4639,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4693,8 +4661,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4830,7 +4797,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4859,8 +4826,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4882,8 +4848,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5019,7 +4984,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5053,8 +5018,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5078,8 +5042,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5226,7 +5189,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5287,8 +5250,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5326,8 +5288,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5492,7 +5453,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5521,8 +5482,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5544,8 +5504,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5681,7 +5640,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index d70af83c9115..752983ca5d67 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -195,8 +194,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -218,8 +216,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -379,9 +376,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -409,7 +406,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs index 1d959b49106f..f1ba6920ed5d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -699,8 +698,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -722,8 +720,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -881,7 +878,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -911,8 +908,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -936,8 +932,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1078,7 +1073,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1107,8 +1102,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1130,8 +1124,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1293,9 +1286,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1355,7 +1348,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1384,8 +1377,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1407,8 +1399,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1570,9 +1561,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1606,7 +1597,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1624,8 +1615,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1647,8 +1637,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1799,9 +1788,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1841,7 +1830,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1870,8 +1859,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1893,8 +1881,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2064,7 +2051,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2099,8 +2086,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2126,8 +2112,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2289,7 +2274,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2324,8 +2309,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2351,8 +2335,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2525,9 +2508,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2555,7 +2538,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2590,8 +2573,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2617,8 +2599,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2791,9 +2772,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2821,7 +2802,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs index 1677ff9901e2..3621391bc370 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -382,8 +381,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -405,8 +403,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -536,7 +533,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -551,8 +548,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -572,8 +568,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -709,9 +704,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -739,7 +734,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -757,8 +752,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -780,8 +774,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -915,9 +908,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -986,8 +979,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1009,8 +1001,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1158,9 +1149,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1194,7 +1185,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs index 0352814ae67d..fa5c48d6efbb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -632,8 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -655,8 +653,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -792,7 +789,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -821,8 +818,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -844,8 +840,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -981,7 +976,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1010,8 +1005,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1033,8 +1027,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1170,7 +1163,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1199,8 +1192,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1222,8 +1214,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1353,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1382,8 +1373,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1405,8 +1395,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1542,9 +1531,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1598,9 +1587,9 @@ public bool TryOk([NotNullWhen(true)]out Org.OpenAPITools.Model.User? result) public Org.OpenAPITools.Model.User? CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1628,7 +1617,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1662,8 +1651,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1687,8 +1675,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1860,9 +1847,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1896,7 +1883,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1911,8 +1898,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1932,8 +1918,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2049,7 +2034,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2083,8 +2068,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2108,8 +2092,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2255,7 +2238,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiException.cs index 76274524017f..127c144308ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 88b4a497394b..a7ab9cb7c1a7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index c9dc766e4639..1a75435a485a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 5e42c9efb856..8e8456c8ba1c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index de6a37a17df7..b9814227c927 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 02b767330d0a..fc808b18df6c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 2d8c0b2a52f7..40dc2b32047f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/Option.cs index e6fd1c26872d..d1745d11fd76 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index d5510735d390..6dfaaa50f3d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/TokenProvider`1.cs index b873d5323e7a..58256a5f0ad5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index 87bc3578658c..72d437304db2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 546931023bb4..c02043d2bb15 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -196,10 +193,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 20b8444349b0..3f52b33ba278 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -198,9 +197,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 648b8fde8871..df0013d973ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -216,8 +213,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index cd20dcc6f2a2..980a62aa5e3d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -219,14 +216,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value!.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value!.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..2e2e94d290b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -118,38 +117,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -251,14 +248,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index e4d0962e9ef4..6178040e9ef4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -182,10 +179,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value!.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9b23c0166650..286dbb88fad9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cfe30e6ce660..93ff58a8ed47 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 0899aecaee69..aa6f4eaae676 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index 308d4078b7f3..22b87caacade 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value!.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 46e11565b533..a6e36f6871a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value!.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 7eaeac5cde68..c8aaf1da42ca 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,7 +162,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..71874eb258ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -166,9 +165,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -300,23 +297,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index f6a4492730f4..df53cc47a2db 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,7 +78,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value!.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 96854b6b0e4f..b91b697b4ec1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -94,9 +93,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -189,10 +186,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value!.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value!.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index 35e299d05c18..854666f0e343 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -95,7 +94,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -130,7 +128,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -224,10 +221,9 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..9562fd734664 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 018f49af861f..aedf942dc08d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,9 +184,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index c0042b4d8843..f3a579f24d51 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,7 +162,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index a84805aa8011..aae6b67c047c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -173,8 +170,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value!.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value!.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..9dd235f2b394 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index f09923475b0d..b4146ccb8907 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,7 +78,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -183,11 +181,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 837b5ef56bf3..2a285c01a128 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 83efec82813d..9fdd13a7569f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -111,7 +110,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -177,7 +175,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -233,9 +230,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumClass.cs index 03b2780c4842..a5a3b22d3f53 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index 204a7a95d7e3..a9c0ef003dd0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -209,7 +208,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -274,7 +272,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -346,7 +343,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -425,7 +421,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -588,7 +583,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -690,9 +684,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -844,16 +836,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value!.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value!.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value!.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value!.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value!.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value!.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value!.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value!.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption!.Value != null) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 12983d68a09f..d01c974d213d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,9 +184,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..951503a8620c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,8 +167,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 7b9bfd4fbeb6..081a0748e024 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..e34e90ed330e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 3c5e2512bb04..a0c4d1c34e17 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 5244065820ea..dc04a76ff759 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -540,42 +539,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -591,9 +590,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -897,75 +894,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value!.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value!.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value!.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value!.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value!.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value!.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value!.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value!.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value!.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value!.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value!.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value!.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value!.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value!.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value!.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value!.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value!.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value!.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value!.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..004df63f0d8b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -213,8 +210,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs index 357be4388447..ea98c48240cf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 9be524db707f..9077987f83a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -105,9 +104,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -230,8 +227,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 4cefd4ca6216..3d854e63d2ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 50826dd0da5d..f48f69c07a90 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -142,9 +141,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -236,11 +233,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..9c3534a5377f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 8aca45893e65..a2d19fa2d897 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -80,9 +79,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,9 +177,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..accfef1943c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..b984e11ed7d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -195,11 +192,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index 132f1e462ce0..a1bbf9620b47 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -115,9 +114,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index bba52b3ffbce..4bc7ee4dea3f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -115,7 +114,6 @@ public static string InnerEnumToJsonValue(InnerEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -199,9 +197,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs index 564d9aa1a810..d2c976ebbb3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -534,9 +533,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -928,102 +925,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value!.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value!.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value!.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value!.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value!.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value!.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value!.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value!.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index ac4b562eb3e7..92f7b33be288 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 05de563f77d7..87e39d7ad56a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -138,9 +137,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 7a8da4dbed10..6e6757ce3b15 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 15e011ce0918..519382bf9f6d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -135,9 +134,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 17ee15eb2f4d..e600c7a9bcc6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -133,16 +132,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()!).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()!).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -254,19 +251,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value!.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value!.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value!.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..6d0b18c90338 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index bb28841a9e57..cccafa024ea3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value!.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..48ea0f25cd8f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index fb877759c605..928dd7b77fee 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -167,9 +166,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -278,16 +275,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value!.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value!.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value!.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index f7e59fb345ac..fcc6bc853268 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,7 +185,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index 91695a8649d6..914db82f9cf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -261,9 +260,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -437,37 +434,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value!.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value!.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value!.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value!.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value!.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value!.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value!.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value!.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value!.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value!.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -488,11 +480,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 83619d031144..ec82821e9f67 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,11 +162,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value!.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value!.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index a06afa2a9be6..730643e6e235 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index b52b1cc177f1..1f2f3a50af4c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value!.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index ec6905ea3a72..35bcafc65e25 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -260,11 +257,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value!.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value!.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..a8389c2d29b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -75,9 +74,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index a3e3679fe3dc..b525b02d16ea 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -134,7 +133,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -248,9 +246,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -376,22 +372,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value!.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value!.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value!.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value!.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value!.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value!.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value!.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value!.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value!.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value!.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value!.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value!.Value); writer.WriteString("status", statusRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 01d4f3844ebf..7d4c836eb162 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value!.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value!.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value!.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value!.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnum.cs index 96af6f3670d8..70e965db4016 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index a50d5c056ecc..6c639c333247 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 41ecebcf8f5b..6ace62fef3ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index 902dbb066392..e59c0d43cbe6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumTest.cs index 03a8ccdecacd..230f170cec6d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index a4b1ab4347d6..b086ba9616e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -62,7 +61,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 55df1e0579f5..7daf84165c1b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -134,7 +133,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -234,9 +232,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -374,19 +370,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value!.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value!.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value!.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value!.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 2cd41f15027a..62428dfb08ed 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..6e2bd6b3935b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -120,9 +119,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 5c7aa541ffc5..e41282ccade6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index c535142bde64..3569c9dc814a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,7 +162,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..1ec8d6abab7e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -139,9 +138,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -233,11 +230,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 15688d958f05..fb5378787426 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -188,7 +187,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -253,7 +251,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -409,7 +406,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -480,7 +476,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -552,7 +547,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -715,7 +709,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -800,7 +793,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -872,7 +864,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1038,7 +1029,6 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1123,7 +1113,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1188,7 +1177,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1347,7 +1335,6 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1701,9 +1688,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2183,78 +2168,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value!.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value!.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value!.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value!.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value!.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value!.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value!.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value!.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value!.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value!.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value!.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value!.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value!.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value!.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value!.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value!.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value!.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value!.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue!.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value!.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value!.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2262,31 +2229,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value!.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value!.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value!.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value!.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value!.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value!.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value!.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value!.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value!.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value!.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2300,19 +2263,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value!.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value!.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2320,42 +2281,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString!.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString!.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2367,14 +2322,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 0d9fe3516e6f..02413c162c8d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -119,9 +118,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,18 +228,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value!.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value!.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index d520cfcc9a96..5b4a3cd639af 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -199,8 +196,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value!.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..53c55c945882 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 926b431dda32..2a815ad0b6b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,9 +184,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index c608b7288d95..f7f47746aaf8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index 15777abac01d..a40d786f1df6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,7 +162,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 3fc9f2735096..e8108e9b4fb3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index bab36d28f5ef..938a2096272b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,9 +184,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index d66e2a9e7328..88c177a3799f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value!.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index 92de05e2d752..f68c97a1de08 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value!.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value!.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..cc0ea8148809 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index ed3d3f74081b..d5b44c91245c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..fc324825b4a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index f34f2cf60139..130ef89ce06b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -115,9 +114,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index 6ccbe196f3d4..4405b633fc78 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,7 +162,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index 7b55e2baf5bc..536db09b6f8a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -266,9 +265,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -458,19 +455,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value!.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value!.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -483,17 +476,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value!.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value!.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index a655c0d30e99..860f9a886821 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -110,9 +109,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -213,13 +210,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value!.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value!.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value!.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..0700277e77c6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -125,7 +124,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -174,9 +172,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -270,9 +266,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value!.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value!.Value); writer.WriteString("type", typeRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 1db14d35a9e5..74ec34b79208 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..651bbfb21ca4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -109,7 +108,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -151,9 +149,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 030cc3bf12e0..e0a5c962867f 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -144,8 +143,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo bool suppressDefaultLog = false; AfterRootGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -165,8 +163,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st bool suppressDefaultLogLocalVar = false; OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -293,9 +290,9 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht public Org.OpenAPITools.Model.Fruit? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -323,7 +320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs index 6ca1d86d4a35..4a1897951fa3 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..eba42d9fae90 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 5009ae5304f7..deb94fa62fd9 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 02dda463ab26..77d24176265b 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 4be8e3a725e0..049f791ce622 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 06d46536f037..e9cf0b8d003b 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/Option.cs index 6f4db75a4454..e1feaf22dc4a 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index b10d5ac58f56..8628cb568d31 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs index db3ce767d4af..3de98d60d634 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..03ee3d05aa72 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -169,8 +166,8 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.KindOption.IsSet && apple.Kind == null) throw new ArgumentNullException(nameof(apple.Kind), "Property is required for class Apple."); - if (apple.KindOption.IsSet) - writer.WriteString("kind", apple.Kind); + if (apple.KindOption.IsSet) + writer.WriteString("kind", apple.Kind); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 66a33723aebc..7caa64b812ed 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.CountOption.IsSet) - writer.WriteNumber("count", banana.CountOption.Value!.Value); + if (banana.CountOption.IsSet) + writer.WriteNumber("count", banana.CountOption.Value!.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index d58b2b4db1dd..70af3c1066c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 0.0.1 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -220,8 +217,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 3d7d0c482339..0e3700e310cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -364,9 +361,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -394,7 +391,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 84ec2eff6bff..3833fc084cfc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -391,8 +390,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -412,8 +410,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -540,9 +537,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -570,7 +567,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -599,8 +596,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -622,8 +618,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -765,7 +760,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -780,8 +775,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -801,8 +795,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -929,9 +922,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -959,7 +952,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -974,8 +967,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -995,8 +987,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1123,9 +1114,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1153,7 +1144,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1168,8 +1159,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1189,8 +1179,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1317,9 +1306,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1347,7 +1336,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 551265024789..164991bd399b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1300,8 +1299,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1321,8 +1319,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1449,9 +1446,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1479,7 +1476,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1497,8 +1494,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1520,8 +1516,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1667,9 +1662,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1697,7 +1692,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1726,8 +1721,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1749,8 +1743,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1898,9 +1891,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1928,7 +1921,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1946,8 +1939,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1969,8 +1961,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2116,9 +2107,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2146,7 +2137,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2176,8 +2167,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2201,8 +2191,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2359,9 +2348,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2389,7 +2378,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2404,8 +2393,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2425,8 +2413,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2553,9 +2540,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2583,7 +2570,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2598,8 +2585,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2619,8 +2605,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2747,9 +2732,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2777,7 +2762,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2792,8 +2777,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2813,8 +2797,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2941,9 +2924,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2971,7 +2954,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3000,8 +2983,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3023,8 +3005,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3160,7 +3141,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3189,8 +3170,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3212,8 +3192,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3349,7 +3328,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3383,8 +3362,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3408,8 +3386,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3554,7 +3531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3583,8 +3560,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3606,8 +3582,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3754,9 +3729,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -3784,7 +3759,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3846,8 +3821,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3895,8 +3869,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4130,7 +4103,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4186,8 +4159,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4223,8 +4195,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4417,7 +4388,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4440,8 +4411,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4473,8 +4443,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4639,7 +4608,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4668,8 +4637,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4691,8 +4659,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4828,7 +4795,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4857,8 +4824,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4880,8 +4846,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5017,7 +4982,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5051,8 +5016,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5076,8 +5040,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5224,7 +5187,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5285,8 +5248,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5324,8 +5286,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5490,7 +5451,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5519,8 +5480,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5542,8 +5502,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5679,7 +5638,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index a12284afb01b..7a27b67e8471 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -193,8 +192,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -216,8 +214,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -377,9 +374,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -407,7 +404,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 0350d428124a..66897176203f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -697,8 +696,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -720,8 +718,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -879,7 +876,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -909,8 +906,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -934,8 +930,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1076,7 +1071,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1105,8 +1100,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1128,8 +1122,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1291,9 +1284,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1353,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1382,8 +1375,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1405,8 +1397,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1568,9 +1559,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1604,7 +1595,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1622,8 +1613,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1645,8 +1635,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1797,9 +1786,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1839,7 +1828,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1868,8 +1857,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1891,8 +1879,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2062,7 +2049,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2097,8 +2084,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2124,8 +2110,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2287,7 +2272,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2322,8 +2307,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2349,8 +2333,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2523,9 +2506,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2553,7 +2536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2588,8 +2571,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2615,8 +2597,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2789,9 +2770,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2819,7 +2800,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index b3cd5adcbcca..78e30b12975b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -380,8 +379,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -403,8 +401,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -534,7 +531,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -549,8 +546,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -570,8 +566,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -707,9 +702,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -737,7 +732,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -755,8 +750,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -778,8 +772,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -913,9 +906,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -955,7 +948,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -984,8 +977,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1007,8 +999,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1156,9 +1147,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1192,7 +1183,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 788e681d73c8..533534faad9d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; @@ -630,8 +629,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -653,8 +651,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -790,7 +787,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -819,8 +816,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -842,8 +838,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -979,7 +974,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1008,8 +1003,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1031,8 +1025,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1168,7 +1161,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1197,8 +1190,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1220,8 +1212,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1351,7 +1342,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1380,8 +1371,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1403,8 +1393,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1540,9 +1529,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1596,9 +1585,9 @@ public bool TryOk([NotNullWhen(true)]out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1626,7 +1615,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1660,8 +1649,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1685,8 +1673,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1858,9 +1845,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1894,7 +1881,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1909,8 +1896,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1930,8 +1916,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2047,7 +2032,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2081,8 +2066,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2106,8 +2090,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2253,7 +2236,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 794b3601c853..1508675e41db 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Diagnostics.CodeAnalysis; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index 11b100056516..c61f8d5dedde 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 92ef8f6c92bf..80cde8635d94 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 623f3c18353c..377941f9d864 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 43730a86b868..c1c4ebac9ff1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 012e633f989c..f629b4e85643 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index eb894eec8416..7895afa24ef1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index f9d2680b0ad5..4a1a8d59f28e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index f5bcaf712030..3c4df990ffcd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 8d4153d53022..3af354e696f7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index d0b07da62cc8..0c6a356ae8b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 3b185247e442..01fd9f5dd847 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..00b4a21fa06a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 942640761b26..d5e361f9582e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index debcff217b93..72d121d8c76f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index ded293438a45..8b3ac888c67c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index ee7b94f08bd3..1e9afa3065f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 476a1c25352b..776e9d0234b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index a3a0a15428b4..44b747359a6b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..8d39e16c9b2f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6a1dfe1d90b6..57af710a4ba5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 9bd387646078..4ec9fec90697 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 87a49cbe08f0..fb4ae3a1fd03 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -93,7 +92,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -128,7 +126,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -222,10 +219,9 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..9fa23ffeedf6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1f3a3bb8a98e..48fae80bb0e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..30aa92910e58 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 2ab1ca19d2d0..af2b116fb360 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 72e59c9baf44..da48ce140939 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 4eb9365b1f54..b22d9be32f62 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -109,7 +108,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -175,7 +173,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -231,9 +228,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index f7a3a20b1b10..a9f0ea901b94 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -207,7 +206,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -272,7 +270,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -344,7 +341,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -423,7 +419,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -586,7 +581,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -688,9 +682,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -842,16 +834,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption.Value != null) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..1ee1f107e4ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index b4307b69a3b6..927f689a3581 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..cee3f52e7825 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1540483527a3..ad986f43ffcb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 96902abd13a6..f418f77f5f5a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..33771a4ef565 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..ecf219c05264 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..c11463b097e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..4d1589542efe 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..780057834005 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 938d01fec443..aa80bb24e8a3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -113,7 +112,6 @@ public static string InnerEnumToJsonValue(InnerEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -197,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index defed9c5c7c8..27daa918c44d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 674358380306..1d8226dbd943 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..b6ea8b7090df 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2467daa6e2b3..9b4ac118ad08 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 808a4b66c6f2..fd6dacc5a403 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..381f8efb274e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 8e865d8efae7..3a1bb5c19b23 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..af9c6d961097 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs index db407f5e3553..8721d4865acf 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 3b9f00ed6666..4a4426e5def6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 5f369537bb2a..b5dafb7a2782 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index f720208fafe0..b563ff003395 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 50ad5aef5a1b..bc7109de178c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs index ee5777aabe75..d021444cba8b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -246,9 +244,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -374,22 +370,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 5a072449fae0..cb6ab8552e26 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 8e7b548b39fd..2786891a2530 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -232,9 +230,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -372,19 +368,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..7efa2a804d01 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index f1483ce99399..e8ae8fb80f84 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -186,7 +185,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -251,7 +249,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -407,7 +404,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -478,7 +474,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -550,7 +545,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -713,7 +707,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -798,7 +791,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -870,7 +862,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1036,7 +1027,6 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1121,7 +1111,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1186,7 +1175,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1345,7 +1333,6 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1699,9 +1686,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2181,78 +2166,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2260,31 +2227,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2298,19 +2261,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2318,42 +2279,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2365,14 +2320,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 9d1fbcfd0f6f..1119fbfaa730 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 749507fe8e0c..430b00daaeee 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..49ee7a8df49e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 08b9d580d9f1..23bfb4ea7fe4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index d5fb2f5610ad..5768e589766c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9511eca7a618 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 1936341f8ba6..2e90ff2e14bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..a19728f0c178 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs index 0c2e096925ef..aeb4ed564989 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index a445c5ac182b..92b13210b617 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..accb0a1ce96c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -123,7 +122,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -172,9 +170,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -268,9 +264,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); writer.WriteString("type", typeRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..3729ccd33694 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -107,7 +106,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -149,9 +147,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index a34c828167b1..f4304a259726 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -195,8 +194,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -218,8 +216,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -366,9 +363,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -396,7 +393,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs index cced9ce3479a..bb890256c82d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -393,8 +392,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -414,8 +412,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -542,9 +539,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse? Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -572,7 +569,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -601,8 +598,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -624,8 +620,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -767,7 +762,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -782,8 +777,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -803,8 +797,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -931,9 +924,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -961,7 +954,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -976,8 +969,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -997,8 +989,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1125,9 +1116,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1155,7 +1146,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1170,8 +1161,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1191,8 +1181,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1319,9 +1308,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1349,7 +1338,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs index 39b422f6f7f7..c560a68da468 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -1302,8 +1301,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1323,8 +1321,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1451,9 +1448,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1481,7 +1478,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1499,8 +1496,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1522,8 +1518,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1669,9 +1664,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1699,7 +1694,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1728,8 +1723,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1751,8 +1745,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1900,9 +1893,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1930,7 +1923,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1948,8 +1941,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1971,8 +1963,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2118,9 +2109,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2148,7 +2139,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2178,8 +2169,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2203,8 +2193,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2361,9 +2350,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2391,7 +2380,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2406,8 +2395,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2427,8 +2415,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2555,9 +2542,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2585,7 +2572,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2600,8 +2587,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2621,8 +2607,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2749,9 +2734,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2779,7 +2764,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2794,8 +2779,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2815,8 +2799,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2943,9 +2926,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2973,7 +2956,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3002,8 +2985,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3025,8 +3007,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3162,7 +3143,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3191,8 +3172,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3214,8 +3194,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3351,7 +3330,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3385,8 +3364,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3410,8 +3388,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3556,7 +3533,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3585,8 +3562,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3608,8 +3584,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3756,9 +3731,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -3786,7 +3761,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3848,8 +3823,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3897,8 +3871,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4132,7 +4105,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4188,8 +4161,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4225,8 +4197,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4419,7 +4390,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4442,8 +4413,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4475,8 +4445,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4641,7 +4610,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4670,8 +4639,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4693,8 +4661,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4830,7 +4797,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4859,8 +4826,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4882,8 +4848,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5019,7 +4984,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5053,8 +5018,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5078,8 +5042,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5226,7 +5189,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5287,8 +5250,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5326,8 +5288,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5492,7 +5453,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5521,8 +5482,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5544,8 +5504,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5681,7 +5640,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index d70af83c9115..752983ca5d67 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -195,8 +194,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -218,8 +216,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -379,9 +376,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -409,7 +406,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs index 1d959b49106f..f1ba6920ed5d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -699,8 +698,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -722,8 +720,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -881,7 +878,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -911,8 +908,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -936,8 +932,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1078,7 +1073,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1107,8 +1102,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1130,8 +1124,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1293,9 +1286,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1355,7 +1348,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1384,8 +1377,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1407,8 +1399,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1570,9 +1561,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1606,7 +1597,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1624,8 +1615,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1647,8 +1637,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1799,9 +1788,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1841,7 +1830,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1870,8 +1859,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1893,8 +1881,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2064,7 +2051,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2099,8 +2086,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2126,8 +2112,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2289,7 +2274,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2324,8 +2309,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2351,8 +2335,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2525,9 +2508,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2555,7 +2538,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2590,8 +2573,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2617,8 +2599,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2791,9 +2772,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -2821,7 +2802,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs index 1677ff9901e2..3621391bc370 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -382,8 +381,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -405,8 +403,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -536,7 +533,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -551,8 +548,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -572,8 +568,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -709,9 +704,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : null; } /// @@ -739,7 +734,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -757,8 +752,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -780,8 +774,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -915,9 +908,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -957,7 +950,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -986,8 +979,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1009,8 +1001,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1158,9 +1149,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1194,7 +1185,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs index 0352814ae67d..fa5c48d6efbb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -632,8 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -655,8 +653,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -792,7 +789,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -821,8 +818,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -844,8 +840,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -981,7 +976,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1010,8 +1005,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1033,8 +1027,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1170,7 +1163,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1199,8 +1192,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1222,8 +1214,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1353,7 +1344,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1382,8 +1373,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1405,8 +1395,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1542,9 +1531,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1598,9 +1587,9 @@ public bool TryOk([NotNullWhen(true)]out Org.OpenAPITools.Model.User? result) public Org.OpenAPITools.Model.User? CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1628,7 +1617,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1662,8 +1651,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1687,8 +1675,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1860,9 +1847,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -1896,7 +1883,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1911,8 +1898,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1932,8 +1918,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2049,7 +2034,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2083,8 +2068,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2108,8 +2092,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2255,7 +2238,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiException.cs index 76274524017f..127c144308ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 88b4a497394b..a7ab9cb7c1a7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs index c9dc766e4639..1a75435a485a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs index 5e42c9efb856..8e8456c8ba1c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateOnlyNullableJsonConverter.cs @@ -26,7 +26,6 @@ public class DateOnlyNullableJsonConverter : JsonConverter public static string[] Formats { get; } = { "yyyy'-'MM'-'dd", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index de6a37a17df7..b9814227c927 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 02b767330d0a..fc808b18df6c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -40,7 +40,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.ffK", "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 2d8c0b2a52f7..40dc2b32047f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/Option.cs index e6fd1c26872d..d1745d11fd76 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index d5510735d390..6dfaaa50f3d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/TokenProvider`1.cs index b873d5323e7a..58256a5f0ad5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 97aaf78dd30a..5feba7662d6c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, Activity activity, JsonSerial } } } - /// /// The ActivitySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 993b2a750ce7..eb045bf1d70e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,17 +194,15 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); } } } - /// /// The ActivityOutputElementRepresentationSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index fe4e050f537d..1d508348240a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -199,9 +198,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -400,7 +397,6 @@ public void WriteProperties(Utf8JsonWriter writer, AdditionalPropertiesClass add } } } - /// /// The AdditionalPropertiesClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 7c54e55cb7b5..fb062f7e6259 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -103,9 +102,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,11 +214,10 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } - /// /// The AnimalSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index 4ae5d07dcfef..e70310f1331f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -220,17 +217,14 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value!.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value!.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } - /// /// The ApiResponseSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..a12b6c20ae05 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -119,38 +118,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,17 +249,14 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } - /// /// The AppleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index 840e615e2280..3c49d1e51fba 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -183,13 +180,11 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value!.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value!.Value); } } - /// /// The AppleReqSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d27c45fdcd1d..3108b66c8073 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, ArrayOfArrayOfNumberOnly arra } } } - /// /// The ArrayOfArrayOfNumberOnlySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 72dc6b5327f5..1f418f9d59a9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, ArrayOfNumberOnly arrayOfNumb } } } - /// /// The ArrayOfNumberOnlySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 947e074e1390..15dae60fb4b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -242,7 +239,6 @@ public void WriteProperties(Utf8JsonWriter writer, ArrayTest arrayTest, JsonSeri } } } - /// /// The ArrayTestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 06208194730c..cbf077bb0217 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,11 +165,10 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value!.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value!.Value); } } - /// /// The BananaSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index c145e62672fb..5c405055e543 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -181,13 +178,11 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value!.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value!.Value); } } - /// /// The BananaReqSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index cdd31db8f50c..2be764c76386 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,9 +78,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,10 +163,9 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } - /// /// The BasquePigSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..9a80a55286ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -167,9 +166,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -301,26 +298,20 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } - /// /// The CapitalizationSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 352bba5d51e4..d4c06f2c6671 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -80,7 +79,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -182,14 +180,12 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value!.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value!.Value); } } - /// /// The CatSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 286d8b6464b5..f6f6d3580ee4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -95,9 +94,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -190,13 +187,11 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value!.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value!.Value); + writer.WriteString("name", category.Name); } } - /// /// The CategorySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 2b39e8e86f0c..a2b74ddb06fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -96,7 +95,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -131,7 +129,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -225,13 +222,11 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } - /// /// The ChildCatSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..2df71676f1aa 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } - /// /// The ClassModelSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index acf1f351fe7a..d7ea6c922dc3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,12 +185,10 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } - /// /// The ComplexQuadrilateralSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index c54e2bd3ea87..42dbdf77c865 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,9 +78,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,10 +163,9 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } - /// /// The DanishPigSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index dfa0a603bb61..c05774b2e528 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -174,11 +171,10 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value!.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value!.Value.ToString(DateOnlyPropertyFormat)); } } - /// /// The DateOnlyClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..8c19fb919bb3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } - /// /// The DeprecatedObjectSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 4de2c40c0183..92feab3b3bd2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -80,7 +79,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -184,14 +182,12 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } - /// /// The DogSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index 1f8cc5462321..9d506c3c240f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -268,7 +265,6 @@ public void WriteProperties(Utf8JsonWriter writer, Drawing drawing, JsonSerializ } } } - /// /// The DrawingSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 809acadd5224..9287d03ed95b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -112,7 +111,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -178,7 +176,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -234,9 +231,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -337,7 +332,6 @@ public void WriteProperties(Utf8JsonWriter writer, EnumArrays enumArrays, JsonSe writer.WriteString("just_symbol", justSymbolRawValue); } } - /// /// The EnumArraysSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumClass.cs index 520dc1cfbde9..52ec9d16bfbb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -189,7 +188,6 @@ public override void Write(Utf8JsonWriter writer, EnumClass? enumClass, JsonSeri } } - /// /// The EnumClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 65adf54ea349..c3885c00d375 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -210,7 +209,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -275,7 +273,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -347,7 +344,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -426,7 +422,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -589,7 +584,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -691,9 +685,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -845,16 +837,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value!.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value!.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value!.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value!.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value!.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value!.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value!.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value!.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption!.Value != null) @@ -881,7 +870,6 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial } } } - /// /// The EnumTestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index ca7a8101de84..312205652b2b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,12 +185,10 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } - /// /// The EquilateralTriangleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..ceedd81f9a72 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,11 +168,10 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } - /// /// The FileSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d713d6a161ee..b1518f9e1646 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -210,7 +207,6 @@ public void WriteProperties(Utf8JsonWriter writer, FileSchemaTestClass fileSchem } } } - /// /// The FileSchemaTestClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..254d708996f6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } - /// /// The FooSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index d1d691a8dd2e..00d64b79645d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, FooGetDefaultResponse fooGetD } } } - /// /// The FooGetDefaultResponseSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index d9011f3dbd67..8f0f5baec96d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -541,42 +540,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -592,9 +591,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -898,78 +895,57 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value!.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value!.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value!.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value!.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value!.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value!.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value!.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value!.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value!.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value!.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value!.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value!.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value!.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value!.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value!.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value!.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value!.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value!.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value!.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value!.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value!.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value!.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value!.Value); } } - /// /// The FormatTestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..9639b19f7e8b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,11 +211,10 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } - /// /// The FruitSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs index 1f75be50f94b..b387b5d9d116 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,7 +185,6 @@ public void WriteProperties(Utf8JsonWriter writer, FruitReq fruitReq, JsonSerial } } - /// /// The FruitReqSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index e44c82f23506..987ab85e4f31 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -106,9 +105,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } - /// /// The GmFruitSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 69049f30a58f..ff480ef7d70b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -192,7 +189,6 @@ public void WriteProperties(Utf8JsonWriter writer, GrandparentAnimal grandparent writer.WriteString("pet_type", grandparentAnimal.PetType); } } - /// /// The GrandparentAnimalSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 0bf77a18dca2..1b974ec92405 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -143,9 +142,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -237,14 +234,12 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } - /// /// The HasOnlyReadOnlySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..ba992867fc7c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -164,14 +161,13 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } - /// /// The HealthCheckResultSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index df5fac5540b5..4b31666d14d6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -181,12 +178,10 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } - /// /// The IsoscelesTriangleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..574940ef885c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } - /// /// The ListSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..efc2a2ff3377 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -196,14 +193,12 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } - /// /// The LiteralStringClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index fe273665e2c2..3c0e90f4c97d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -116,9 +115,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -269,7 +266,6 @@ public void WriteProperties(Utf8JsonWriter writer, Mammal mammal, JsonSerializer } } - /// /// The MammalSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index cf14472204d4..1e58a908c758 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -116,7 +115,6 @@ public static string InnerEnumToJsonValue(InnerEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -200,9 +198,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -340,7 +336,6 @@ public void WriteProperties(Utf8JsonWriter writer, MapTest mapTest, JsonSerializ } } } - /// /// The MapTestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs index 002521973975..5a4f04a363d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -535,9 +534,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -929,105 +926,73 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value!.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value!.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value!.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value!.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value!.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value!.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value!.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value!.Value); + else + writer.WriteNull("totalPrice"); } } - /// /// The MixLogSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cb6c05a7c77f..2a0d9b4baddd 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, MixedAnyOf mixedAnyOf, JsonSe } } } - /// /// The MixedAnyOfSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 72287b1d1b45..0b05e53a88c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -139,9 +138,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -283,7 +280,6 @@ public void WriteProperties(Utf8JsonWriter writer, MixedAnyOfContent mixedAnyOfC } } - /// /// The MixedAnyOfContentSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2f8ac2dc1d53..d82a216c9662 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, MixedOneOf mixedOneOf, JsonSe } } } - /// /// The MixedOneOfSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 8ea30fde6f80..daad1f95dad1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -261,7 +258,6 @@ public void WriteProperties(Utf8JsonWriter writer, MixedOneOfContent mixedOneOfC } } - /// /// The MixedOneOfContentSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index a9e28c2f3e83..f8ab8abab49f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -134,16 +133,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()!).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()!).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -255,22 +252,19 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value!.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value!.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value!.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value!.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value!.Value); } } - /// /// The MixedPropertiesAndAdditionalPropertiesClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..3e52d422cda0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } - /// /// The MixedSubIdSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index a6022a5f9cce..ab4f834709dc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,14 +191,12 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value!.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value!.Value); } } - /// /// The Model200ResponseSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..a8cd6ac4661d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } - /// /// The ModelClientSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 2632fefd0fac..4ddb70b7daac 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -168,9 +167,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -279,19 +276,15 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value!.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value!.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value!.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value!.Value); } } - /// /// The NameSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index e3a042f07ea2..b89a4ee04907 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -189,10 +186,9 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } - /// /// The NotificationtestGetElementsV1ResponseMPayloadSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index 97697787aa33..a85bf1658791 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -262,9 +261,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -438,37 +435,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value!.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value!.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value!.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value!.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value!.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value!.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value!.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value!.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value!.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value!.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -489,14 +481,13 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } - /// /// The NullableClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 7db4f508852b..03911446342a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -87,9 +86,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,14 +163,13 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value!.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value!.Value); + else + writer.WriteNull("uuid"); } } - /// /// The NullableGuidClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index 25248c75ffaf..f4627c95f0a3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, NullableShape nullableShape, } } - /// /// The NullableShapeSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index b33930dee1b7..098e9b973532 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,11 +165,10 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value!.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value!.Value); } } - /// /// The NumberOnlySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 72d8feb0ba05..98d791a4e6a1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -137,9 +136,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -261,14 +258,12 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value!.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value!.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } - /// /// The ObjectWithDeprecatedFieldsSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..5457708fdf76 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -157,7 +154,6 @@ public void WriteProperties(Utf8JsonWriter writer, OneOfString oneOfString, Json } } - /// /// The OneOfStringSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index ad8a7fe42d07..65f82386edd6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -135,7 +134,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -249,9 +247,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -377,26 +373,20 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value!.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value!.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value!.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value!.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value!.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value!.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value!.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value!.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value!.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value!.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value!.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value!.Value); writer.WriteString("status", statusRawValue); } } - /// /// The OrderSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 9e354ba31085..f71a17ddc406 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -218,17 +215,14 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value!.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value!.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value!.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value!.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } - /// /// The OuterCompositeSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnum.cs index 803ca5e1771d..0a1fa1bd2282 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -189,7 +188,6 @@ public override void Write(Utf8JsonWriter writer, OuterEnum? outerEnum, JsonSeri } } - /// /// The OuterEnumSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 1d30a9abb740..d77011ea06d6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -189,7 +188,6 @@ public override void Write(Utf8JsonWriter writer, OuterEnumDefaultValue? outerEn } } - /// /// The OuterEnumDefaultValueSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 0d9bcfd0835b..1655faf87b52 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -180,7 +179,6 @@ public override void Write(Utf8JsonWriter writer, OuterEnumInteger? outerEnumInt } } - /// /// The OuterEnumIntegerSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index b0d7b8ea0756..0c5130abf7b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -180,7 +179,6 @@ public override void Write(Utf8JsonWriter writer, OuterEnumIntegerDefaultValue? } } - /// /// The OuterEnumIntegerDefaultValueSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumTest.cs index 56a81b57e54d..b65b2ae564a5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -259,7 +258,6 @@ public override void Write(Utf8JsonWriter writer, OuterEnumTest? outerEnumTest, } } - /// /// The OuterEnumTestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 6218c3add483..ac1673d8522b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -63,7 +62,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -158,7 +156,6 @@ public void WriteProperties(Utf8JsonWriter writer, ParentPet parentPet, JsonSeri writer.WriteString("pet_type", parentPet.PetType); } } - /// /// The ParentPetSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index f055e78da6e8..3cd9c91880a3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -135,7 +134,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -235,9 +233,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -375,19 +371,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value!.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value!.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value!.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value!.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { @@ -396,7 +390,6 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption } } } - /// /// The PetSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 57c4f9a91217..b612744301a7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, Pig pig, JsonSerializerOption } } - /// /// The PigSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..0bcd43cf132f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -121,9 +120,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, PolymorphicProperty polymorph } } - /// /// The PolymorphicPropertySerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index 8e308392490d..90165eb76883 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, Quadrilateral quadrilateral, } } - /// /// The QuadrilateralSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3d15636fda9a..9a3fea60e8b9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,9 +78,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,10 +163,9 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } - /// /// The QuadrilateralInterfaceSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..6f7ed8d22d5e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,14 +231,12 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } - /// /// The ReadOnlyFirstSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index f8095975d33e..fdee343e8274 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -189,7 +188,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -254,7 +252,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -410,7 +407,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -481,7 +477,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -553,7 +548,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -716,7 +710,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -801,7 +794,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -873,7 +865,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1039,7 +1030,6 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1124,7 +1114,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1189,7 +1178,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1348,7 +1336,6 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1702,9 +1689,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2184,78 +2169,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value!.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value!.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value!.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value!.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value!.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value!.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value!.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value!.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value!.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value!.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value!.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value!.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value!.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value!.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value!.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value!.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value!.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value!.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue!.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value!.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value!.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2263,31 +2230,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value!.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value!.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value!.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value!.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value!.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value!.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value!.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value!.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value!.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value!.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2301,19 +2264,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value!.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value!.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2321,42 +2282,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString!.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString!.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2368,17 +2323,15 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } - /// /// The RequiredClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 14b4548c6105..aa84143575d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -120,9 +119,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -232,21 +229,17 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value!.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value!.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } - /// /// The ReturnSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 8df9de9ae715..f7f291858db3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -200,11 +197,10 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value!.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value!.Value); } } - /// /// The RolesReportsHashSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..6beb59607de7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } - /// /// The RolesReportsHashRoleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 6ce8c2b68a1b..2649e0b72aa3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,12 +185,10 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } - /// /// The ScaleneTriangleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 71620d915bbb..116e2aec8015 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, Shape shape, JsonSerializerOp } } - /// /// The ShapeSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 3070f52be3ac..a276fecd1813 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,9 +78,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,10 +163,9 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } - /// /// The ShapeInterfaceSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 37b5fddee5e3..37d12e3a473a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -101,9 +100,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +236,6 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeOrNull shapeOrNull, Json } } - /// /// The ShapeOrNullSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 61ff978f3c24..79640550c0b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -88,9 +87,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -188,12 +185,10 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } - /// /// The SimpleQuadrilateralSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index c72f3539283b..7aa0e70c4541 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,14 +191,12 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value!.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value!.Value); } } - /// /// The SpecialModelNameSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index 9ac29533f720..62d58fc6c209 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -102,9 +101,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,14 +191,12 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value!.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value!.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } - /// /// The TagSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..f4330aada304 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } - /// /// The TestCollectionEndingWithWordListSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index bfc3a14472d7..f6b40f73c721 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,7 +175,6 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL } } } - /// /// The TestCollectionEndingWithWordListObjectSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..cc8fed138de2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -86,9 +85,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -170,11 +167,10 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } - /// /// The TestInlineFreeformAdditionalPropertiesRequestSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5c2490410259..0692acea52fc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -116,9 +115,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -269,7 +266,6 @@ public void WriteProperties(Utf8JsonWriter writer, Triangle triangle, JsonSerial } } - /// /// The TriangleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index a2ef4da28f5a..1eb7099fdd47 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -79,9 +78,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -166,10 +163,9 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } - /// /// The TriangleInterfaceSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6692b4f25093..8c0fc49c6e73 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -267,9 +266,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -459,19 +456,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value!.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value!.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -484,20 +477,16 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value!.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value!.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } - /// /// The UserSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index f3f3e60766df..7119c62237ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -111,9 +110,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,16 +211,13 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value!.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value!.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value!.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value!.Value); } } - /// /// The WhaleSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..3f1208d47533 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -126,7 +125,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -175,9 +173,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -271,13 +267,11 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value!.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value!.Value); writer.WriteString("type", typeRawValue); } } - /// /// The ZebraSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 15c22d0fc3b0..f2668c6162e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -175,7 +174,6 @@ public override void Write(Utf8JsonWriter writer, ZeroBasedEnum? zeroBasedEnum, } } - /// /// The ZeroBasedEnumSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..c641326f6fd2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -110,7 +109,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -152,9 +150,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -239,7 +235,6 @@ public void WriteProperties(Utf8JsonWriter writer, ZeroBasedEnumClass zeroBasedE writer.WriteString("ZeroBasedEnum", zeroBasedEnumRawValue); } } - /// /// The ZeroBasedEnumClassSerializationContext /// diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 7782f09b34bf..e8bd67eb3aa2 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -144,8 +143,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterNowGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -165,8 +163,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -293,9 +290,9 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.NowGet200Response? Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : null; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : null; } /// @@ -323,7 +320,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index f7cda3e72ce2..b78d082cc462 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0027952859de..21f45d3a7e36 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 1ebd1220b622..f60fda93b79e 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index e92db186bb60..35023389e490 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 1c1677e3e3cb..9bb8aac2b31a 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 30ef47033199..765c4da41eb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index d9c84d5cc775..b9db4a74c79e 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d07559ec5275..bcdb3f837c8e 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - #nullable enable using System; @@ -93,9 +92,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public override void Write(Utf8JsonWriter writer, NowGet200Response nowGet200Res /// public void WriteProperties(Utf8JsonWriter writer, NowGet200Response nowGet200Response, JsonSerializerOptions jsonSerializerOptions) { - if (nowGet200Response.NowOption.IsSet) - writer.WriteString("now", nowGet200Response.NowOption.Value!.Value.ToString(NowFormat)); - - if (nowGet200Response.TodayOption.IsSet) - writer.WriteString("today", nowGet200Response.TodayOption.Value!.Value.ToString(TodayFormat)); + if (nowGet200Response.NowOption.IsSet) + writer.WriteString("now", nowGet200Response.NowOption.Value!.Value.ToString(NowFormat)); + if (nowGet200Response.TodayOption.IsSet) + writer.WriteString("today", nowGet200Response.TodayOption.Value!.Value.ToString(TodayFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 57b7fd8511df..2cdf103f3380 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -192,8 +191,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia bool suppressDefaultLog = false; AfterCall123TestSpecialTags(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -215,8 +213,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -362,9 +359,9 @@ public Call123TestSpecialTagsApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -392,7 +389,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index e2f9ed3767b0..ac434f7fe384 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -390,8 +389,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterFooGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -411,8 +409,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -538,9 +535,9 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http public Org.OpenAPITools.Model.FooGetDefaultResponse Default() { // This logic may be modified with the AsModel.mustache template - return IsDefault - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsDefault + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -568,7 +565,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -597,8 +594,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp bool suppressDefaultLog = false; AfterGetCountry(ref suppressDefaultLog, apiResponseLocalVar, country); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -620,8 +616,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -763,7 +758,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -778,8 +773,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV bool suppressDefaultLog = false; AfterHello(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -799,8 +793,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri bool suppressDefaultLogLocalVar = false; OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -926,9 +919,9 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -956,7 +949,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -971,8 +964,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse bool suppressDefaultLog = false; AfterRolesReportGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -992,8 +984,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1119,9 +1110,9 @@ public RolesReportGetApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1149,7 +1140,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1164,8 +1155,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar bool suppressDefaultLog = false; AfterTest(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1185,8 +1175,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin bool suppressDefaultLogLocalVar = false; OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1312,9 +1301,9 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ public Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1342,7 +1331,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 0df3dc21b8d7..478690ddc3b4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -1299,8 +1298,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a bool suppressDefaultLog = false; AfterFakeHealthGet(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1320,8 +1318,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1447,9 +1444,9 @@ public FakeHealthGetApiResponse(ILogger logger, System public Org.OpenAPITools.Model.HealthCheckResult Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1477,7 +1474,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1495,8 +1492,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole bool suppressDefaultLog = false; AfterFakeOuterBooleanSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1518,8 +1514,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1664,9 +1659,9 @@ public FakeOuterBooleanSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1694,7 +1689,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1723,8 +1718,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom bool suppressDefaultLog = false; AfterFakeOuterCompositeSerialize(ref suppressDefaultLog, apiResponseLocalVar, outerComposite); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1746,8 +1740,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1894,9 +1887,9 @@ public FakeOuterCompositeSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1924,7 +1917,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1942,8 +1935,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber bool suppressDefaultLog = false; AfterFakeOuterNumberSerialize(ref suppressDefaultLog, apiResponseLocalVar, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1965,8 +1957,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2111,9 +2102,9 @@ public FakeOuterNumberSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2141,7 +2132,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2171,8 +2162,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString bool suppressDefaultLog = false; AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2196,8 +2186,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2353,9 +2342,9 @@ public FakeOuterStringSerializeApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2383,7 +2372,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2398,8 +2387,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon bool suppressDefaultLog = false; AfterGetArrayOfEnums(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2419,8 +2407,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2546,9 +2533,9 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2576,7 +2563,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2591,8 +2578,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedAnyOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2612,8 +2598,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2739,9 +2724,9 @@ public GetMixedAnyOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedAnyOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2769,7 +2754,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2784,8 +2769,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a bool suppressDefaultLog = false; AfterGetMixedOneOf(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2805,8 +2789,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2932,9 +2915,9 @@ public GetMixedOneOfApiResponse(ILogger logger, System public Org.OpenAPITools.Model.MixedOneOf Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2962,7 +2945,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2991,8 +2974,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd bool suppressDefaultLog = false; AfterTestAdditionalPropertiesReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3014,8 +2996,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep bool suppressDefaultLogLocalVar = false; OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3151,7 +3132,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3180,8 +3161,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS bool suppressDefaultLog = false; AfterTestBodyWithFileSchema(ref suppressDefaultLog, apiResponseLocalVar, fileSchemaTestClass); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3203,8 +3183,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3340,7 +3319,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3374,8 +3353,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer bool suppressDefaultLog = false; AfterTestBodyWithQueryParams(ref suppressDefaultLog, apiResponseLocalVar, query, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3399,8 +3377,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep bool suppressDefaultLogLocalVar = false; OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3545,7 +3522,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3574,8 +3551,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon bool suppressDefaultLog = false; AfterTestClientModel(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3597,8 +3573,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca bool suppressDefaultLogLocalVar = false; OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -3744,9 +3719,9 @@ public TestClientModelApiResponse(ILogger logger, Sy public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -3774,7 +3749,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -3836,8 +3811,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam bool suppressDefaultLog = false; AfterTestEndpointParameters(ref suppressDefaultLog, apiResponseLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -3885,8 +3859,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4120,7 +4093,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4176,8 +4149,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi bool suppressDefaultLog = false; AfterTestEnumParameters(ref suppressDefaultLog, apiResponseLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4213,8 +4185,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL bool suppressDefaultLogLocalVar = false; OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4407,7 +4378,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4430,8 +4401,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA bool suppressDefaultLog = false; AfterTestGroupParameters(ref suppressDefaultLog, apiResponseLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4463,8 +4433,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception bool suppressDefaultLogLocalVar = false; OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4628,7 +4597,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4657,8 +4626,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin bool suppressDefaultLog = false; AfterTestInlineAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4680,8 +4648,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio bool suppressDefaultLogLocalVar = false; OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -4817,7 +4784,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -4846,8 +4813,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT bool suppressDefaultLog = false; AfterTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, apiResponseLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -4869,8 +4835,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( bool suppressDefaultLogLocalVar = false; OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5006,7 +4971,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5040,8 +5005,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp bool suppressDefaultLog = false; AfterTestJsonFormData(ref suppressDefaultLog, apiResponseLocalVar, param, param2); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5065,8 +5029,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5213,7 +5176,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5274,8 +5237,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ bool suppressDefaultLog = false; AfterTestQueryParameterCollectionFormat(ref suppressDefaultLog, apiResponseLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5313,8 +5275,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce bool suppressDefaultLogLocalVar = false; OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5478,7 +5439,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -5507,8 +5468,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe bool suppressDefaultLog = false; AfterTestStringMapReference(ref suppressDefaultLog, apiResponseLocalVar, requestBody); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -5530,8 +5490,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except bool suppressDefaultLogLocalVar = false; OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -5667,7 +5626,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 6417fde05b99..624f3228efcb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -192,8 +191,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a bool suppressDefaultLog = false; AfterTestClassname(ref suppressDefaultLog, apiResponseLocalVar, modelClient); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -215,8 +213,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -375,9 +372,9 @@ public TestClassnameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.ModelClient Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -405,7 +402,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index db54750a432f..915fbcc58dd3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -696,8 +695,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca bool suppressDefaultLog = false; AfterAddPet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -719,8 +717,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str bool suppressDefaultLogLocalVar = false; OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -878,7 +875,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -908,8 +905,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon bool suppressDefaultLog = false; AfterDeletePet(ref suppressDefaultLog, apiResponseLocalVar, petId, apiKey); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -933,8 +929,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1074,7 +1069,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1103,8 +1098,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp bool suppressDefaultLog = false; AfterFindPetsByStatus(ref suppressDefaultLog, apiResponseLocalVar, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1126,8 +1120,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1288,9 +1281,9 @@ public FindPetsByStatusApiResponse(ILogger logger, public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1350,7 +1343,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1379,8 +1372,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse bool suppressDefaultLog = false; AfterFindPetsByTags(ref suppressDefaultLog, apiResponseLocalVar, tags); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1402,8 +1394,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal bool suppressDefaultLogLocalVar = false; OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1564,9 +1555,9 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst public List Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1600,7 +1591,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1618,8 +1609,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp bool suppressDefaultLog = false; AfterGetPetById(ref suppressDefaultLog, apiResponseLocalVar, petId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1641,8 +1631,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1792,9 +1781,9 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Pet Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1834,7 +1823,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1863,8 +1852,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon bool suppressDefaultLog = false; AfterUpdatePet(ref suppressDefaultLog, apiResponseLocalVar, pet); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1886,8 +1874,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2057,7 +2044,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2092,8 +2079,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe bool suppressDefaultLog = false; AfterUpdatePetWithForm(ref suppressDefaultLog, apiResponseLocalVar, petId, name, status); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2119,8 +2105,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo bool suppressDefaultLogLocalVar = false; OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2282,7 +2267,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2317,8 +2302,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp bool suppressDefaultLog = false; AfterUploadFile(ref suppressDefaultLog, apiResponseLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2344,8 +2328,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2517,9 +2500,9 @@ public UploadFileApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.ApiResponse Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2547,7 +2530,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2582,8 +2565,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit bool suppressDefaultLog = false; AfterUploadFileWithRequiredFile(ref suppressDefaultLog, apiResponseLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2609,8 +2591,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex bool suppressDefaultLogLocalVar = false; OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2782,9 +2763,9 @@ public UploadFileWithRequiredFileApiResponse(ILogger(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -2812,7 +2793,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index 52a7f2d56123..48e5c52e70fe 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -379,8 +378,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe bool suppressDefaultLog = false; AfterDeleteOrder(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -402,8 +400,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar bool suppressDefaultLogLocalVar = false; OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -532,7 +529,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -547,8 +544,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api bool suppressDefaultLog = false; AfterGetInventory(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -568,8 +564,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -704,9 +699,9 @@ public GetInventoryApiResponse(ILogger logger, System.N public Dictionary Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize>(RawContent, _jsonSerializerOptions) + : default; } /// @@ -734,7 +729,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -752,8 +747,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api bool suppressDefaultLog = false; AfterGetOrderById(ref suppressDefaultLog, apiResponseLocalVar, orderId); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -775,8 +769,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa bool suppressDefaultLogLocalVar = false; OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -909,9 +902,9 @@ public GetOrderByIdApiResponse(ILogger logger, System.N public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -951,7 +944,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -980,8 +973,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp bool suppressDefaultLog = false; AfterPlaceOrder(ref suppressDefaultLog, apiResponseLocalVar, order); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1003,8 +995,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1151,9 +1142,9 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H public Org.OpenAPITools.Model.Order Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1187,7 +1178,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index d29929bbd0fd..0956ec8e82cf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Net; @@ -621,8 +620,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp bool suppressDefaultLog = false; AfterCreateUser(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -644,8 +642,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -781,7 +778,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -810,8 +807,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit bool suppressDefaultLog = false; AfterCreateUsersWithArrayInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -833,8 +829,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -970,7 +965,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -999,8 +994,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith bool suppressDefaultLog = false; AfterCreateUsersWithListInput(ref suppressDefaultLog, apiResponseLocalVar, user); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1022,8 +1016,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce bool suppressDefaultLogLocalVar = false; OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1159,7 +1152,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1188,8 +1181,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp bool suppressDefaultLog = false; AfterDeleteUser(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1211,8 +1203,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1341,7 +1332,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1370,8 +1361,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a bool suppressDefaultLog = false; AfterGetUserByName(ref suppressDefaultLog, apiResponseLocalVar, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1393,8 +1383,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV bool suppressDefaultLogLocalVar = false; OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1529,9 +1518,9 @@ public GetUserByNameApiResponse(ILogger logger, System public Org.OpenAPITools.Model.User Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1585,9 +1574,9 @@ public bool TryOk(out Org.OpenAPITools.Model.User result) public Org.OpenAPITools.Model.User CustomHttpStatusCode599() { // This logic may be modified with the AsModel.mustache template - return IsCustomHttpStatusCode599 - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsCustomHttpStatusCode599 + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1615,7 +1604,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1649,8 +1638,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon bool suppressDefaultLog = false; AfterLoginUser(ref suppressDefaultLog, apiResponseLocalVar, password, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1674,8 +1662,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -1819,9 +1806,9 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt public string Ok() { // This logic may be modified with the AsModel.mustache template - return IsOk - ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) - : default; + return IsOk + ? System.Text.Json.JsonSerializer.Deserialize(RawContent, _jsonSerializerOptions) + : default; } /// @@ -1855,7 +1842,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -1870,8 +1857,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp bool suppressDefaultLog = false; AfterLogoutUser(ref suppressDefaultLog, apiResponseLocalVar); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -1891,8 +1877,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2007,7 +1992,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); @@ -2041,8 +2026,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp bool suppressDefaultLog = false; AfterUpdateUser(ref suppressDefaultLog, apiResponseLocalVar, user, username); if (!suppressDefaultLog) - Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); - } + Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } /// /// Processes the server response @@ -2066,8 +2050,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, bool suppressDefaultLogLocalVar = false; OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); if (!suppressDefaultLogLocalVar) - Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); - } + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling @@ -2213,7 +2196,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht bool suppressDefaultLog = false; OnDeserializationError(ref suppressDefaultLog, exception, httpStatusCode); if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); + Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiException.cs index fdd11dd19c9a..0f220825a1f2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiException.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; namespace Org.OpenAPITools.Client diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 1a0d0a718382..729e729265e4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Net; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 973f9e9d4e80..218395c88306 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index b491c61f07fa..6817e3c39270 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -42,7 +42,6 @@ public class DateTimeNullableJsonConverter : JsonConverter "yyyyMMddTHHmmss.fK", "yyyyMMddTHHmmssK", "yyyyMMdd" - }; /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eec..f58b4501c674 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.IO; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/Option.cs index 8cf79a713b74..0d3b4a720e90 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/Option.cs @@ -8,7 +8,6 @@ * Generated by: https://github.com/openapitools/openapi-generator.git */ - namespace Org.OpenAPITools.Client { /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 534f27a8cc52..1b233732bfc6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -7,7 +7,6 @@ * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ - using System; using System.Collections.Generic; using System.Linq; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 36d7dad03e23..996fb07a1fa5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -7,7 +7,6 @@ * 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.Collections.Generic; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..58d445021e5d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..cf96397d517f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -194,10 +191,9 @@ public void WriteProperties(Utf8JsonWriter writer, ActivityOutputElementRepresen if (activityOutputElementRepresentation.Prop2Option.IsSet && activityOutputElementRepresentation.Prop2 == null) throw new ArgumentNullException(nameof(activityOutputElementRepresentation.Prop2), "Property is required for class ActivityOutputElementRepresentation."); - if (activityOutputElementRepresentation.Prop1Option.IsSet) - writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); - - if (activityOutputElementRepresentation.Prop2Option.IsSet) + if (activityOutputElementRepresentation.Prop1Option.IsSet) + writer.WriteString("prop1", activityOutputElementRepresentation.Prop1); + if (activityOutputElementRepresentation.Prop2Option.IsSet) { writer.WritePropertyName("prop2"); JsonSerializer.Serialize(writer, activityOutputElementRepresentation.Prop2, jsonSerializerOptions); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..9eef9e63b103 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -196,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..c574d5a2ea6e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -7,7 +7,6 @@ * 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; @@ -100,9 +99,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -214,8 +211,8 @@ public void WriteProperties(Utf8JsonWriter writer, Animal animal, JsonSerializer writer.WriteString("className", animal.ClassName); - if (animal.ColorOption.IsSet) - writer.WriteString("color", animal.Color); + if (animal.ColorOption.IsSet) + writer.WriteString("color", animal.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..3b312a560cb5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -217,14 +214,12 @@ public void WriteProperties(Utf8JsonWriter writer, ApiResponse apiResponse, Json if (apiResponse.TypeOption.IsSet && apiResponse.Type == null) throw new ArgumentNullException(nameof(apiResponse.Type), "Property is required for class ApiResponse."); - if (apiResponse.CodeOption.IsSet) - writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); - - if (apiResponse.MessageOption.IsSet) - writer.WriteString("message", apiResponse.Message); - - if (apiResponse.TypeOption.IsSet) - writer.WriteString("type", apiResponse.Type); + if (apiResponse.CodeOption.IsSet) + writer.WriteNumber("code", apiResponse.CodeOption.Value.Value); + if (apiResponse.MessageOption.IsSet) + writer.WriteString("message", apiResponse.Message); + if (apiResponse.TypeOption.IsSet) + writer.WriteString("type", apiResponse.Type); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..9fda41895306 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -7,7 +7,6 @@ * 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; @@ -116,38 +115,36 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.ColorCodeOption.Value != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - - if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + + if (this.ColorCodeOption.Value != null &&!regexColorCode.Match(this.ColorCodeOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } if (this.CultivarOption.Value != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - - if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + + if (this.CultivarOption.Value != null &&!regexCultivar.Match(this.CultivarOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.OriginOption.Value != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.OriginOption.Value != null &&!regexOrigin.Match(this.OriginOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -249,14 +246,12 @@ public void WriteProperties(Utf8JsonWriter writer, Apple apple, JsonSerializerOp if (apple.OriginOption.IsSet && apple.Origin == null) throw new ArgumentNullException(nameof(apple.Origin), "Property is required for class Apple."); - if (apple.ColorCodeOption.IsSet) - writer.WriteString("color_code", apple.ColorCode); - - if (apple.CultivarOption.IsSet) - writer.WriteString("cultivar", apple.Cultivar); - - if (apple.OriginOption.IsSet) - writer.WriteString("origin", apple.Origin); + if (apple.ColorCodeOption.IsSet) + writer.WriteString("color_code", apple.ColorCode); + if (apple.CultivarOption.IsSet) + writer.WriteString("cultivar", apple.Cultivar); + if (apple.OriginOption.IsSet) + writer.WriteString("origin", apple.Origin); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..44bf8667e208 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -180,10 +177,9 @@ public void WriteProperties(Utf8JsonWriter writer, AppleReq appleReq, JsonSerial if (appleReq.Cultivar == null) throw new ArgumentNullException(nameof(appleReq.Cultivar), "Property is required for class AppleReq."); - writer.WriteString("cultivar", appleReq.Cultivar); - - if (appleReq.MealyOption.IsSet) - writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); + writer.WriteString("cultivar", appleReq.Cultivar); + if (appleReq.MealyOption.IsSet) + writer.WriteBoolean("mealy", appleReq.MealyOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..f00c246ac84d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..073503dca9ee 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..30a9fd8381d9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..2a87cf4680be 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, Banana banana, JsonSerializerO /// public void WriteProperties(Utf8JsonWriter writer, Banana banana, JsonSerializerOptions jsonSerializerOptions) { - if (banana.LengthCmOption.IsSet) - writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); + if (banana.LengthCmOption.IsSet) + writer.WriteNumber("lengthCm", banana.LengthCmOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..f3366e53886e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,10 +175,9 @@ public override void Write(Utf8JsonWriter writer, BananaReq bananaReq, JsonSeria /// public void WriteProperties(Utf8JsonWriter writer, BananaReq bananaReq, JsonSerializerOptions jsonSerializerOptions) { - writer.WriteNumber("lengthCm", bananaReq.LengthCm); - - if (bananaReq.SweetOption.IsSet) - writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); + writer.WriteNumber("lengthCm", bananaReq.LengthCm); + if (bananaReq.SweetOption.IsSet) + writer.WriteBoolean("sweet", bananaReq.SweetOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..4848a599f7cd 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, BasquePig basquePig, JsonSeri if (basquePig.ClassName == null) throw new ArgumentNullException(nameof(basquePig.ClassName), "Property is required for class BasquePig."); - writer.WriteString("className", basquePig.ClassName); + writer.WriteString("className", basquePig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..55c4682af23c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -7,7 +7,6 @@ * 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; @@ -164,9 +163,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -298,23 +295,18 @@ public void WriteProperties(Utf8JsonWriter writer, Capitalization capitalization if (capitalization.SmallSnakeOption.IsSet && capitalization.SmallSnake == null) throw new ArgumentNullException(nameof(capitalization.SmallSnake), "Property is required for class Capitalization."); - if (capitalization.ATT_NAMEOption.IsSet) - writer.WriteString("ATT_NAME", capitalization.ATT_NAME); - - if (capitalization.CapitalCamelOption.IsSet) - writer.WriteString("CapitalCamel", capitalization.CapitalCamel); - - if (capitalization.CapitalSnakeOption.IsSet) - writer.WriteString("Capital_Snake", capitalization.CapitalSnake); - - if (capitalization.SCAETHFlowPointsOption.IsSet) - writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); - - if (capitalization.SmallCamelOption.IsSet) - writer.WriteString("smallCamel", capitalization.SmallCamel); - - if (capitalization.SmallSnakeOption.IsSet) - writer.WriteString("small_Snake", capitalization.SmallSnake); + if (capitalization.ATT_NAMEOption.IsSet) + writer.WriteString("ATT_NAME", capitalization.ATT_NAME); + if (capitalization.CapitalCamelOption.IsSet) + writer.WriteString("CapitalCamel", capitalization.CapitalCamel); + if (capitalization.CapitalSnakeOption.IsSet) + writer.WriteString("Capital_Snake", capitalization.CapitalSnake); + if (capitalization.SCAETHFlowPointsOption.IsSet) + writer.WriteString("SCA_ETH_Flow_Points", capitalization.SCAETHFlowPoints); + if (capitalization.SmallCamelOption.IsSet) + writer.WriteString("smallCamel", capitalization.SmallCamel); + if (capitalization.SmallSnakeOption.IsSet) + writer.WriteString("small_Snake", capitalization.SmallSnake); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..dc43e6dd6cd8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -179,11 +177,10 @@ public void WriteProperties(Utf8JsonWriter writer, Cat cat, JsonSerializerOption writer.WriteString("className", cat.ClassName); - if (cat.ColorOption.IsSet) - writer.WriteString("color", cat.Color); - - if (cat.DeclawedOption.IsSet) - writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); + if (cat.ColorOption.IsSet) + writer.WriteString("color", cat.Color); + if (cat.DeclawedOption.IsSet) + writer.WriteBoolean("declawed", cat.DeclawedOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..4bf859316189 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -7,7 +7,6 @@ * 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; @@ -92,9 +91,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -187,10 +184,9 @@ public void WriteProperties(Utf8JsonWriter writer, Category category, JsonSerial if (category.Name == null) throw new ArgumentNullException(nameof(category.Name), "Property is required for class Category."); - if (category.IdOption.IsSet) - writer.WriteNumber("id", category.IdOption.Value.Value); - - writer.WriteString("name", category.Name); + if (category.IdOption.IsSet) + writer.WriteNumber("id", category.IdOption.Value.Value); + writer.WriteString("name", category.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..6027bde8f37c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -7,7 +7,6 @@ * 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; @@ -93,7 +92,6 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Name /// @@ -128,7 +126,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -222,10 +219,9 @@ public void WriteProperties(Utf8JsonWriter writer, ChildCat childCat, JsonSerial if (childCat.NameOption.IsSet && childCat.Name == null) throw new ArgumentNullException(nameof(childCat.Name), "Property is required for class ChildCat."); - if (childCat.NameOption.IsSet) - writer.WriteString("name", childCat.Name); - - writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); + if (childCat.NameOption.IsSet) + writer.WriteString("name", childCat.Name); + writer.WriteString("pet_type", ChildCat.PetTypeEnumToJsonValue(childCat.PetType)); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..cb921fcaf865 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ClassModel classModel, JsonSe if (classModel.ClassOption.IsSet && classModel.Class == null) throw new ArgumentNullException(nameof(classModel.Class), "Property is required for class ClassModel."); - if (classModel.ClassOption.IsSet) - writer.WriteString("_class", classModel.Class); + if (classModel.ClassOption.IsSet) + writer.WriteString("_class", classModel.Class); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..34179cf3eeb5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ComplexQuadrilateral complexQ if (complexQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(complexQuadrilateral.ShapeType), "Property is required for class ComplexQuadrilateral."); - writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", complexQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", complexQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", complexQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..b689eff90ae4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, DanishPig danishPig, JsonSeri if (danishPig.ClassName == null) throw new ArgumentNullException(nameof(danishPig.ClassName), "Property is required for class DanishPig."); - writer.WriteString("className", danishPig.ClassName); + writer.WriteString("className", danishPig.ClassName); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..eb80cbda5ff7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -171,8 +168,8 @@ public override void Write(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, J /// public void WriteProperties(Utf8JsonWriter writer, DateOnlyClass dateOnlyClass, JsonSerializerOptions jsonSerializerOptions) { - if (dateOnlyClass.DateOnlyPropertyOption.IsSet) - writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); + if (dateOnlyClass.DateOnlyPropertyOption.IsSet) + writer.WriteString("dateOnlyProperty", dateOnlyClass.DateOnlyPropertyOption.Value.Value.ToString(DateOnlyPropertyFormat)); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..ab41548c7686 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, DeprecatedObject deprecatedOb if (deprecatedObject.NameOption.IsSet && deprecatedObject.Name == null) throw new ArgumentNullException(nameof(deprecatedObject.Name), "Property is required for class DeprecatedObject."); - if (deprecatedObject.NameOption.IsSet) - writer.WriteString("name", deprecatedObject.Name); + if (deprecatedObject.NameOption.IsSet) + writer.WriteString("name", deprecatedObject.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..486f9de74139 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -7,7 +7,6 @@ * 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; @@ -77,7 +76,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// @@ -181,11 +179,10 @@ public void WriteProperties(Utf8JsonWriter writer, Dog dog, JsonSerializerOption writer.WriteString("className", dog.ClassName); - if (dog.BreedOption.IsSet) - writer.WriteString("breed", dog.Breed); - - if (dog.ColorOption.IsSet) - writer.WriteString("color", dog.Color); + if (dog.BreedOption.IsSet) + writer.WriteString("breed", dog.Breed); + if (dog.ColorOption.IsSet) + writer.WriteString("color", dog.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..d0abaf05c053 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -7,7 +7,6 @@ * 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; @@ -131,9 +130,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..23f818fe4723 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -7,7 +7,6 @@ * 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; @@ -109,7 +108,6 @@ public static string ArrayEnumEnumToJsonValue(ArrayEnumEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Defines JustSymbol /// @@ -175,7 +173,6 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of JustSymbol /// @@ -231,9 +228,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs index b1aff0adf0d8..9e4dceb77312 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumClass.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..9970b90fe0b4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -7,7 +7,6 @@ * 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; @@ -207,7 +206,6 @@ public static string EnumStringRequiredEnumToJsonValue(EnumStringRequiredEnum va throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets EnumStringRequired /// @@ -272,7 +270,6 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) { return (int) value; } - /// /// Used to track the state of EnumInteger /// @@ -344,7 +341,6 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) { return (int) value; } - /// /// Used to track the state of EnumIntegerOnly /// @@ -423,7 +419,6 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumNumber /// @@ -586,7 +581,6 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of EnumString /// @@ -688,9 +682,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -842,16 +834,13 @@ public void WriteProperties(Utf8JsonWriter writer, EnumTest enumTest, JsonSerial { var enumStringRequiredRawValue = EnumTest.EnumStringRequiredEnumToJsonValue(enumTest.EnumStringRequired); writer.WriteString("enum_string_required", enumStringRequiredRawValue); - if (enumTest.EnumIntegerOption.IsSet) - writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); - - if (enumTest.EnumIntegerOnlyOption.IsSet) - writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); - - if (enumTest.EnumNumberOption.IsSet) - writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); - - var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); + if (enumTest.EnumIntegerOption.IsSet) + writer.WriteNumber("enum_integer", EnumTest.EnumIntegerEnumToJsonValue(enumTest.EnumIntegerOption.Value.Value)); + if (enumTest.EnumIntegerOnlyOption.IsSet) + writer.WriteNumber("enum_integer_only", EnumTest.EnumIntegerOnlyEnumToJsonValue(enumTest.EnumIntegerOnlyOption.Value.Value)); + if (enumTest.EnumNumberOption.IsSet) + writer.WriteNumber("enum_number", EnumTest.EnumNumberEnumToJsonValue(enumTest.EnumNumberOption.Value.Value)); + var enumStringRawValue = EnumTest.EnumStringEnumToJsonValue(enumTest.EnumStringOption.Value.Value); writer.WriteString("enum_string", enumStringRawValue); if (enumTest.OuterEnumOption.IsSet) if (enumTest.OuterEnumOption.Value != null) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..4c6b57312e55 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, EquilateralTriangle equilater if (equilateralTriangle.TriangleType == null) throw new ArgumentNullException(nameof(equilateralTriangle.TriangleType), "Property is required for class EquilateralTriangle."); - writer.WriteString("shapeType", equilateralTriangle.ShapeType); - - writer.WriteString("triangleType", equilateralTriangle.TriangleType); + writer.WriteString("shapeType", equilateralTriangle.ShapeType); + writer.WriteString("triangleType", equilateralTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..9d2bdcce2860 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -168,8 +165,8 @@ public void WriteProperties(Utf8JsonWriter writer, File file, JsonSerializerOpti if (file.SourceURIOption.IsSet && file.SourceURI == null) throw new ArgumentNullException(nameof(file.SourceURI), "Property is required for class File."); - if (file.SourceURIOption.IsSet) - writer.WriteString("sourceURI", file.SourceURI); + if (file.SourceURIOption.IsSet) + writer.WriteString("sourceURI", file.SourceURI); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..6e1c51ef8b0c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d82c3b21439c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, Foo foo, JsonSerializerOption if (foo.BarOption.IsSet && foo.Bar == null) throw new ArgumentNullException(nameof(foo.Bar), "Property is required for class Foo."); - if (foo.BarOption.IsSet) - writer.WriteString("bar", foo.Bar); + if (foo.BarOption.IsSet) + writer.WriteString("bar", foo.Bar); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..274ef7b4267a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..285c83264ae3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -7,7 +7,6 @@ * 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; @@ -538,42 +537,42 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithBackslashOption.Value != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - - if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + + if (this.PatternWithBackslashOption.Value != null &&!regexPatternWithBackslash.Match(this.PatternWithBackslashOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } if (this.PatternWithDigitsOption.Value != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - - if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + + if (this.PatternWithDigitsOption.Value != null &&!regexPatternWithDigits.Match(this.PatternWithDigitsOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiterOption.Value != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.PatternWithDigitsAndDelimiterOption.Value != null &&!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiterOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.StringOption.Value != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - - if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + + if (this.StringOption.Value != null &&!regexString.Match(this.StringOption.Value).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // UnsignedInteger (uint) maximum @@ -589,9 +588,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -895,75 +892,55 @@ public void WriteProperties(Utf8JsonWriter writer, FormatTest formatTest, JsonSe writer.WritePropertyName("byte"); JsonSerializer.Serialize(writer, formatTest.Byte, jsonSerializerOptions); - writer.WriteString("date", formatTest.Date.ToString(DateFormat)); - - writer.WriteNumber("number", formatTest.Number); - - writer.WriteString("password", formatTest.Password); - - if (formatTest.BinaryOption.IsSet) + writer.WriteString("date", formatTest.Date.ToString(DateFormat)); + writer.WriteNumber("number", formatTest.Number); + writer.WriteString("password", formatTest.Password); + if (formatTest.BinaryOption.IsSet) { writer.WritePropertyName("binary"); JsonSerializer.Serialize(writer, formatTest.Binary, jsonSerializerOptions); } - if (formatTest.DateTimeOption.IsSet) - writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (formatTest.DecimalOption.IsSet) + if (formatTest.DateTimeOption.IsSet) + writer.WriteString("dateTime", formatTest.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (formatTest.DecimalOption.IsSet) { writer.WritePropertyName("decimal"); JsonSerializer.Serialize(writer, formatTest.Decimal, jsonSerializerOptions); } - if (formatTest.DoubleOption.IsSet) - writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); - - if (formatTest.FloatOption.IsSet) - writer.WriteNumber("float", formatTest.FloatOption.Value.Value); - - if (formatTest.Int32Option.IsSet) - writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); - - if (formatTest.Int32RangeOption.IsSet) - writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); - - if (formatTest.Int64Option.IsSet) - writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); - - if (formatTest.Int64NegativeOption.IsSet) - writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); - - if (formatTest.Int64NegativeExclusiveOption.IsSet) - writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); - - if (formatTest.Int64PositiveOption.IsSet) - writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); - - if (formatTest.Int64PositiveExclusiveOption.IsSet) - writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); - - if (formatTest.IntegerOption.IsSet) - writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); - - if (formatTest.PatternWithBackslashOption.IsSet) - writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); - - if (formatTest.PatternWithDigitsOption.IsSet) - writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); - - if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) - writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); - - if (formatTest.StringOption.IsSet) - writer.WriteString("string", formatTest.String); - - if (formatTest.UnsignedIntegerOption.IsSet) - writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); - - if (formatTest.UnsignedLongOption.IsSet) - writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); - - if (formatTest.UuidOption.IsSet) - writer.WriteString("uuid", formatTest.UuidOption.Value.Value); + if (formatTest.DoubleOption.IsSet) + writer.WriteNumber("double", formatTest.DoubleOption.Value.Value); + if (formatTest.FloatOption.IsSet) + writer.WriteNumber("float", formatTest.FloatOption.Value.Value); + if (formatTest.Int32Option.IsSet) + writer.WriteNumber("int32", formatTest.Int32Option.Value.Value); + if (formatTest.Int32RangeOption.IsSet) + writer.WriteNumber("int32Range", formatTest.Int32RangeOption.Value.Value); + if (formatTest.Int64Option.IsSet) + writer.WriteNumber("int64", formatTest.Int64Option.Value.Value); + if (formatTest.Int64NegativeOption.IsSet) + writer.WriteNumber("int64Negative", formatTest.Int64NegativeOption.Value.Value); + if (formatTest.Int64NegativeExclusiveOption.IsSet) + writer.WriteNumber("int64NegativeExclusive", formatTest.Int64NegativeExclusiveOption.Value.Value); + if (formatTest.Int64PositiveOption.IsSet) + writer.WriteNumber("int64Positive", formatTest.Int64PositiveOption.Value.Value); + if (formatTest.Int64PositiveExclusiveOption.IsSet) + writer.WriteNumber("int64PositiveExclusive", formatTest.Int64PositiveExclusiveOption.Value.Value); + if (formatTest.IntegerOption.IsSet) + writer.WriteNumber("integer", formatTest.IntegerOption.Value.Value); + if (formatTest.PatternWithBackslashOption.IsSet) + writer.WriteString("pattern_with_backslash", formatTest.PatternWithBackslash); + if (formatTest.PatternWithDigitsOption.IsSet) + writer.WriteString("pattern_with_digits", formatTest.PatternWithDigits); + if (formatTest.PatternWithDigitsAndDelimiterOption.IsSet) + writer.WriteString("pattern_with_digits_and_delimiter", formatTest.PatternWithDigitsAndDelimiter); + if (formatTest.StringOption.IsSet) + writer.WriteString("string", formatTest.String); + if (formatTest.UnsignedIntegerOption.IsSet) + writer.WriteNumber("unsigned_integer", formatTest.UnsignedIntegerOption.Value.Value); + if (formatTest.UnsignedLongOption.IsSet) + writer.WriteNumber("unsigned_long", formatTest.UnsignedLongOption.Value.Value); + if (formatTest.UuidOption.IsSet) + writer.WriteString("uuid", formatTest.UuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..f1ec3159ed17 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,8 +208,8 @@ public void WriteProperties(Utf8JsonWriter writer, Fruit fruit, JsonSerializerOp if (fruit.ColorOption.IsSet && fruit.Color == null) throw new ArgumentNullException(nameof(fruit.Color), "Property is required for class Fruit."); - if (fruit.ColorOption.IsSet) - writer.WriteString("color", fruit.Color); + if (fruit.ColorOption.IsSet) + writer.WriteString("color", fruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..c9711ef9205e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -7,7 +7,6 @@ * 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; @@ -81,9 +80,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..5b356ea284fc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -7,7 +7,6 @@ * 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; @@ -103,9 +102,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -228,8 +225,8 @@ public void WriteProperties(Utf8JsonWriter writer, GmFruit gmFruit, JsonSerializ if (gmFruit.ColorOption.IsSet && gmFruit.Color == null) throw new ArgumentNullException(nameof(gmFruit.Color), "Property is required for class GmFruit."); - if (gmFruit.ColorOption.IsSet) - writer.WriteString("color", gmFruit.Color); + if (gmFruit.ColorOption.IsSet) + writer.WriteString("color", gmFruit.Color); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..294ed66fccad 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..dd2d22efc53b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -140,9 +139,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -234,11 +231,10 @@ public void WriteProperties(Utf8JsonWriter writer, HasOnlyReadOnly hasOnlyReadOn if (hasOnlyReadOnly.FooOption.IsSet && hasOnlyReadOnly.Foo == null) throw new ArgumentNullException(nameof(hasOnlyReadOnly.Foo), "Property is required for class HasOnlyReadOnly."); - if (hasOnlyReadOnly.BarOption.IsSet) - writer.WriteString("bar", hasOnlyReadOnly.Bar); - - if (hasOnlyReadOnly.FooOption.IsSet) - writer.WriteString("foo", hasOnlyReadOnly.Foo); + if (hasOnlyReadOnly.BarOption.IsSet) + writer.WriteString("bar", hasOnlyReadOnly.Bar); + if (hasOnlyReadOnly.FooOption.IsSet) + writer.WriteString("foo", hasOnlyReadOnly.Foo); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..e1e0d40f4ac0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -161,11 +158,11 @@ public override void Write(Utf8JsonWriter writer, HealthCheckResult healthCheckR /// public void WriteProperties(Utf8JsonWriter writer, HealthCheckResult healthCheckResult, JsonSerializerOptions jsonSerializerOptions) { - if (healthCheckResult.NullableMessageOption.IsSet) - if (healthCheckResult.NullableMessageOption.Value != null) - writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); - else - writer.WriteNull("NullableMessage"); + if (healthCheckResult.NullableMessageOption.IsSet) + if (healthCheckResult.NullableMessageOption.Value != null) + writer.WriteString("NullableMessage", healthCheckResult.NullableMessage); + else + writer.WriteNull("NullableMessage"); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..73a93b84842c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -78,9 +77,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -178,9 +175,8 @@ public void WriteProperties(Utf8JsonWriter writer, IsoscelesTriangle isoscelesTr if (isoscelesTriangle.TriangleType == null) throw new ArgumentNullException(nameof(isoscelesTriangle.TriangleType), "Property is required for class IsoscelesTriangle."); - writer.WriteString("shapeType", isoscelesTriangle.ShapeType); - - writer.WriteString("triangleType", isoscelesTriangle.TriangleType); + writer.WriteString("shapeType", isoscelesTriangle.ShapeType); + writer.WriteString("triangleType", isoscelesTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..7dcc77628b90 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, List list, JsonSerializerOpti if (list.Var123ListOption.IsSet && list.Var123List == null) throw new ArgumentNullException(nameof(list.Var123List), "Property is required for class List."); - if (list.Var123ListOption.IsSet) - writer.WriteString("123-list", list.Var123List); + if (list.Var123ListOption.IsSet) + writer.WriteString("123-list", list.Var123List); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..fa3c03f346f7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -193,11 +190,10 @@ public void WriteProperties(Utf8JsonWriter writer, LiteralStringClass literalStr if (literalStringClass.UnescapedLiteralStringOption.IsSet && literalStringClass.UnescapedLiteralString == null) throw new ArgumentNullException(nameof(literalStringClass.UnescapedLiteralString), "Property is required for class LiteralStringClass."); - if (literalStringClass.EscapedLiteralStringOption.IsSet) - writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); - - if (literalStringClass.UnescapedLiteralStringOption.IsSet) - writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); + if (literalStringClass.EscapedLiteralStringOption.IsSet) + writer.WriteString("escapedLiteralString", literalStringClass.EscapedLiteralString); + if (literalStringClass.UnescapedLiteralStringOption.IsSet) + writer.WriteString("unescapedLiteralString", literalStringClass.UnescapedLiteralString); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..401b68452acf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..f6e951e924e2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -7,7 +7,6 @@ * 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; @@ -113,7 +112,6 @@ public static string InnerEnumToJsonValue(InnerEnum value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of DirectMap /// @@ -197,9 +195,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..31dd097161f7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -7,7 +7,6 @@ * 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; @@ -532,9 +531,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -926,102 +923,71 @@ public void WriteProperties(Utf8JsonWriter writer, MixLog mixLog, JsonSerializer if (mixLog.ProductNameOption.IsSet && mixLog.ProductName == null) throw new ArgumentNullException(nameof(mixLog.ProductName), "Property is required for class MixLog."); - writer.WriteString("description", mixLog.Description); - - writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); - - writer.WriteString("id", mixLog.Id); - - writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); - - writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); - - writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); - - writer.WriteNumber("totalSkips", mixLog.TotalSkips); - - writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); - - if (mixLog.BatchNumberOption.IsSet) - writer.WriteString("batchNumber", mixLog.BatchNumber); - - if (mixLog.BrandCodeOption.IsSet) - writer.WriteString("brandCode", mixLog.BrandCode); - - if (mixLog.BrandIdOption.IsSet) - writer.WriteString("brandId", mixLog.BrandId); - - if (mixLog.BrandNameOption.IsSet) - writer.WriteString("brandName", mixLog.BrandName); - - if (mixLog.CategoryCodeOption.IsSet) - writer.WriteString("categoryCode", mixLog.CategoryCode); - - if (mixLog.ColorOption.IsSet) - writer.WriteString("color", mixLog.Color); - - if (mixLog.ColorDescriptionOption.IsSet) - writer.WriteString("colorDescription", mixLog.ColorDescription); - - if (mixLog.CommentOption.IsSet) - writer.WriteString("comment", mixLog.Comment); - - if (mixLog.CommercialProductCodeOption.IsSet) - writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); - - if (mixLog.CountryOption.IsSet) - writer.WriteString("country", mixLog.Country); - - if (mixLog.CreatedByOption.IsSet) - writer.WriteString("createdBy", mixLog.CreatedBy); - - if (mixLog.CreatedByFirstNameOption.IsSet) - writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); - - if (mixLog.CreatedByLastNameOption.IsSet) - writer.WriteString("createdByLastName", mixLog.CreatedByLastName); - - if (mixLog.DeltaECalculationRepairedOption.IsSet) - writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); - - if (mixLog.DeltaECalculationSprayoutOption.IsSet) - writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); - - if (mixLog.OwnColorVariantNumberOption.IsSet) - if (mixLog.OwnColorVariantNumberOption.Value != null) - writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); - else - writer.WriteNull("ownColorVariantNumber"); - - if (mixLog.PrimerProductIdOption.IsSet) - writer.WriteString("primerProductId", mixLog.PrimerProductId); - - if (mixLog.ProductIdOption.IsSet) - writer.WriteString("productId", mixLog.ProductId); - - if (mixLog.ProductLineCodeOption.IsSet) - writer.WriteString("productLineCode", mixLog.ProductLineCode); - - if (mixLog.ProductNameOption.IsSet) - writer.WriteString("productName", mixLog.ProductName); - - if (mixLog.SelectedVersionIndexOption.IsSet) - writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); - - if (mixLog.ShopIdOption.IsSet) - writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); - - if (mixLog.SomeCodeOption.IsSet) - if (mixLog.SomeCodeOption.Value != null) - writer.WriteString("someCode", mixLog.SomeCode); - else - writer.WriteNull("someCode"); - - if (mixLog.TotalPriceOption.IsSet) - if (mixLog.TotalPriceOption.Value != null) - writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); - else - writer.WriteNull("totalPrice"); + writer.WriteString("description", mixLog.Description); + writer.WriteString("formulaVersionDate", mixLog.FormulaVersionDate.ToString(FormulaVersionDateFormat)); + writer.WriteString("id", mixLog.Id); + writer.WriteString("mixDate", mixLog.MixDate.ToString(MixDateFormat)); + writer.WriteNumber("totalOverPoors", mixLog.TotalOverPoors); + writer.WriteNumber("totalRecalculations", mixLog.TotalRecalculations); + writer.WriteNumber("totalSkips", mixLog.TotalSkips); + writer.WriteNumber("totalUnderPours", mixLog.TotalUnderPours); + if (mixLog.BatchNumberOption.IsSet) + writer.WriteString("batchNumber", mixLog.BatchNumber); + if (mixLog.BrandCodeOption.IsSet) + writer.WriteString("brandCode", mixLog.BrandCode); + if (mixLog.BrandIdOption.IsSet) + writer.WriteString("brandId", mixLog.BrandId); + if (mixLog.BrandNameOption.IsSet) + writer.WriteString("brandName", mixLog.BrandName); + if (mixLog.CategoryCodeOption.IsSet) + writer.WriteString("categoryCode", mixLog.CategoryCode); + if (mixLog.ColorOption.IsSet) + writer.WriteString("color", mixLog.Color); + if (mixLog.ColorDescriptionOption.IsSet) + writer.WriteString("colorDescription", mixLog.ColorDescription); + if (mixLog.CommentOption.IsSet) + writer.WriteString("comment", mixLog.Comment); + if (mixLog.CommercialProductCodeOption.IsSet) + writer.WriteString("commercialProductCode", mixLog.CommercialProductCode); + if (mixLog.CountryOption.IsSet) + writer.WriteString("country", mixLog.Country); + if (mixLog.CreatedByOption.IsSet) + writer.WriteString("createdBy", mixLog.CreatedBy); + if (mixLog.CreatedByFirstNameOption.IsSet) + writer.WriteString("createdByFirstName", mixLog.CreatedByFirstName); + if (mixLog.CreatedByLastNameOption.IsSet) + writer.WriteString("createdByLastName", mixLog.CreatedByLastName); + if (mixLog.DeltaECalculationRepairedOption.IsSet) + writer.WriteString("deltaECalculationRepaired", mixLog.DeltaECalculationRepaired); + if (mixLog.DeltaECalculationSprayoutOption.IsSet) + writer.WriteString("deltaECalculationSprayout", mixLog.DeltaECalculationSprayout); + if (mixLog.OwnColorVariantNumberOption.IsSet) + if (mixLog.OwnColorVariantNumberOption.Value != null) + writer.WriteNumber("ownColorVariantNumber", mixLog.OwnColorVariantNumberOption.Value.Value); + else + writer.WriteNull("ownColorVariantNumber"); + if (mixLog.PrimerProductIdOption.IsSet) + writer.WriteString("primerProductId", mixLog.PrimerProductId); + if (mixLog.ProductIdOption.IsSet) + writer.WriteString("productId", mixLog.ProductId); + if (mixLog.ProductLineCodeOption.IsSet) + writer.WriteString("productLineCode", mixLog.ProductLineCode); + if (mixLog.ProductNameOption.IsSet) + writer.WriteString("productName", mixLog.ProductName); + if (mixLog.SelectedVersionIndexOption.IsSet) + writer.WriteNumber("selectedVersionIndex", mixLog.SelectedVersionIndexOption.Value.Value); + if (mixLog.ShopIdOption.IsSet) + writer.WriteString("shopId", mixLog.ShopIdOption.Value.Value); + if (mixLog.SomeCodeOption.IsSet) + if (mixLog.SomeCodeOption.Value != null) + writer.WriteString("someCode", mixLog.SomeCode); + else + writer.WriteNull("someCode"); + if (mixLog.TotalPriceOption.IsSet) + if (mixLog.TotalPriceOption.Value != null) + writer.WriteNumber("totalPrice", mixLog.TotalPriceOption.Value.Value); + else + writer.WriteNull("totalPrice"); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..7e50c69e51b5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..2416a236128e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -136,9 +135,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..a4467dcf5ff7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..ae6c47f1fd1f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -7,7 +7,6 @@ * 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; @@ -133,9 +132,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..a0b39c8f7228 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -7,7 +7,6 @@ * 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; @@ -131,16 +130,14 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - - if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + + if (this.UuidWithPatternOption.Value != null &&!regexUuidWithPattern.Match(this.UuidWithPatternOption.Value.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } yield break; - } - } - + } } /// /// A Json converter for type /// @@ -252,19 +249,17 @@ public void WriteProperties(Utf8JsonWriter writer, MixedPropertiesAndAdditionalP if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet && mixedPropertiesAndAdditionalPropertiesClass.Map == null) throw new ArgumentNullException(nameof(mixedPropertiesAndAdditionalPropertiesClass.Map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass."); - if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) - writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); - - if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) + if (mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.IsSet) + writer.WriteString("dateTime", mixedPropertiesAndAdditionalPropertiesClass.DateTimeOption.Value.Value.ToString(DateTimeFormat)); + if (mixedPropertiesAndAdditionalPropertiesClass.MapOption.IsSet) { writer.WritePropertyName("map"); JsonSerializer.Serialize(writer, mixedPropertiesAndAdditionalPropertiesClass.Map, jsonSerializerOptions); } - if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) - writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); - - if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) - writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidOption.IsSet) + writer.WriteString("uuid", mixedPropertiesAndAdditionalPropertiesClass.UuidOption.Value.Value); + if (mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.IsSet) + writer.WriteString("uuid_with_pattern", mixedPropertiesAndAdditionalPropertiesClass.UuidWithPatternOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..03d7fe50ba88 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, MixedSubId mixedSubId, JsonSe if (mixedSubId.IdOption.IsSet && mixedSubId.Id == null) throw new ArgumentNullException(nameof(mixedSubId.Id), "Property is required for class MixedSubId."); - if (mixedSubId.IdOption.IsSet) - writer.WriteString("id", mixedSubId.Id); + if (mixedSubId.IdOption.IsSet) + writer.WriteString("id", mixedSubId.Id); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..63f3b46af6e2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Model200Response model200Resp if (model200Response.ClassOption.IsSet && model200Response.Class == null) throw new ArgumentNullException(nameof(model200Response.Class), "Property is required for class Model200Response."); - if (model200Response.ClassOption.IsSet) - writer.WriteString("class", model200Response.Class); - - if (model200Response.NameOption.IsSet) - writer.WriteNumber("name", model200Response.NameOption.Value.Value); + if (model200Response.ClassOption.IsSet) + writer.WriteString("class", model200Response.Class); + if (model200Response.NameOption.IsSet) + writer.WriteNumber("name", model200Response.NameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..a1162409132b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, ModelClient modelClient, Json if (modelClient.VarClientOption.IsSet && modelClient.VarClient == null) throw new ArgumentNullException(nameof(modelClient.VarClient), "Property is required for class ModelClient."); - if (modelClient.VarClientOption.IsSet) - writer.WriteString("client", modelClient.VarClient); + if (modelClient.VarClientOption.IsSet) + writer.WriteString("client", modelClient.VarClient); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..2348f9b6ea30 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -7,7 +7,6 @@ * 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; @@ -165,9 +164,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -276,16 +273,13 @@ public void WriteProperties(Utf8JsonWriter writer, Name name, JsonSerializerOpti if (name.PropertyOption.IsSet && name.Property == null) throw new ArgumentNullException(nameof(name.Property), "Property is required for class Name."); - writer.WriteNumber("name", name.VarName); - - if (name.PropertyOption.IsSet) - writer.WriteString("property", name.Property); - - if (name.SnakeCaseOption.IsSet) - writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); - - if (name.Var123NumberOption.IsSet) - writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); + writer.WriteNumber("name", name.VarName); + if (name.PropertyOption.IsSet) + writer.WriteString("property", name.Property); + if (name.SnakeCaseOption.IsSet) + writer.WriteNumber("snake_case", name.SnakeCaseOption.Value.Value); + if (name.Var123NumberOption.IsSet) + writer.WriteNumber("123Number", name.Var123NumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..705b4a9724af 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -186,7 +183,7 @@ public void WriteProperties(Utf8JsonWriter writer, NotificationtestGetElementsV1 writer.WritePropertyName("a_objVariableobject"); JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions); - writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); + writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..5be040369fd9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -7,7 +7,6 @@ * 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; @@ -259,9 +258,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -435,37 +432,32 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("array_nullable_prop"); - if (nullableClass.BooleanPropOption.IsSet) - if (nullableClass.BooleanPropOption.Value != null) - writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); - else - writer.WriteNull("boolean_prop"); - - if (nullableClass.DatePropOption.IsSet) - if (nullableClass.DatePropOption.Value != null) - writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); - else - writer.WriteNull("date_prop"); - - if (nullableClass.DatetimePropOption.IsSet) - if (nullableClass.DatetimePropOption.Value != null) - writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); - else - writer.WriteNull("datetime_prop"); - - if (nullableClass.IntegerPropOption.IsSet) - if (nullableClass.IntegerPropOption.Value != null) - writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); - else - writer.WriteNull("integer_prop"); - - if (nullableClass.NumberPropOption.IsSet) - if (nullableClass.NumberPropOption.Value != null) - writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); - else - writer.WriteNull("number_prop"); - - if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) + if (nullableClass.BooleanPropOption.IsSet) + if (nullableClass.BooleanPropOption.Value != null) + writer.WriteBoolean("boolean_prop", nullableClass.BooleanPropOption.Value.Value); + else + writer.WriteNull("boolean_prop"); + if (nullableClass.DatePropOption.IsSet) + if (nullableClass.DatePropOption.Value != null) + writer.WriteString("date_prop", nullableClass.DatePropOption.Value.Value.ToString(DatePropFormat)); + else + writer.WriteNull("date_prop"); + if (nullableClass.DatetimePropOption.IsSet) + if (nullableClass.DatetimePropOption.Value != null) + writer.WriteString("datetime_prop", nullableClass.DatetimePropOption.Value.Value.ToString(DatetimePropFormat)); + else + writer.WriteNull("datetime_prop"); + if (nullableClass.IntegerPropOption.IsSet) + if (nullableClass.IntegerPropOption.Value != null) + writer.WriteNumber("integer_prop", nullableClass.IntegerPropOption.Value.Value); + else + writer.WriteNull("integer_prop"); + if (nullableClass.NumberPropOption.IsSet) + if (nullableClass.NumberPropOption.Value != null) + writer.WriteNumber("number_prop", nullableClass.NumberPropOption.Value.Value); + else + writer.WriteNull("number_prop"); + if (nullableClass.ObjectAndItemsNullablePropOption.IsSet) if (nullableClass.ObjectAndItemsNullablePropOption.Value != null) { writer.WritePropertyName("object_and_items_nullable_prop"); @@ -486,11 +478,11 @@ public void WriteProperties(Utf8JsonWriter writer, NullableClass nullableClass, } else writer.WriteNull("object_nullable_prop"); - if (nullableClass.StringPropOption.IsSet) - if (nullableClass.StringPropOption.Value != null) - writer.WriteString("string_prop", nullableClass.StringProp); - else - writer.WriteNull("string_prop"); + if (nullableClass.StringPropOption.IsSet) + if (nullableClass.StringPropOption.Value != null) + writer.WriteString("string_prop", nullableClass.StringProp); + else + writer.WriteNull("string_prop"); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..f4dcb87a7749 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -7,7 +7,6 @@ * 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; @@ -84,9 +83,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,11 +160,11 @@ public override void Write(Utf8JsonWriter writer, NullableGuidClass nullableGuid /// public void WriteProperties(Utf8JsonWriter writer, NullableGuidClass nullableGuidClass, JsonSerializerOptions jsonSerializerOptions) { - if (nullableGuidClass.UuidOption.IsSet) - if (nullableGuidClass.UuidOption.Value != null) - writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); - else - writer.WriteNull("uuid"); + if (nullableGuidClass.UuidOption.IsSet) + if (nullableGuidClass.UuidOption.Value != null) + writer.WriteString("uuid", nullableGuidClass.UuidOption.Value.Value); + else + writer.WriteNull("uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..c234d27be972 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..abd2ee91e7ea 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -165,8 +162,8 @@ public override void Write(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSer /// public void WriteProperties(Utf8JsonWriter writer, NumberOnly numberOnly, JsonSerializerOptions jsonSerializerOptions) { - if (numberOnly.JustNumberOption.IsSet) - writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); + if (numberOnly.JustNumberOption.IsSet) + writer.WriteNumber("JustNumber", numberOnly.JustNumberOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..a81386ab9dbb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -7,7 +7,6 @@ * 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; @@ -134,9 +133,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -258,11 +255,10 @@ public void WriteProperties(Utf8JsonWriter writer, ObjectWithDeprecatedFields ob writer.WritePropertyName("deprecatedRef"); JsonSerializer.Serialize(writer, objectWithDeprecatedFields.DeprecatedRef, jsonSerializerOptions); } - if (objectWithDeprecatedFields.IdOption.IsSet) - writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); - - if (objectWithDeprecatedFields.UuidOption.IsSet) - writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); + if (objectWithDeprecatedFields.IdOption.IsSet) + writer.WriteNumber("id", objectWithDeprecatedFields.IdOption.Value.Value); + if (objectWithDeprecatedFields.UuidOption.IsSet) + writer.WriteString("uuid", objectWithDeprecatedFields.Uuid); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..77bb2a7369ef 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -7,7 +7,6 @@ * 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; @@ -73,9 +72,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..ce567c492275 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -246,9 +244,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -374,22 +370,17 @@ public override void Write(Utf8JsonWriter writer, Order order, JsonSerializerOpt /// public void WriteProperties(Utf8JsonWriter writer, Order order, JsonSerializerOptions jsonSerializerOptions) { - if (order.CompleteOption.IsSet) - writer.WriteBoolean("complete", order.CompleteOption.Value.Value); - - if (order.IdOption.IsSet) - writer.WriteNumber("id", order.IdOption.Value.Value); - - if (order.PetIdOption.IsSet) - writer.WriteNumber("petId", order.PetIdOption.Value.Value); - - if (order.QuantityOption.IsSet) - writer.WriteNumber("quantity", order.QuantityOption.Value.Value); - - if (order.ShipDateOption.IsSet) - writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); - - var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); + if (order.CompleteOption.IsSet) + writer.WriteBoolean("complete", order.CompleteOption.Value.Value); + if (order.IdOption.IsSet) + writer.WriteNumber("id", order.IdOption.Value.Value); + if (order.PetIdOption.IsSet) + writer.WriteNumber("petId", order.PetIdOption.Value.Value); + if (order.QuantityOption.IsSet) + writer.WriteNumber("quantity", order.QuantityOption.Value.Value); + if (order.ShipDateOption.IsSet) + writer.WriteString("shipDate", order.ShipDateOption.Value.Value.ToString(ShipDateFormat)); + var statusRawValue = Order.StatusEnumToJsonValue(order.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..2cbec554f7c9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -7,7 +7,6 @@ * 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; @@ -115,9 +114,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -215,14 +212,12 @@ public void WriteProperties(Utf8JsonWriter writer, OuterComposite outerComposite if (outerComposite.MyStringOption.IsSet && outerComposite.MyString == null) throw new ArgumentNullException(nameof(outerComposite.MyString), "Property is required for class OuterComposite."); - if (outerComposite.MyBooleanOption.IsSet) - writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); - - if (outerComposite.MyNumberOption.IsSet) - writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); - - if (outerComposite.MyStringOption.IsSet) - writer.WriteString("my_string", outerComposite.MyString); + if (outerComposite.MyBooleanOption.IsSet) + writer.WriteBoolean("my_boolean", outerComposite.MyBooleanOption.Value.Value); + if (outerComposite.MyNumberOption.IsSet) + writer.WriteNumber("my_number", outerComposite.MyNumberOption.Value.Value); + if (outerComposite.MyStringOption.IsSet) + writer.WriteString("my_string", outerComposite.MyString); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs index 47bb6793c6ac..4282e90bd0f0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs index 136fb4c54c4e..aa3d355d7927 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs index 2ed4f18a657e..42215ac7c69a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumInteger.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs index c6a470cc64d1..6203818d13c8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumIntegerDefaultValue.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs index a2e789f2edef..5e02cf051415 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterEnumTest.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..c2fcaae270c8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -7,7 +7,6 @@ * 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; @@ -60,7 +59,6 @@ public override string ToString() return sb.ToString(); } } - /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..73b618198e74 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -7,7 +7,6 @@ * 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; @@ -132,7 +131,6 @@ public static string StatusEnumToJsonValue(StatusEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Status /// @@ -232,9 +230,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -372,19 +368,17 @@ public void WriteProperties(Utf8JsonWriter writer, Pet pet, JsonSerializerOption if (pet.TagsOption.IsSet && pet.Tags == null) throw new ArgumentNullException(nameof(pet.Tags), "Property is required for class Pet."); - writer.WriteString("name", pet.Name); - - writer.WritePropertyName("photoUrls"); + writer.WriteString("name", pet.Name); + writer.WritePropertyName("photoUrls"); JsonSerializer.Serialize(writer, pet.PhotoUrls, jsonSerializerOptions); if (pet.CategoryOption.IsSet) { writer.WritePropertyName("category"); JsonSerializer.Serialize(writer, pet.Category, jsonSerializerOptions); } - if (pet.IdOption.IsSet) - writer.WriteNumber("id", pet.IdOption.Value.Value); - - var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); + if (pet.IdOption.IsSet) + writer.WriteNumber("id", pet.IdOption.Value.Value); + var statusRawValue = Pet.StatusEnumToJsonValue(pet.StatusOption.Value.Value); writer.WriteString("status", statusRawValue); if (pet.TagsOption.IsSet) { diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..661e350a9d29 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a87c3cadb6b8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -7,7 +7,6 @@ * 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; @@ -118,9 +117,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..667e7fa28222 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..2c5d5dd59f81 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, QuadrilateralInterface quadri if (quadrilateralInterface.QuadrilateralType == null) throw new ArgumentNullException(nameof(quadrilateralInterface.QuadrilateralType), "Property is required for class QuadrilateralInterface."); - writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); + writer.WriteString("quadrilateralType", quadrilateralInterface.QuadrilateralType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..2f95cf4e9464 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -7,7 +7,6 @@ * 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; @@ -137,9 +136,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -231,11 +228,10 @@ public void WriteProperties(Utf8JsonWriter writer, ReadOnlyFirst readOnlyFirst, if (readOnlyFirst.BazOption.IsSet && readOnlyFirst.Baz == null) throw new ArgumentNullException(nameof(readOnlyFirst.Baz), "Property is required for class ReadOnlyFirst."); - if (readOnlyFirst.BarOption.IsSet) - writer.WriteString("bar", readOnlyFirst.Bar); - - if (readOnlyFirst.BazOption.IsSet) - writer.WriteString("baz", readOnlyFirst.Baz); + if (readOnlyFirst.BarOption.IsSet) + writer.WriteString("bar", readOnlyFirst.Bar); + if (readOnlyFirst.BazOption.IsSet) + writer.WriteString("baz", readOnlyFirst.Baz); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..81d8bab84e77 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -7,7 +7,6 @@ * 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; @@ -186,7 +185,6 @@ public static int RequiredNotnullableEnumIntegerEnumToJsonValue(RequiredNotnulla { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -251,7 +249,6 @@ public static int RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(RequiredNotn { return (int) value; } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -407,7 +404,6 @@ public static string RequiredNotnullableEnumStringEnumToJsonValue(RequiredNotnul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -478,7 +474,6 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumInteger /// @@ -550,7 +545,6 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir { return (int) value; } - /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly /// @@ -713,7 +707,6 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNotnullableEnumString /// @@ -798,7 +791,6 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumInteger /// @@ -870,7 +862,6 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN { return (int) value; } - /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly /// @@ -1036,7 +1027,6 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of NotrequiredNullableEnumString /// @@ -1121,7 +1111,6 @@ public static int RequiredNullableEnumIntegerEnumToJsonValue(RequiredNullableEnu { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -1186,7 +1175,6 @@ public static int RequiredNullableEnumIntegerOnlyEnumToJsonValue(RequiredNullabl { return (int) value; } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -1345,7 +1333,6 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -1699,9 +1686,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -2181,78 +2166,60 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet && requiredClass.NotrequiredNotnullableStringProp == null) throw new ArgumentNullException(nameof(requiredClass.NotrequiredNotnullableStringProp), "Property is required for class RequiredClass."); - writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); - - writer.WritePropertyName("required_notnullable_array_of_string"); + writer.WriteString("required_not_nullable_date_prop", requiredClass.RequiredNotNullableDateProp.ToString(RequiredNotNullableDatePropFormat)); + writer.WritePropertyName("required_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNotnullableArrayOfString, jsonSerializerOptions); - writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); - - writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); - - writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); - - writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); - - var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); + writer.WriteBoolean("required_notnullable_boolean_prop", requiredClass.RequiredNotnullableBooleanProp); + writer.WriteString("required_notnullable_datetime_prop", requiredClass.RequiredNotnullableDatetimeProp.ToString(RequiredNotnullableDatetimePropFormat)); + writer.WriteNumber("required_notnullable_enum_integer", RequiredClass.RequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNotnullableEnumInteger)); + writer.WriteNumber("required_notnullable_enum_integer_only", RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNotnullableEnumIntegerOnly)); + var requiredNotnullableEnumStringRawValue = RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClass.RequiredNotnullableEnumString); writer.WriteString("required_notnullable_enum_string", requiredNotnullableEnumStringRawValue); var requiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNotnullableOuterEnumDefaultValue); writer.WriteString("required_notnullable_outerEnumDefaultValue", requiredNotnullableOuterEnumDefaultValueRawValue); - writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); - - writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); - - writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); - - if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) - writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); - - if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) - writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); - - if (requiredClass.NotRequiredNullableDatePropOption.IsSet) - if (requiredClass.NotRequiredNullableDatePropOption.Value != null) - writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); - else - writer.WriteNull("not_required_nullable_date_prop"); - - if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) - if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) - writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); - else - writer.WriteNull("not_required_nullable_integer_prop"); - - if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) + writer.WriteString("required_notnullable_string_prop", requiredClass.RequiredNotnullableStringProp); + writer.WriteString("required_notnullable_uuid", requiredClass.RequiredNotnullableUuid); + writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp); + if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet) + writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat)); + if (requiredClass.NotRequiredNotnullableintegerPropOption.IsSet) + writer.WriteNumber("not_required_notnullableinteger_prop", requiredClass.NotRequiredNotnullableintegerPropOption.Value.Value); + if (requiredClass.NotRequiredNullableDatePropOption.IsSet) + if (requiredClass.NotRequiredNullableDatePropOption.Value != null) + writer.WriteString("not_required_nullable_date_prop", requiredClass.NotRequiredNullableDatePropOption.Value.Value.ToString(NotRequiredNullableDatePropFormat)); + else + writer.WriteNull("not_required_nullable_date_prop"); + if (requiredClass.NotRequiredNullableIntegerPropOption.IsSet) + if (requiredClass.NotRequiredNullableIntegerPropOption.Value != null) + writer.WriteNumber("not_required_nullable_integer_prop", requiredClass.NotRequiredNullableIntegerPropOption.Value.Value); + else + writer.WriteNull("not_required_nullable_integer_prop"); + if (requiredClass.NotrequiredNotnullableArrayOfStringOption.IsSet) { writer.WritePropertyName("notrequired_notnullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.NotrequiredNotnullableArrayOfString, jsonSerializerOptions); } - if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) - writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); - - if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) - writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); - - if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) - writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); - - var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNotnullableBooleanPropOption.IsSet) + writer.WriteBoolean("notrequired_notnullable_boolean_prop", requiredClass.NotrequiredNotnullableBooleanPropOption.Value.Value); + if (requiredClass.NotrequiredNotnullableDatetimePropOption.IsSet) + writer.WriteString("notrequired_notnullable_datetime_prop", requiredClass.NotrequiredNotnullableDatetimePropOption.Value.Value.ToString(NotrequiredNotnullableDatetimePropFormat)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer", RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOption.Value.Value)); + if (requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.IsSet) + writer.WriteNumber("notrequired_notnullable_enum_integer_only", RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumIntegerOnlyOption.Value.Value)); + var notrequiredNotnullableEnumStringRawValue = RequiredClass.NotrequiredNotnullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNotnullableEnumStringOption.Value.Value); writer.WriteString("notrequired_notnullable_enum_string", notrequiredNotnullableEnumStringRawValue); if (requiredClass.NotrequiredNotnullableOuterEnumDefaultValueOption.IsSet) { var notrequiredNotnullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.NotrequiredNotnullableOuterEnumDefaultValue.Value); writer.WriteString("notrequired_notnullable_outerEnumDefaultValue", notrequiredNotnullableOuterEnumDefaultValueRawValue); } - if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) - writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); - - if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) - writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); - - if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) + if (requiredClass.NotrequiredNotnullableStringPropOption.IsSet) + writer.WriteString("notrequired_notnullable_string_prop", requiredClass.NotrequiredNotnullableStringProp); + if (requiredClass.NotrequiredNotnullableUuidOption.IsSet) + writer.WriteString("notrequired_notnullable_uuid", requiredClass.NotrequiredNotnullableUuidOption.Value.Value); + if (requiredClass.NotrequiredNullableArrayOfStringOption.IsSet) if (requiredClass.NotrequiredNullableArrayOfStringOption.Value != null) { writer.WritePropertyName("notrequired_nullable_array_of_string"); @@ -2260,31 +2227,27 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_array_of_string"); - if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) - if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) - writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_boolean_prop"); - - if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) - if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) - writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); - else - writer.WriteNull("notrequired_nullable_datetime_prop"); - - if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer"); - - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) - if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) - writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); - else - writer.WriteNull("notrequired_nullable_enum_integer_only"); - - var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); + if (requiredClass.NotrequiredNullableBooleanPropOption.IsSet) + if (requiredClass.NotrequiredNullableBooleanPropOption.Value != null) + writer.WriteBoolean("notrequired_nullable_boolean_prop", requiredClass.NotrequiredNullableBooleanPropOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_boolean_prop"); + if (requiredClass.NotrequiredNullableDatetimePropOption.IsSet) + if (requiredClass.NotrequiredNullableDatetimePropOption.Value != null) + writer.WriteString("notrequired_nullable_datetime_prop", requiredClass.NotrequiredNullableDatetimePropOption.Value.Value.ToString(NotrequiredNullableDatetimePropFormat)); + else + writer.WriteNull("notrequired_nullable_datetime_prop"); + if (requiredClass.NotrequiredNullableEnumIntegerOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer", RequiredClass.NotrequiredNullableEnumIntegerEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer"); + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.IsSet) + if (requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value != null) + writer.WriteNumber("notrequired_nullable_enum_integer_only", RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.NotrequiredNullableEnumIntegerOnlyOption.Value.Value)); + else + writer.WriteNull("notrequired_nullable_enum_integer_only"); + var notrequiredNullableEnumStringRawValue = RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClass.NotrequiredNullableEnumStringOption.Value.Value); if (notrequiredNullableEnumStringRawValue != null) writer.WriteString("notrequired_nullable_enum_string", notrequiredNullableEnumStringRawValue); else @@ -2298,19 +2261,17 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } else writer.WriteNull("notrequired_nullable_outerEnumDefaultValue"); - if (requiredClass.NotrequiredNullableStringPropOption.IsSet) - if (requiredClass.NotrequiredNullableStringPropOption.Value != null) - writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); - else - writer.WriteNull("notrequired_nullable_string_prop"); - - if (requiredClass.NotrequiredNullableUuidOption.IsSet) - if (requiredClass.NotrequiredNullableUuidOption.Value != null) - writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); - else - writer.WriteNull("notrequired_nullable_uuid"); - - if (requiredClass.RequiredNullableArrayOfString != null) + if (requiredClass.NotrequiredNullableStringPropOption.IsSet) + if (requiredClass.NotrequiredNullableStringPropOption.Value != null) + writer.WriteString("notrequired_nullable_string_prop", requiredClass.NotrequiredNullableStringProp); + else + writer.WriteNull("notrequired_nullable_string_prop"); + if (requiredClass.NotrequiredNullableUuidOption.IsSet) + if (requiredClass.NotrequiredNullableUuidOption.Value != null) + writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value); + else + writer.WriteNull("notrequired_nullable_uuid"); + if (requiredClass.RequiredNullableArrayOfString != null) { writer.WritePropertyName("required_nullable_array_of_string"); JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions); @@ -2318,42 +2279,36 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, else writer.WriteNull("required_nullable_array_of_string"); if (requiredClass.RequiredNullableBooleanProp != null) - writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); - else - writer.WriteNull("required_nullable_boolean_prop"); - - if (requiredClass.RequiredNullableDateProp != null) - writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); - else - writer.WriteNull("required_nullable_date_prop"); - - if (requiredClass.RequiredNullableDatetimeProp != null) - writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); - else - writer.WriteNull("required_nullable_datetime_prop"); - - if (requiredClass.RequiredNullableEnumInteger != null) - writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); - else - writer.WriteNull("required_nullable_enum_integer"); - - if (requiredClass.RequiredNullableEnumIntegerOnly != null) - writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); - else - writer.WriteNull("required_nullable_enum_integer_only"); - - var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); + writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value); + else + writer.WriteNull("required_nullable_boolean_prop"); + if (requiredClass.RequiredNullableDateProp != null) + writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat)); + else + writer.WriteNull("required_nullable_date_prop"); + if (requiredClass.RequiredNullableDatetimeProp != null) + writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat)); + else + writer.WriteNull("required_nullable_datetime_prop"); + if (requiredClass.RequiredNullableEnumInteger != null) + writer.WriteNumber("required_nullable_enum_integer", RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClass.RequiredNullableEnumInteger.Value)); + else + writer.WriteNull("required_nullable_enum_integer"); + if (requiredClass.RequiredNullableEnumIntegerOnly != null) + writer.WriteNumber("required_nullable_enum_integer_only", RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value)); + else + writer.WriteNull("required_nullable_enum_integer_only"); + var requiredNullableEnumStringRawValue = RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClass.RequiredNullableEnumString.Value); if (requiredNullableEnumStringRawValue != null) writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue); else writer.WriteNull("required_nullable_enum_string"); if (requiredClass.RequiredNullableIntegerProp != null) - writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); - else - writer.WriteNull("required_nullable_integer_prop"); - - if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) + writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value); + else + writer.WriteNull("required_nullable_integer_prop"); + if (requiredClass.RequiredNullableOuterEnumDefaultValue == null) writer.WriteNull("required_nullable_outerEnumDefaultValue"); else { @@ -2365,14 +2320,13 @@ public void WriteProperties(Utf8JsonWriter writer, RequiredClass requiredClass, } if (requiredClass.RequiredNullableStringProp != null) - writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); - else - writer.WriteNull("required_nullable_string_prop"); - - if (requiredClass.RequiredNullableUuid != null) - writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); - else - writer.WriteNull("required_nullable_uuid"); + writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp); + else + writer.WriteNull("required_nullable_string_prop"); + if (requiredClass.RequiredNullableUuid != null) + writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value); + else + writer.WriteNull("required_nullable_uuid"); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..031648b131a9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -7,7 +7,6 @@ * 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; @@ -117,9 +116,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -229,18 +226,15 @@ public void WriteProperties(Utf8JsonWriter writer, Return varReturn, JsonSeriali if (varReturn.UnsafeOption.IsSet && varReturn.Unsafe == null) throw new ArgumentNullException(nameof(varReturn.Unsafe), "Property is required for class Return."); - writer.WriteString("lock", varReturn.Lock); - - if (varReturn.Abstract != null) - writer.WriteString("abstract", varReturn.Abstract); - else - writer.WriteNull("abstract"); - - if (varReturn.VarReturnOption.IsSet) - writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); - - if (varReturn.UnsafeOption.IsSet) - writer.WriteString("unsafe", varReturn.Unsafe); + writer.WriteString("lock", varReturn.Lock); + if (varReturn.Abstract != null) + writer.WriteString("abstract", varReturn.Abstract); + else + writer.WriteNull("abstract"); + if (varReturn.VarReturnOption.IsSet) + writer.WriteNumber("return", varReturn.VarReturnOption.Value.Value); + if (varReturn.UnsafeOption.IsSet) + writer.WriteString("unsafe", varReturn.Unsafe); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..3505a0f0ecfa 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -197,8 +194,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHash rolesReports writer.WritePropertyName("role"); JsonSerializer.Serialize(writer, rolesReportsHash.Role, jsonSerializerOptions); } - if (rolesReportsHash.RoleUuidOption.IsSet) - writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); + if (rolesReportsHash.RoleUuidOption.IsSet) + writer.WriteString("role_uuid", rolesReportsHash.RoleUuidOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..8b7c60dbfd1b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, RolesReportsHashRole rolesRep if (rolesReportsHashRole.NameOption.IsSet && rolesReportsHashRole.Name == null) throw new ArgumentNullException(nameof(rolesReportsHashRole.Name), "Property is required for class RolesReportsHashRole."); - if (rolesReportsHashRole.NameOption.IsSet) - writer.WriteString("name", rolesReportsHashRole.Name); + if (rolesReportsHashRole.NameOption.IsSet) + writer.WriteString("name", rolesReportsHashRole.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..0de13eec2fb5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, ScaleneTriangle scaleneTriang if (scaleneTriangle.TriangleType == null) throw new ArgumentNullException(nameof(scaleneTriangle.TriangleType), "Property is required for class ScaleneTriangle."); - writer.WriteString("shapeType", scaleneTriangle.ShapeType); - - writer.WriteString("triangleType", scaleneTriangle.TriangleType); + writer.WriteString("shapeType", scaleneTriangle.ShapeType); + writer.WriteString("triangleType", scaleneTriangle.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..90c0ee7ddeb8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..e57f6dc449e4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, ShapeInterface shapeInterface if (shapeInterface.ShapeType == null) throw new ArgumentNullException(nameof(shapeInterface.ShapeType), "Property is required for class ShapeInterface."); - writer.WriteString("shapeType", shapeInterface.ShapeType); + writer.WriteString("shapeType", shapeInterface.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..54354c9536c4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -7,7 +7,6 @@ * 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; @@ -98,9 +97,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..487a20689f33 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -7,7 +7,6 @@ * 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; @@ -85,9 +84,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -185,9 +182,8 @@ public void WriteProperties(Utf8JsonWriter writer, SimpleQuadrilateral simpleQua if (simpleQuadrilateral.ShapeType == null) throw new ArgumentNullException(nameof(simpleQuadrilateral.ShapeType), "Property is required for class SimpleQuadrilateral."); - writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); - - writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); + writer.WriteString("quadrilateralType", simpleQuadrilateral.QuadrilateralType); + writer.WriteString("shapeType", simpleQuadrilateral.ShapeType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..c6abc777133f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, SpecialModelName specialModel if (specialModelName.VarSpecialModelNameOption.IsSet && specialModelName.VarSpecialModelName == null) throw new ArgumentNullException(nameof(specialModelName.VarSpecialModelName), "Property is required for class SpecialModelName."); - if (specialModelName.VarSpecialModelNameOption.IsSet) - writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); - - if (specialModelName.SpecialPropertyNameOption.IsSet) - writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); + if (specialModelName.VarSpecialModelNameOption.IsSet) + writer.WriteString("_special_model.name_", specialModelName.VarSpecialModelName); + if (specialModelName.SpecialPropertyNameOption.IsSet) + writer.WriteNumber("$special[property.name]", specialModelName.SpecialPropertyNameOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..043704287724 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -7,7 +7,6 @@ * 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; @@ -99,9 +98,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -191,11 +188,10 @@ public void WriteProperties(Utf8JsonWriter writer, Tag tag, JsonSerializerOption if (tag.NameOption.IsSet && tag.Name == null) throw new ArgumentNullException(nameof(tag.Name), "Property is required for class Tag."); - if (tag.IdOption.IsSet) - writer.WriteNumber("id", tag.IdOption.Value.Value); - - if (tag.NameOption.IsSet) - writer.WriteString("name", tag.Name); + if (tag.IdOption.IsSet) + writer.WriteNumber("id", tag.IdOption.Value.Value); + if (tag.NameOption.IsSet) + writer.WriteString("name", tag.Name); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..e51918c7a305 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestCollectionEndingWithWordL if (testCollectionEndingWithWordList.ValueOption.IsSet && testCollectionEndingWithWordList.Value == null) throw new ArgumentNullException(nameof(testCollectionEndingWithWordList.Value), "Property is required for class TestCollectionEndingWithWordList."); - if (testCollectionEndingWithWordList.ValueOption.IsSet) - writer.WriteString("value", testCollectionEndingWithWordList.Value); + if (testCollectionEndingWithWordList.ValueOption.IsSet) + writer.WriteString("value", testCollectionEndingWithWordList.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..4743b09271dc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..13c411093c35 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -7,7 +7,6 @@ * 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; @@ -83,9 +82,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -167,8 +164,8 @@ public void WriteProperties(Utf8JsonWriter writer, TestInlineFreeformAdditionalP if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet && testInlineFreeformAdditionalPropertiesRequest.SomeProperty == null) throw new ArgumentNullException(nameof(testInlineFreeformAdditionalPropertiesRequest.SomeProperty), "Property is required for class TestInlineFreeformAdditionalPropertiesRequest."); - if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) - writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); + if (testInlineFreeformAdditionalPropertiesRequest.SomePropertyOption.IsSet) + writer.WriteString("someProperty", testInlineFreeformAdditionalPropertiesRequest.SomeProperty); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..b38208d0f98c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -7,7 +7,6 @@ * 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; @@ -113,9 +112,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..ee9a25dd35ae 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -7,7 +7,6 @@ * 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; @@ -76,9 +75,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -163,7 +160,7 @@ public void WriteProperties(Utf8JsonWriter writer, TriangleInterface triangleInt if (triangleInterface.TriangleType == null) throw new ArgumentNullException(nameof(triangleInterface.TriangleType), "Property is required for class TriangleInterface."); - writer.WriteString("triangleType", triangleInterface.TriangleType); + writer.WriteString("triangleType", triangleInterface.TriangleType); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..f92a3edc061f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -7,7 +7,6 @@ * 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; @@ -264,9 +263,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -456,19 +453,15 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("anyTypePropNullable"); - if (user.EmailOption.IsSet) - writer.WriteString("email", user.Email); - - if (user.FirstNameOption.IsSet) - writer.WriteString("firstName", user.FirstName); - - if (user.IdOption.IsSet) - writer.WriteNumber("id", user.IdOption.Value.Value); - - if (user.LastNameOption.IsSet) - writer.WriteString("lastName", user.LastName); - - if (user.ObjectWithNoDeclaredPropsOption.IsSet) + if (user.EmailOption.IsSet) + writer.WriteString("email", user.Email); + if (user.FirstNameOption.IsSet) + writer.WriteString("firstName", user.FirstName); + if (user.IdOption.IsSet) + writer.WriteNumber("id", user.IdOption.Value.Value); + if (user.LastNameOption.IsSet) + writer.WriteString("lastName", user.LastName); + if (user.ObjectWithNoDeclaredPropsOption.IsSet) { writer.WritePropertyName("objectWithNoDeclaredProps"); JsonSerializer.Serialize(writer, user.ObjectWithNoDeclaredProps, jsonSerializerOptions); @@ -481,17 +474,14 @@ public void WriteProperties(Utf8JsonWriter writer, User user, JsonSerializerOpti } else writer.WriteNull("objectWithNoDeclaredPropsNullable"); - if (user.PasswordOption.IsSet) - writer.WriteString("password", user.Password); - - if (user.PhoneOption.IsSet) - writer.WriteString("phone", user.Phone); - - if (user.UserStatusOption.IsSet) - writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); - - if (user.UsernameOption.IsSet) - writer.WriteString("username", user.Username); + if (user.PasswordOption.IsSet) + writer.WriteString("password", user.Password); + if (user.PhoneOption.IsSet) + writer.WriteString("phone", user.Phone); + if (user.UserStatusOption.IsSet) + writer.WriteNumber("userStatus", user.UserStatusOption.Value.Value); + if (user.UsernameOption.IsSet) + writer.WriteString("username", user.Username); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..156753c72517 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -7,7 +7,6 @@ * 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; @@ -108,9 +107,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -211,13 +208,11 @@ public void WriteProperties(Utf8JsonWriter writer, Whale whale, JsonSerializerOp if (whale.ClassName == null) throw new ArgumentNullException(nameof(whale.ClassName), "Property is required for class Whale."); - writer.WriteString("className", whale.ClassName); - - if (whale.HasBaleenOption.IsSet) - writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); - - if (whale.HasTeethOption.IsSet) - writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); + writer.WriteString("className", whale.ClassName); + if (whale.HasBaleenOption.IsSet) + writer.WriteBoolean("hasBaleen", whale.HasBaleenOption.Value.Value); + if (whale.HasTeethOption.IsSet) + writer.WriteBoolean("hasTeeth", whale.HasTeethOption.Value.Value); } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..798ed23c9b10 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -7,7 +7,6 @@ * 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; @@ -123,7 +122,6 @@ public static string TypeEnumToJsonValue(TypeEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of Type /// @@ -172,9 +170,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// @@ -268,9 +264,8 @@ public void WriteProperties(Utf8JsonWriter writer, Zebra zebra, JsonSerializerOp if (zebra.ClassName == null) throw new ArgumentNullException(nameof(zebra.ClassName), "Property is required for class Zebra."); - writer.WriteString("className", zebra.ClassName); - - var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); + writer.WriteString("className", zebra.ClassName); + var typeRawValue = Zebra.TypeEnumToJsonValue(zebra.TypeOption.Value.Value); writer.WriteString("type", typeRawValue); } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs index 34a044fb8b13..e290a4733f04 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnum.cs @@ -7,7 +7,6 @@ * 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; diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..ea1af5c7ee4a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -7,7 +7,6 @@ * 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; @@ -107,7 +106,6 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) throw new NotImplementedException($"Value could not be handled: '{value}'"); } - /// /// Used to track the state of ZeroBasedEnum /// @@ -149,9 +147,7 @@ public override string ToString() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } - + } } /// /// A Json converter for type /// diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index b56f68815057..0ae2ce9b28c1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index cf1bbf23cea8..069043115860 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 7db32a24579e..d1ae4ffdbefc 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -219,7 +219,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 80bf3adb7aa7..59b3f0f27174 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -168,7 +168,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 296753574edc..ab153d686d38 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -150,7 +150,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 546300d9857d..3e8ad87ff5d8 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -154,33 +154,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 85ba742ea8ed..cbdd7c54209f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -135,7 +135,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 158143cec188..693aa5f7963d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index a103c5b9f766..76cbe71302e4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 521f6e10d68d..0715bc971aaf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -153,7 +153,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 55a7b982dfdf..e71a2db8d597 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 7afbe08ac126..1b3d1ab52d08 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index dd5b5d07b0a3..79d78f87ed58 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 10031dc7568d..b9bc7a33b8c9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -193,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index cec47afe1f2a..747b2a02b4ff 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -151,7 +151,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 0057441d8857..541ceba4a720 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -150,7 +150,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 96a00c78f2fa..372b2eeb7823 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -48,7 +48,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -175,7 +174,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 36b14908818a..583033596975 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 1cef53d2c8a9..11501d56d84d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -158,7 +158,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 5a777565eb38..da016ed81c37 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index ca4eca7e1b1b..31e14e6aba33 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -131,7 +131,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index e6791fbe07a8..f6136e706f3d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index ffd89a5334ec..d967fe70df04 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -154,7 +154,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 73b84634c4dd..25047c39e16a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -166,7 +166,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index ad688b4d11b4..7b7aca74ddfd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -52,7 +52,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -76,7 +75,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -175,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 3309623635ca..9098bf747063 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -88,7 +88,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -149,7 +148,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -171,7 +169,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -193,7 +190,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -218,7 +214,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -373,7 +368,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 1972d8ba56b9..0a5840306d93 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -158,7 +158,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index ca5877d2f8ee..3c1fd9ff019c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -128,7 +128,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 2e37282c600b..070bac4a4a28 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 10c97e7ed29c..14dc0695a8f7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -128,7 +128,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 2619543bb533..f8edfb4ba99f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 81da66d122d5..fd5354828d4a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -524,11 +524,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -545,33 +545,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index ff2b810c6443..7451a8f54e02 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -154,7 +154,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 8ac3489e8b7a..135247d5d58e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -153,7 +153,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index fc344e4373f9..271e43b1c94c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 2bcb331dedda..5acfeee72661 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -143,7 +143,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index b84038f9fcf5..3bc1026e0e19 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index db0dc595908e..0877a83364dd 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 5255a249aba3..5e571a8dc28a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -51,7 +51,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -185,7 +184,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 31e0e4e46e3a..f2bacdff8726 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -537,7 +537,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 889b927982c6..ee95141de3b4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 576cb29d578d..9e08ec8a1faf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 254ccb20d125..5dd6f7354339 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -167,15 +167,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index a644d2744809..21808babf9a9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 34aee45d4c8c..1c428ae4a4ae 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 2523c65536f3..2dfeb5e76bb4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index 47c0de878119..efac9157f07e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -177,7 +177,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index a08db8b6648e..0d566c047e87 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -150,7 +150,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 8508046165fa..98c9ee8ebe69 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -271,7 +271,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 902534848bb4..09c94dad0856 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -130,7 +130,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index a287358b015c..dcbeb0ed5951 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index db530572625a..a64043450f0c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -166,7 +166,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 3f9806f04db7..a4a03e0d5f0e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -59,7 +59,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -207,7 +206,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 91a61870eea7..912c2008d183 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -147,7 +147,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 98e7574e092e..c17f51228b02 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -141,7 +141,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e35abdf6a86c..417c9f46309e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -59,7 +59,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -234,7 +233,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 8e87f3b369fe..f44c42f4bd0d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 8fd8dcd0dce9..2138cbcf19b6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -146,7 +146,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d8c4bd8a3994..739378c2d66a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -49,7 +49,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -71,7 +70,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -93,7 +91,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -115,7 +112,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -138,7 +134,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -160,7 +155,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -183,7 +177,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -205,7 +198,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -266,7 +258,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -327,7 +318,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -388,7 +378,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -449,7 +438,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1045,7 +1033,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a9590cc8f40..dee7a659aa10 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -181,7 +181,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 43f205a0529d..6ce9b5abecc2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 217f538e0a90..4f14ac0b2718 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index be7027373c76..6fb622e146d3 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -158,7 +158,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 41366a1d82dd..8a1699ab908f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index f775230a9b19..b61dede31dbf 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -158,7 +158,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index e1e27974a67b..83b9e6656ed2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index ab8f5e0db099..30a7fdbe2d82 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index ca1cb65fcb24..2e0b710e84b9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index b5a65aac0252..56c3d156fc20 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 7b15b1340456..13200a8dd785 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index acdf3e8a0505..1910f38ee367 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index 2356f9020cc8..810f9526f741 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -269,7 +269,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1a6e079fdab0..24e6b5a83cad 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -160,7 +160,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 08064bb5591c..621cc6128b68 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -58,7 +58,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -175,7 +174,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 3dbc0012d591..12db3efac372 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -52,7 +52,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -143,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs index ef964fd4e870..7b68ccc683c4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs index 663e49f1b1c1..5aa5568d6c5c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs @@ -125,15 +125,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Name != null) { // Name (string) pattern - Regex regexName = new Regex(@"^[a-zA-Z0-9]+[a-zA-Z0-9\.\-_]*[a-zA-Z0-9]+$", RegexOptions.CultureInvariant); - if (!regexName.Match(this.Name).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" }); - } + Regex regexName = new Regex(@"^[a-zA-Z0-9]+[a-zA-Z0-9\.\-_]*[a-zA-Z0-9]+$", RegexOptions.CultureInvariant); + if (!regexName.Match(this.Name).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs index 4c049227f843..e21d34fe338e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -191,7 +190,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs index 08848e98cd42..1b94dc012a79 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -219,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs index 8ac7c07be0ac..d309b785de0d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs index 91ba71b2274c..75a30bdfbafe 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs @@ -200,7 +200,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 08a39249cb82..0c0a10d120cf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbb..1388dc82bbcf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607e..c296886c660b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -218,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 9ddb56ebad6c..e8c545d822aa 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..3ab53cc60198 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df6..a1d1834a8bae 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -153,33 +153,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..78427b2e9375 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..9dae2a7d4a20 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..590c4e3e7163 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..1a44ea876eac 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..73f4cd9f8ac0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..c54010eae0de 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 868cba98eeea..28bf73514763 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c..6fac1534967f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -192,7 +192,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..69aa71c7fc76 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -150,7 +150,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..13ce2962d16f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index a5d404bd17d6..42b9f7f07993 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -174,7 +173,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e1..9b0b610f9d15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index bbed21283745..9eb426e66945 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 3c81f50d00d7..31d3b1edf6f5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 08b01706cabe..2954234819f3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -130,7 +130,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f..66c1a80c991c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 44f95fa0fe05..5f6cee370c48 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -153,7 +153,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..137227fdbc50 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 2bec93345bb7..888474fa577d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -75,7 +74,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -174,7 +172,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..501419135173 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -148,7 +147,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -170,7 +168,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -192,7 +189,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -217,7 +213,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -372,7 +367,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 7fb0e2094548..9c785e420f75 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index 72b34e492626..272c8ee06277 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a925..c2f2981f1269 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3108c8a86913..5768036d6ee8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee..23adbc90a2c9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd273..e376d5a0e76f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -437,11 +437,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -458,33 +458,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 75285a73f6ca..6d16feb8ce85 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..d802fad7d28e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe074907762..4ce9b6c31e33 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index acf86063d050..041ae44fa66c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index e06a3f381f12..e74e48172720 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 57cc8110fbb8..9f01beb08b7f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -141,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..9b12ff30b413 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -184,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d5975478..6b1ed252df58 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b86..207015b15fd0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..6ec9f15aa946 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -166,15 +166,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b2709..d6d05a763d60 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..a6b47c1db7a3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 690894994947..f41f93a196af 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..27329dafc0ad 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -176,7 +176,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 3fbd6e83ef29..471f49833f7f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 6e4a6ef50e7b..5ff9462225cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -270,7 +270,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0e64144119b..99f632f5ce03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..680f65bb5eb7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..956a6037e28e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe04..14455027ef75 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -206,7 +205,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..2f8e9fa96b30 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -146,7 +146,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 7a7421349903..5959bb6c5543 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -140,7 +140,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc889..6aca1d79bd40 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -233,7 +232,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3a364f98c1e2..0ef627d8f798 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0..2347c52d3c22 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -145,7 +145,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2cdb7ee01483 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -70,7 +69,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -92,7 +90,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -114,7 +111,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -137,7 +133,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -159,7 +154,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -182,7 +176,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -204,7 +197,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -265,7 +257,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -326,7 +317,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -387,7 +377,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -448,7 +437,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1044,7 +1032,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..1a9e51bb1f91 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..b5963401bc77 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f38..fb1494c5d226 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 1510bd5c512d..3bab0215b6af 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 9f8b4dd35b35..0fc8b175603c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 266dcfee794c..5201086798b8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..82560aecb92c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..a16ae7bb2243 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7..da2128eb2fd9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 8498a5eca78f..3c966ddd217a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..1b29845a039b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 34fa15105dca..19416f56f423 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..2970dd6a428b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -268,7 +268,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..60a3a44fb3c7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -159,7 +159,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 314fae589fc5..66d3e6477268 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -174,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 617dcd5f7a09..a5d128e49dc8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -142,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 08a39249cb82..0c0a10d120cf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbb..1388dc82bbcf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607e..c296886c660b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -218,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 9ddb56ebad6c..e8c545d822aa 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..3ab53cc60198 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df6..a1d1834a8bae 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -153,33 +153,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..78427b2e9375 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..9dae2a7d4a20 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..590c4e3e7163 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..1a44ea876eac 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..73f4cd9f8ac0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..c54010eae0de 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 868cba98eeea..28bf73514763 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c..6fac1534967f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -192,7 +192,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..69aa71c7fc76 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -150,7 +150,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..13ce2962d16f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index a5d404bd17d6..42b9f7f07993 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -174,7 +173,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e1..9b0b610f9d15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index bbed21283745..9eb426e66945 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 3c81f50d00d7..31d3b1edf6f5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 08b01706cabe..2954234819f3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -130,7 +130,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f..66c1a80c991c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 44f95fa0fe05..5f6cee370c48 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -153,7 +153,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..137227fdbc50 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 2bec93345bb7..888474fa577d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -75,7 +74,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -174,7 +172,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..501419135173 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -148,7 +147,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -170,7 +168,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -192,7 +189,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -217,7 +213,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -372,7 +367,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 7fb0e2094548..9c785e420f75 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index 72b34e492626..272c8ee06277 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a925..c2f2981f1269 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3108c8a86913..5768036d6ee8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee..23adbc90a2c9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd273..e376d5a0e76f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -437,11 +437,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -458,33 +458,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 75285a73f6ca..6d16feb8ce85 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..d802fad7d28e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe074907762..4ce9b6c31e33 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index acf86063d050..041ae44fa66c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index e06a3f381f12..e74e48172720 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 57cc8110fbb8..9f01beb08b7f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -141,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..9b12ff30b413 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -184,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d5975478..6b1ed252df58 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b86..207015b15fd0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..6ec9f15aa946 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -166,15 +166,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b2709..d6d05a763d60 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..a6b47c1db7a3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 690894994947..f41f93a196af 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..27329dafc0ad 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -176,7 +176,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 3fbd6e83ef29..471f49833f7f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 6e4a6ef50e7b..5ff9462225cd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -270,7 +270,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0e64144119b..99f632f5ce03 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..680f65bb5eb7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..956a6037e28e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe04..14455027ef75 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -206,7 +205,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..2f8e9fa96b30 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -146,7 +146,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 7a7421349903..5959bb6c5543 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -140,7 +140,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc889..6aca1d79bd40 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -233,7 +232,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3a364f98c1e2..0ef627d8f798 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0..2347c52d3c22 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -145,7 +145,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2cdb7ee01483 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -70,7 +69,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -92,7 +90,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -114,7 +111,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -137,7 +133,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -159,7 +154,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -182,7 +176,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -204,7 +197,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -265,7 +257,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -326,7 +317,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -387,7 +377,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -448,7 +437,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1044,7 +1032,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..1a9e51bb1f91 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..b5963401bc77 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f38..fb1494c5d226 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 1510bd5c512d..3bab0215b6af 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 9f8b4dd35b35..0fc8b175603c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 266dcfee794c..5201086798b8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..82560aecb92c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..a16ae7bb2243 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7..da2128eb2fd9 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 8498a5eca78f..3c966ddd217a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..1b29845a039b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 34fa15105dca..19416f56f423 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..2970dd6a428b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -268,7 +268,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..60a3a44fb3c7 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -159,7 +159,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 314fae589fc5..66d3e6477268 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -174,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 617dcd5f7a09..a5d128e49dc8 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -142,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs index ea3d938c159a..30b9690d0938 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs @@ -122,7 +122,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs index 597e015588f8..46ed1b9e9e50 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs @@ -176,7 +176,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Activity.cs index 08a39249cb82..0c0a10d120cf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Activity.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbb..1388dc82bbcf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607e..c296886c660b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -218,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Animal.cs index 9ddb56ebad6c..e8c545d822aa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Animal.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..3ab53cc60198 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df6..a1d1834a8bae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs @@ -153,33 +153,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..78427b2e9375 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..9dae2a7d4a20 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..590c4e3e7163 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..1a44ea876eac 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..73f4cd9f8ac0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..c54010eae0de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BasquePig.cs index 868cba98eeea..28bf73514763 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BasquePig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c..6fac1534967f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs @@ -192,7 +192,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..69aa71c7fc76 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs @@ -150,7 +150,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..13ce2962d16f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs index a5d404bd17d6..42b9f7f07993 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -174,7 +173,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e1..9b0b610f9d15 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index bbed21283745..9eb426e66945 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DanishPig.cs index 3c81f50d00d7..31d3b1edf6f5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DanishPig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs index b260c723ba6b..789f2a726a59 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f..66c1a80c991c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs index 44f95fa0fe05..5f6cee370c48 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs @@ -153,7 +153,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..137227fdbc50 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumArrays.cs index 2bec93345bb7..888474fa577d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -75,7 +74,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -174,7 +172,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..501419135173 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -148,7 +147,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -170,7 +168,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -192,7 +189,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -217,7 +213,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -372,7 +367,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 7fb0e2094548..9c785e420f75 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs index 72b34e492626..272c8ee06277 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a925..c2f2981f1269 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Foo.cs index 3108c8a86913..5768036d6ee8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Foo.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee..23adbc90a2c9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs index 59c8975b9295..7d4b009ed273 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs @@ -436,11 +436,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -457,33 +457,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 75285a73f6ca..6d16feb8ce85 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..d802fad7d28e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe074907762..4ce9b6c31e33 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index acf86063d050..041ae44fa66c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs index e06a3f381f12..e74e48172720 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 57cc8110fbb8..9f01beb08b7f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -141,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..9b12ff30b413 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -184,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d5975478..6b1ed252df58 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b86..207015b15fd0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..6ec9f15aa946 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -166,15 +166,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b2709..d6d05a763d60 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..a6b47c1db7a3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs index 690894994947..f41f93a196af 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..27329dafc0ad 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs @@ -176,7 +176,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 3fbd6e83ef29..471f49833f7f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e4303..08b2be090512 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs @@ -269,7 +269,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0e64144119b..99f632f5ce03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..680f65bb5eb7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..956a6037e28e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs index cc1ac17c1835..1e671ded3553 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Shipped = 3 } - /// /// Order Status /// @@ -206,7 +205,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..2f8e9fa96b30 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -146,7 +146,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ParentPet.cs index 7a7421349903..5959bb6c5543 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ParentPet.cs @@ -140,7 +140,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc889..6aca1d79bd40 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -233,7 +232,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3a364f98c1e2..0ef627d8f798 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0..2347c52d3c22 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -145,7 +145,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs index 76ce29ff67e1..5fa4ab8eafc3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -70,7 +69,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -92,7 +90,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -114,7 +111,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -137,7 +133,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -159,7 +154,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -182,7 +176,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -204,7 +197,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -265,7 +257,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -326,7 +317,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -387,7 +377,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -448,7 +437,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1040,7 +1028,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..1a9e51bb1f91 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..b5963401bc77 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f38..fb1494c5d226 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 1510bd5c512d..3bab0215b6af 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ShapeInterface.cs index 9f8b4dd35b35..0fc8b175603c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 266dcfee794c..5201086798b8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..82560aecb92c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..a16ae7bb2243 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7..da2128eb2fd9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 8498a5eca78f..3c966ddd217a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..1b29845a039b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TriangleInterface.cs index 34fa15105dca..19416f56f423 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs index b7911507a704..2970dd6a428b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs @@ -268,7 +268,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..60a3a44fb3c7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs @@ -159,7 +159,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Zebra.cs index 314fae589fc5..66d3e6477268 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -174,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 617dcd5f7a09..a5d128e49dc8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -142,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 0c81e65fdc1e..0a16ca8f5c1e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 61656615b137..8add03549e25 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 6f73dd2a107e..53a2c08bfe53 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -206,7 +206,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index e19658cee189..e079c014f56f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -152,7 +152,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index b11aff203a77..db89fae193e6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -137,7 +137,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 5d0bdb98c302..25aeeb06cb13 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -141,33 +141,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..78427b2e9375 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index b75b0792d613..1f83927012a8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index e3a0602189b0..9112287e890b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 02ead047372b..7498f4c06d68 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index dffda1bedc28..d28fa94704b4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -111,7 +111,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..c54010eae0de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index f362ad71dd04..b3e6b7c5bad1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 78a9791fcd6f..5d150e42a9f5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -180,7 +180,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 8bec3551ae9f..11465ce6b4ff 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -135,7 +135,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 85ea41da1a6c..d7a77fb615df 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index dada42c5f3f6..5a0c8677f240 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -159,7 +158,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index f8060109b1a7..24e83c137df3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index e399bfda5665..cd3122a75d50 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 686dab1558ed..66b379b6fc1d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f66839f5b4f0..4eb1f4edd9fd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -117,7 +117,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index a852e8c459a1..b2b5f5771c0b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index e2339cfb20bf..6e25ecb4f227 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,7 +138,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..137227fdbc50 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 55dab0b979fe..b8e72d764e4c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -75,7 +74,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -162,7 +160,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bf17521990cd..bb07c377611d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -148,7 +147,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -170,7 +168,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -192,7 +189,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -217,7 +213,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -357,7 +352,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 738f9450e1d2..12d7860462d7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs index 328601f24b6c..9b1a06736f9d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -115,7 +115,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d3f9f7cba774..e33442c2aa50 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 9691b4848101..5557d2d2460b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -115,7 +115,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 3069deb125e7..6071e726f8e9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index fc3472412e57..5fc4d020d939 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -507,11 +507,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -528,33 +528,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 369b95edbd12..d4fbd48a857a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -138,7 +138,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 712d33733e8d..5c82868ea5b4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -140,7 +140,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index ec05e7c4c85a..6bdbdda5be25 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index acf86063d050..041ae44fa66c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs index 67e6c5a616a1..aab7eb79a901 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 15b6f0eabba9..c870435170c3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 70075c576b1e..f8f7a515a3d7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -172,7 +171,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 6dbe8fdadda5..fbeb4c438b1d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -521,7 +521,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 9d7d88aea93f..6f3bd67cfcb9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2cb289fae178..c7c4a0891f73 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index f081d2819590..cff3fe43def4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -154,15 +154,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c56e0ada331a..862f876d885f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 11efe092a28b..2ce2e83be5cb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 7b75059cad1b..12c788ee5c1e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs index 2021a0066590..c1c009ecfb10 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -161,7 +161,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index e2e5ff34b2a7..a06a7bde8e55 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e4303..08b2be090512 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -269,7 +269,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index ecaa619b0e8f..e8142764edb6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -117,7 +117,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index f38cf7d6affe..dfef96f14002 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e2f9be14b2e6..20eb70ef6583 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -153,7 +153,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 54e252b2feb2..da22e30262d4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -194,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 1a8d974b060f..7e74df072d2a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 4d15a2a962f9..8ab8257b28ed 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -125,7 +125,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 51b091ba5106..6dcbcabc35b9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -218,7 +217,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index e0f4761e1915..9035655b4537 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 7551b621ebd8..92ab2b3ab6c6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -133,7 +133,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index ea386b3a0c54..f5a168a35489 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -70,7 +69,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -92,7 +90,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -114,7 +111,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -137,7 +133,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -159,7 +154,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -182,7 +176,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -204,7 +197,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -265,7 +257,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -326,7 +317,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -387,7 +377,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -448,7 +437,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1025,7 +1013,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 9d08c25bbd0f..51cc34261768 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ebe5562ffe67..dd3d218f2137 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 60e2f9e50c07..79f5bb69fcee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 03a8cd46f5ec..b51fd4e8da6a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index b850b88b4fce..d50caf18882c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index eebd8034750c..15c4c319fdbe 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 867d43acaf4c..5a80f62c94ca 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index a9dd75cb5cbd..643f58dbf07a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index bb23b1f52456..827753424a20 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 715365c48c06..55bc1e9e6ff8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -114,7 +114,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..1b29845a039b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index cb7847498ff7..777286624343 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -124,7 +124,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs index 0b1913457735..f4d6014d27a2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -256,7 +256,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index cd6eb8c0b1be..5a25ba1789d3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -144,7 +144,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 314fae589fc5..66d3e6477268 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -174,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7036e9fdc825..fa2ef8b981ae 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -130,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 84c9909059ab..43fe56405235 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -86,7 +86,6 @@ public virtual string ToJson() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Activity.cs index 3bcf6d5f664f..4f744d221c51 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Activity.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 2381b5f5ddcb..1513781e4482 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -183,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2cfd7dde8a82..e2012be20ead 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -394,7 +394,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Animal.cs index d87e72647001..e7eee22acfc0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Animal.cs @@ -201,7 +201,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs index 440c5810db56..6f0bcd80c35e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -215,7 +215,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Apple.cs index 1e7afc9dbb05..c23166a37d13 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Apple.cs @@ -219,33 +219,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs index 02fb11509662..0354261a6276 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs @@ -174,7 +174,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 02324a9b5349..68ba1f81f867 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f124f50a69d5..95aafd2ba7d3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs index b62c42c722ce..98851989b740 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -218,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs index cc328cf2d95e..1713d50e7459 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs index 163080fc7a5b..94a97fb8faf2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs @@ -166,7 +166,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BasquePig.cs index fa252d7c73c5..080871a87c08 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BasquePig.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Capitalization.cs index 5759368bc583..d55b90746330 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Capitalization.cs @@ -324,7 +324,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs index 2cbd436c91ea..0e2ce37155a6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs @@ -172,7 +172,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs index fb7f24b243f5..3453340d0b3d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs @@ -189,7 +189,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ChildCat.cs index ff34516f9e2d..2d4a50261c68 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -216,7 +215,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs index ed73f3d6e7fe..7f2056ed1527 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ClassModel.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index ba076494b12a..4170bb4299c8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -193,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DanishPig.cs index 206676774347..bb96905ba3e4 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DanishPig.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 30023ed7c1a2..82b3d49a91a5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DeprecatedObject.cs index c55a037d2016..1844e28d804c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Dog.cs index f18adc07b2b4..e82a86b1668d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Dog.cs @@ -175,7 +175,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Drawing.cs index 5792b78f7985..6e646f4c5223 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Drawing.cs @@ -253,7 +253,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumArrays.cs index 35222bdac3b2..afa9faf98f08 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -95,7 +94,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -220,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs index 8f0ea67b780f..060a3854f66d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -168,7 +167,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -210,7 +208,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -252,7 +249,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -297,7 +293,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -584,7 +579,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d248b913aadb..58f971a3be6a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -193,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/File.cs index bd9c895894d3..5adec91014c0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/File.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 71277521b4d5..1623bb20b8e2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -183,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Foo.cs index 7558351cafaa..86d8d98f1b34 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Foo.cs @@ -143,7 +143,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index a2d3d6cb223e..a28663e15692 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs index 4c576118fb1e..d2658b6ddb2f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs @@ -1035,11 +1035,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -1056,33 +1056,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 6208ebb4ca2b..aac354a6c94b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -171,7 +171,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..d802fad7d28e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HealthCheckResult.cs index cdcf9c79a897..20b3bcc95f0f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index bd9327423338..6af80b4cae71 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -178,7 +178,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs index 68363d5d71db..f94db54e9cd9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/List.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/LiteralStringClass.cs index aca243cc3c53..9e1a8d9199f7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -173,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs index f2f2f90a2f98..120b6dee5873 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -272,7 +271,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs index a698b135146d..1978102de9de 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs @@ -1208,7 +1208,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 11c452ea3a15..e8fc740f4243 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOf.cs index b1b6f56518c7..9dbad8076fb2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 63fbf7fba85f..5bbf29ef3ea9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -254,15 +254,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedSubId.cs index 917dee7e353b..b20e124779ec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs index 48815cd97300..9e3f1e856231 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs @@ -180,7 +180,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs index 1a51de5f744a..a86b33ca1519 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ModelClient.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs index 8fa808d911cd..e1ff2e4216b1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs @@ -216,7 +216,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 072a590b7793..d195a861c709 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -185,7 +185,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableClass.cs index 817623db2e39..48717d7c7600 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableClass.cs @@ -534,7 +534,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 5f49002717d0..24864001f5f3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -151,7 +151,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs index ce6120813dac..cd8e76a842b9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7f4945565272..2f91ed2abbca 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -253,7 +253,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs index df74883777de..b4345a3b0e63 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -335,7 +334,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs index 066dc26dbe15..1e1fcb96b2c6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -212,7 +212,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ParentPet.cs index 7a7421349903..5959bb6c5543 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ParentPet.cs @@ -140,7 +140,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs index 70938b71f8d8..45e8e2070a98 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -359,7 +358,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index f875a0c461b9..db879482b7e0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 76afb32b0d81..d5db49811bae 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -167,7 +167,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs index 2bad0ac611df..3455044a4ebe 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -90,7 +89,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -132,7 +130,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -174,7 +171,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -217,7 +213,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -259,7 +254,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -302,7 +296,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -344,7 +337,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -425,7 +417,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -506,7 +497,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -587,7 +577,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -668,7 +657,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1956,7 +1944,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs index e255b357996f..c795afc0d51d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs @@ -260,7 +260,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 39c65b7da193..029b1c277853 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -183,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 48d21628ea70..de0b47b6c373 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 4be5f3b852ba..8fc0de46fb07 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -193,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeInterface.cs index d0f237740cf3..d98cfa6578e1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index abb6ed2a1e23..3768deef8eed 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -193,7 +193,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0a0faf3cba34..9114c8a90a7d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -180,7 +180,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs index b631ebc96160..c84e606f998a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs @@ -180,7 +180,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 0ab53418b5d8..053308c5e26e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 29a0deb13ec7..e65c3eb05196 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 92995d8b5ca2..33894c714ff6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -148,7 +148,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TriangleInterface.cs index ee631710fb6b..2685128dc674 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs index 21c819cf09ac..c38341f2fa86 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs @@ -532,7 +532,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs index 24659725b63f..27cd30adc187 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs @@ -221,7 +221,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Zebra.cs index bb8efe4f45d5..4f23f1680745 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -216,7 +215,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 5d5ab2efcd31..d5a7dc558293 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -166,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 08a39249cb82..0c0a10d120cf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbb..1388dc82bbcf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607e..c296886c660b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -218,7 +218,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 9ddb56ebad6c..e8c545d822aa 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -167,7 +167,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..3ab53cc60198 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df6..a1d1834a8bae 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -153,33 +153,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.Cultivar != null) { // Cultivar (string) pattern - Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); - if (!regexCultivar.Match(this.Cultivar).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); - } + Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); + if (!regexCultivar.Match(this.Cultivar).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cultivar, must match a pattern of " + regexCultivar, new [] { "Cultivar" }); + } } if (this.Origin != null) { // Origin (string) pattern - Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexOrigin.Match(this.Origin).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); - } + Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexOrigin.Match(this.Origin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origin, must match a pattern of " + regexOrigin, new [] { "Origin" }); + } } if (this.ColorCode != null) { // ColorCode (string) pattern - Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); - if (!regexColorCode.Match(this.ColorCode).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); - } + Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); + if (!regexColorCode.Match(this.ColorCode).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ColorCode, must match a pattern of " + regexColorCode, new [] { "ColorCode" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..78427b2e9375 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -134,7 +134,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..9dae2a7d4a20 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..590c4e3e7163 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..1a44ea876eac 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..73f4cd9f8ac0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..c54010eae0de 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 868cba98eeea..28bf73514763 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c..6fac1534967f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -192,7 +192,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..69aa71c7fc76 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -150,7 +150,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..13ce2962d16f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index a5d404bd17d6..42b9f7f07993 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -47,7 +47,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// @@ -174,7 +173,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e1..9b0b610f9d15 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index bbed21283745..9eb426e66945 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 3c81f50d00d7..31d3b1edf6f5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 08b01706cabe..2954234819f3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -130,7 +130,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f..66c1a80c991c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 44f95fa0fe05..5f6cee370c48 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -153,7 +153,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..137227fdbc50 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 2bec93345bb7..888474fa577d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -51,7 +51,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -75,7 +74,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// @@ -174,7 +172,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..501419135173 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -87,7 +87,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -148,7 +147,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -170,7 +168,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -192,7 +189,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -217,7 +213,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// @@ -372,7 +367,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 7fb0e2094548..9c785e420f75 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index 72b34e492626..272c8ee06277 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a925..c2f2981f1269 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3108c8a86913..5768036d6ee8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -127,7 +127,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee..23adbc90a2c9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index a741277dd273..e376d5a0e76f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -437,11 +437,11 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.String != null) { // String (string) pattern - Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexString.Match(this.String).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); - } + Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexString.Match(this.String).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for String, must match a pattern of " + regexString, new [] { "String" }); + } } // Password (string) maxLength @@ -458,33 +458,32 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.PatternWithDigits != null) { // PatternWithDigits (string) pattern - Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); - if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); - } + Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); + if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigits, must match a pattern of " + regexPatternWithDigits, new [] { "PatternWithDigits" }); + } } if (this.PatternWithDigitsAndDelimiter != null) { // PatternWithDigitsAndDelimiter (string) pattern - Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); - if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); - } + Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); + if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithDigitsAndDelimiter, must match a pattern of " + regexPatternWithDigitsAndDelimiter, new [] { "PatternWithDigitsAndDelimiter" }); + } } if (this.PatternWithBackslash != null) { // PatternWithBackslash (string) pattern - Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); - if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); - } + Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); + if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PatternWithBackslash, must match a pattern of " + regexPatternWithBackslash, new [] { "PatternWithBackslash" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 75285a73f6ca..6d16feb8ce85 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -153,7 +153,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..d802fad7d28e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -152,7 +152,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe074907762..4ce9b6c31e33 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index acf86063d050..041ae44fa66c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -142,7 +142,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index e06a3f381f12..e74e48172720 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 57cc8110fbb8..9f01beb08b7f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -141,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..9b12ff30b413 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -50,7 +50,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// @@ -184,7 +183,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d5975478..6b1ed252df58 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b86..207015b15fd0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..6ec9f15aa946 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -166,15 +166,14 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali { if (this.UuidWithPattern != null) { // UuidWithPattern (Guid) pattern - Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); - if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); - } + Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); + if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UuidWithPattern, must match a pattern of " + regexUuidWithPattern, new [] { "UuidWithPattern" }); + } } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b2709..d6d05a763d60 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..a6b47c1db7a3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 690894994947..f41f93a196af 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..27329dafc0ad 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -176,7 +176,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 3fbd6e83ef29..471f49833f7f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -149,7 +149,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 6e4a6ef50e7b..5ff9462225cd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -270,7 +270,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0e64144119b..99f632f5ce03 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -129,7 +129,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..680f65bb5eb7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..956a6037e28e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -165,7 +165,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4b8b7068fe04..14455027ef75 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -58,7 +58,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// @@ -206,7 +205,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..2f8e9fa96b30 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -146,7 +146,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 7a7421349903..5959bb6c5543 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -140,7 +140,6 @@ protected IEnumerable BaseValidate(ValidationContext validatio yield return x; } yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e036d66bc889..6aca1d79bd40 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -58,7 +58,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// @@ -233,7 +232,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3a364f98c1e2..0ef627d8f798 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0..2347c52d3c22 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -145,7 +145,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2cdb7ee01483 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -48,7 +48,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -70,7 +69,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -92,7 +90,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -114,7 +111,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -137,7 +133,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -159,7 +154,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -182,7 +176,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -204,7 +197,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -265,7 +257,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -326,7 +317,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -387,7 +377,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -448,7 +437,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// @@ -1044,7 +1032,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..1a9e51bb1f91 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -123,7 +123,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..b5963401bc77 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f38..fb1494c5d226 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 1510bd5c512d..3bab0215b6af 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 9f8b4dd35b35..0fc8b175603c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 266dcfee794c..5201086798b8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -157,7 +157,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..82560aecb92c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..a16ae7bb2243 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -136,7 +136,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7..da2128eb2fd9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 8498a5eca78f..3c966ddd217a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..1b29845a039b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -126,7 +126,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 34fa15105dca..19416f56f423 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -139,7 +139,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..2970dd6a428b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -268,7 +268,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..60a3a44fb3c7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -159,7 +159,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 314fae589fc5..66d3e6477268 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -57,7 +57,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// @@ -174,7 +173,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 617dcd5f7a09..a5d128e49dc8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -51,7 +51,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// @@ -142,7 +141,6 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } - } + } } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 939b710f34bb..f0ed14d32ceb 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -43,7 +43,6 @@ public enum PetTypeEnum ChildCat = 1 } - /// /// Gets or Sets PetType /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index ef7f75fa434d..f497659feed8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -49,7 +49,6 @@ public enum JustSymbolEnum Dollar = 2 } - /// /// Gets or Sets JustSymbol /// @@ -73,7 +72,6 @@ public enum ArrayEnumEnum [EnumMember(Value = "crab")] Crab = 2 } - /// /// Initializes a new instance of the class. /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 627c8a3acd40..7ab36453cea8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -85,7 +85,6 @@ public enum EnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumString /// @@ -146,7 +145,6 @@ public enum EnumStringRequiredEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets EnumStringRequired /// @@ -168,7 +166,6 @@ public enum EnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets EnumInteger /// @@ -190,7 +187,6 @@ public enum EnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets EnumIntegerOnly /// @@ -215,7 +211,6 @@ public enum EnumNumberEnum NUMBER_MINUS_1_DOT_2 = 2 } - /// /// Gets or Sets EnumNumber /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index f864601a1a5c..8304a04841ea 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -48,7 +48,6 @@ public enum InnerEnum [EnumMember(Value = "lower")] Lower = 2 } - /// /// Initializes a new instance of the class. /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 24a19990a2e9..5b2bc0c14a21 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -56,7 +56,6 @@ public enum StatusEnum Delivered = 3 } - /// /// Order Status /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 18a5bfabe2b9..249f0e626b31 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -56,7 +56,6 @@ public enum StatusEnum Sold = 3 } - /// /// pet status in the store /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 5c3f9047a911..8acb04f65427 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -46,7 +46,6 @@ public enum RequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNullableEnumInteger /// @@ -68,7 +67,6 @@ public enum RequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets RequiredNotnullableEnumInteger /// @@ -90,7 +88,6 @@ public enum NotrequiredNullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNullableEnumInteger /// @@ -112,7 +109,6 @@ public enum NotrequiredNotnullableEnumIntegerEnum NUMBER_MINUS_1 = -1 } - /// /// Gets or Sets NotrequiredNotnullableEnumInteger /// @@ -135,7 +131,6 @@ public enum RequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNullableEnumIntegerOnly /// @@ -157,7 +152,6 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// @@ -180,7 +174,6 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// @@ -202,7 +195,6 @@ public enum NotrequiredNotnullableEnumIntegerOnlyEnum NUMBER_MINUS_2 = -2 } - /// /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// @@ -263,7 +255,6 @@ public enum RequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNotnullableEnumString /// @@ -324,7 +315,6 @@ public enum RequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets RequiredNullableEnumString /// @@ -385,7 +375,6 @@ public enum NotrequiredNullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNullableEnumString /// @@ -446,7 +435,6 @@ public enum NotrequiredNotnullableEnumStringEnum Duplicatevalue2 = 8 } - /// /// Gets or Sets NotrequiredNotnullableEnumString /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index e08246f7a4a5..cc2876be0ad6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,6 @@ public enum TypeEnum Grevys = 3 } - /// /// Gets or Sets Type /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index fe2e61437ee4..99ae6c4905ba 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -49,7 +49,6 @@ public enum ZeroBasedEnumEnum NotUnknown } - /// /// Gets or Sets ZeroBasedEnum /// diff --git a/samples/client/petstore/elm/src/Api/Data.elm b/samples/client/petstore/elm/src/Api/Data.elm index abf9425b1ba3..d7ca74351af1 100644 --- a/samples/client/petstore/elm/src/Api/Data.elm +++ b/samples/client/petstore/elm/src/Api/Data.elm @@ -223,7 +223,6 @@ encodeOrderStatus = Json.Encode.string << stringFromOrder_Status - encodePet : Pet -> Json.Encode.Value encodePet = encodeObject << encodePetPairs @@ -266,7 +265,6 @@ encodePetStatus = Json.Encode.string << stringFromPetStatus - encodeTag : Tag -> Json.Encode.Value encodeTag = encodeObject << encodeTagPairs @@ -364,7 +362,6 @@ orderStatusDecoder = ) - petDecoder : Json.Decode.Decoder Pet petDecoder = Json.Decode.succeed Pet @@ -396,7 +393,6 @@ petStatusDecoder = ) - tagDecoder : Json.Decode.Decoder Tag tagDecoder = Json.Decode.succeed Tag diff --git a/samples/client/petstore/elm/src/Api/Request/Pet.elm b/samples/client/petstore/elm/src/Api/Request/Pet.elm index 732a42be48c0..09f95845fc55 100644 --- a/samples/client/petstore/elm/src/Api/Request/Pet.elm +++ b/samples/client/petstore/elm/src/Api/Request/Pet.elm @@ -46,7 +46,6 @@ statusVariants = , StatusSold ] - stringFromStatus : Status -> String stringFromStatus model = case model of @@ -60,7 +59,6 @@ stringFromStatus model = "sold" - addPet : Api.Data.Pet -> Api.Request Api.Data.Pet addPet pet_body = Api.request diff --git a/samples/client/petstore/go/go-petstore/model_200_response.go b/samples/client/petstore/go/go-petstore/model_200_response.go index f26632075bbe..ebf497ae4c60 100644 --- a/samples/client/petstore/go/go-petstore/model_200_response.go +++ b/samples/client/petstore/go/go-petstore/model_200_response.go @@ -159,4 +159,3 @@ func (v *NullableModel200Response) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go b/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go index 69d99b022d6f..7e86b98ea396 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesAnyType) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_array.go b/samples/client/petstore/go/go-petstore/model_additional_properties_array.go index 58633a54e851..b063a5d24783 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_array.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_array.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesArray) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go b/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go index 9b5347dd1d3c..12cd8d9bab8c 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesBoolean) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_class.go b/samples/client/petstore/go/go-petstore/model_additional_properties_class.go index 5abc8a844b10..7b7573fa5007 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_class.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_class.go @@ -483,4 +483,3 @@ func (v *NullableAdditionalPropertiesClass) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go b/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go index c91aab6e5067..a4e29e80e10d 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesInteger) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_number.go b/samples/client/petstore/go/go-petstore/model_additional_properties_number.go index e64cc22eb5b2..73e1c5a1b2ee 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_number.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_number.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesNumber) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_object.go b/samples/client/petstore/go/go-petstore/model_additional_properties_object.go index e5f793dda338..b9425d48df4c 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_object.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_object.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesObject) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_string.go b/samples/client/petstore/go/go-petstore/model_additional_properties_string.go index f5e2f79fe202..1dd8d88f7b2c 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_string.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_string.go @@ -152,4 +152,3 @@ func (v *NullableAdditionalPropertiesString) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_animal.go b/samples/client/petstore/go/go-petstore/model_animal.go index e23baa88fcc6..1ee1cbfca088 100644 --- a/samples/client/petstore/go/go-petstore/model_animal.go +++ b/samples/client/petstore/go/go-petstore/model_animal.go @@ -195,4 +195,3 @@ func (v *NullableAnimal) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_api_response.go b/samples/client/petstore/go/go-petstore/model_api_response.go index 60ed1b2100b8..3c381418aa33 100644 --- a/samples/client/petstore/go/go-petstore/model_api_response.go +++ b/samples/client/petstore/go/go-petstore/model_api_response.go @@ -195,4 +195,3 @@ func (v *NullableApiResponse) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go b/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go index db9c18aa6206..bccc28fb8b3a 100644 --- a/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go @@ -123,4 +123,3 @@ func (v *NullableArrayOfArrayOfNumberOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_array_of_number_only.go b/samples/client/petstore/go/go-petstore/model_array_of_number_only.go index 636ec8e12948..04b07d4c7125 100644 --- a/samples/client/petstore/go/go-petstore/model_array_of_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_array_of_number_only.go @@ -123,4 +123,3 @@ func (v *NullableArrayOfNumberOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_array_test_.go b/samples/client/petstore/go/go-petstore/model_array_test_.go index 2b95a674682b..ab1a4d8f9ba5 100644 --- a/samples/client/petstore/go/go-petstore/model_array_test_.go +++ b/samples/client/petstore/go/go-petstore/model_array_test_.go @@ -195,4 +195,3 @@ func (v *NullableArrayTest) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_big_cat.go b/samples/client/petstore/go/go-petstore/model_big_cat.go index 4000f2096d9d..839466c65d2c 100644 --- a/samples/client/petstore/go/go-petstore/model_big_cat.go +++ b/samples/client/petstore/go/go-petstore/model_big_cat.go @@ -176,4 +176,3 @@ func (v *NullableBigCat) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_capitalization.go b/samples/client/petstore/go/go-petstore/model_capitalization.go index 5bc3c0cd72fe..166d9f0b0321 100644 --- a/samples/client/petstore/go/go-petstore/model_capitalization.go +++ b/samples/client/petstore/go/go-petstore/model_capitalization.go @@ -304,4 +304,3 @@ func (v *NullableCapitalization) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_cat.go b/samples/client/petstore/go/go-petstore/model_cat.go index b3937685f6af..9750e3026729 100644 --- a/samples/client/petstore/go/go-petstore/model_cat.go +++ b/samples/client/petstore/go/go-petstore/model_cat.go @@ -176,4 +176,3 @@ func (v *NullableCat) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_category.go b/samples/client/petstore/go/go-petstore/model_category.go index d19362640391..829149f238b2 100644 --- a/samples/client/petstore/go/go-petstore/model_category.go +++ b/samples/client/petstore/go/go-petstore/model_category.go @@ -193,4 +193,3 @@ func (v *NullableCategory) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_class_model.go b/samples/client/petstore/go/go-petstore/model_class_model.go index 23e47a6b6922..e1886dc3b586 100644 --- a/samples/client/petstore/go/go-petstore/model_class_model.go +++ b/samples/client/petstore/go/go-petstore/model_class_model.go @@ -123,4 +123,3 @@ func (v *NullableClassModel) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_client.go b/samples/client/petstore/go/go-petstore/model_client.go index 7011509e10cf..8a7b7ecdf032 100644 --- a/samples/client/petstore/go/go-petstore/model_client.go +++ b/samples/client/petstore/go/go-petstore/model_client.go @@ -123,4 +123,3 @@ func (v *NullableClient) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_dog.go b/samples/client/petstore/go/go-petstore/model_dog.go index 92d5dece9e79..9e8949f86af0 100644 --- a/samples/client/petstore/go/go-petstore/model_dog.go +++ b/samples/client/petstore/go/go-petstore/model_dog.go @@ -176,4 +176,3 @@ func (v *NullableDog) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_enum_arrays.go b/samples/client/petstore/go/go-petstore/model_enum_arrays.go index 0342fe0838c9..c4c9f921a42b 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_arrays.go +++ b/samples/client/petstore/go/go-petstore/model_enum_arrays.go @@ -159,4 +159,3 @@ func (v *NullableEnumArrays) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_enum_class.go b/samples/client/petstore/go/go-petstore/model_enum_class.go index fbdcefdf0f3e..228c0c719a07 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_class.go +++ b/samples/client/petstore/go/go-petstore/model_enum_class.go @@ -110,4 +110,3 @@ func (v *NullableEnumClass) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_enum_test_.go b/samples/client/petstore/go/go-petstore/model_enum_test_.go index cf858376f48b..b429e478be25 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_test_.go +++ b/samples/client/petstore/go/go-petstore/model_enum_test_.go @@ -299,4 +299,3 @@ func (v *NullableEnumTest) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_file.go b/samples/client/petstore/go/go-petstore/model_file.go index 62847b331593..ed0c64ccd2e8 100644 --- a/samples/client/petstore/go/go-petstore/model_file.go +++ b/samples/client/petstore/go/go-petstore/model_file.go @@ -124,4 +124,3 @@ func (v *NullableFile) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go b/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go index 6d9ce70ca049..6f80454b2fd7 100644 --- a/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go +++ b/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go @@ -159,4 +159,3 @@ func (v *NullableFileSchemaTestClass) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_format_test_.go b/samples/client/petstore/go/go-petstore/model_format_test_.go index 0dddb61a87a9..12516885761e 100644 --- a/samples/client/petstore/go/go-petstore/model_format_test_.go +++ b/samples/client/petstore/go/go-petstore/model_format_test_.go @@ -601,4 +601,3 @@ func (v *NullableFormatTest) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_has_only_read_only.go b/samples/client/petstore/go/go-petstore/model_has_only_read_only.go index fd4c4c686193..500be3a46702 100644 --- a/samples/client/petstore/go/go-petstore/model_has_only_read_only.go +++ b/samples/client/petstore/go/go-petstore/model_has_only_read_only.go @@ -159,4 +159,3 @@ func (v *NullableHasOnlyReadOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_list.go b/samples/client/petstore/go/go-petstore/model_list.go index db218859da04..56c5f10256d5 100644 --- a/samples/client/petstore/go/go-petstore/model_list.go +++ b/samples/client/petstore/go/go-petstore/model_list.go @@ -123,4 +123,3 @@ func (v *NullableList) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_map_test_.go b/samples/client/petstore/go/go-petstore/model_map_test_.go index 78ca3949a67e..19830ef987b9 100644 --- a/samples/client/petstore/go/go-petstore/model_map_test_.go +++ b/samples/client/petstore/go/go-petstore/model_map_test_.go @@ -231,4 +231,3 @@ func (v *NullableMapTest) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go b/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go index e3baadf91b2e..ff134a8fecf3 100644 --- a/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go +++ b/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go @@ -196,4 +196,3 @@ func (v *NullableMixedPropertiesAndAdditionalPropertiesClass) UnmarshalJSON(src return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_name.go b/samples/client/petstore/go/go-petstore/model_name.go index 7e009e1cf0b5..7be3cac6985b 100644 --- a/samples/client/petstore/go/go-petstore/model_name.go +++ b/samples/client/petstore/go/go-petstore/model_name.go @@ -263,4 +263,3 @@ func (v *NullableName) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_number_only.go b/samples/client/petstore/go/go-petstore/model_number_only.go index 629549ba988a..4d2876a21c00 100644 --- a/samples/client/petstore/go/go-petstore/model_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_number_only.go @@ -123,4 +123,3 @@ func (v *NullableNumberOnly) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_order.go b/samples/client/petstore/go/go-petstore/model_order.go index d403c6113332..92ab82210457 100644 --- a/samples/client/petstore/go/go-petstore/model_order.go +++ b/samples/client/petstore/go/go-petstore/model_order.go @@ -309,4 +309,3 @@ func (v *NullableOrder) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_outer_composite.go b/samples/client/petstore/go/go-petstore/model_outer_composite.go index 4758b3a952f6..daa4a8e120b8 100644 --- a/samples/client/petstore/go/go-petstore/model_outer_composite.go +++ b/samples/client/petstore/go/go-petstore/model_outer_composite.go @@ -195,4 +195,3 @@ func (v *NullableOuterComposite) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_outer_enum.go b/samples/client/petstore/go/go-petstore/model_outer_enum.go index ba1752474add..891ed4c36898 100644 --- a/samples/client/petstore/go/go-petstore/model_outer_enum.go +++ b/samples/client/petstore/go/go-petstore/model_outer_enum.go @@ -110,4 +110,3 @@ func (v *NullableOuterEnum) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_pet.go b/samples/client/petstore/go/go-petstore/model_pet.go index de782511daa3..a1a48a5af9f2 100644 --- a/samples/client/petstore/go/go-petstore/model_pet.go +++ b/samples/client/petstore/go/go-petstore/model_pet.go @@ -328,4 +328,3 @@ func (v *NullablePet) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_read_only_first.go b/samples/client/petstore/go/go-petstore/model_read_only_first.go index fb7df05bff17..10eb81703ad7 100644 --- a/samples/client/petstore/go/go-petstore/model_read_only_first.go +++ b/samples/client/petstore/go/go-petstore/model_read_only_first.go @@ -159,4 +159,3 @@ func (v *NullableReadOnlyFirst) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_return.go b/samples/client/petstore/go/go-petstore/model_return.go index bc2bdb014447..56e4a6bc9f9b 100644 --- a/samples/client/petstore/go/go-petstore/model_return.go +++ b/samples/client/petstore/go/go-petstore/model_return.go @@ -123,4 +123,3 @@ func (v *NullableReturn) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_special_model_name.go b/samples/client/petstore/go/go-petstore/model_special_model_name.go index 3811893dcada..443bcf64e887 100644 --- a/samples/client/petstore/go/go-petstore/model_special_model_name.go +++ b/samples/client/petstore/go/go-petstore/model_special_model_name.go @@ -123,4 +123,3 @@ func (v *NullableSpecialModelName) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_tag.go b/samples/client/petstore/go/go-petstore/model_tag.go index fe001247a886..9f727b44f379 100644 --- a/samples/client/petstore/go/go-petstore/model_tag.go +++ b/samples/client/petstore/go/go-petstore/model_tag.go @@ -159,4 +159,3 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_default.go b/samples/client/petstore/go/go-petstore/model_type_holder_default.go index 8a67e9f7a2df..d01e5b3aa2ac 100644 --- a/samples/client/petstore/go/go-petstore/model_type_holder_default.go +++ b/samples/client/petstore/go/go-petstore/model_type_holder_default.go @@ -271,4 +271,3 @@ func (v *NullableTypeHolderDefault) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_example.go b/samples/client/petstore/go/go-petstore/model_type_holder_example.go index a08223070828..99911e3a09a3 100644 --- a/samples/client/petstore/go/go-petstore/model_type_holder_example.go +++ b/samples/client/petstore/go/go-petstore/model_type_holder_example.go @@ -295,4 +295,3 @@ func (v *NullableTypeHolderExample) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_user.go b/samples/client/petstore/go/go-petstore/model_user.go index f1ccca8efdcf..bfda3b712c54 100644 --- a/samples/client/petstore/go/go-petstore/model_user.go +++ b/samples/client/petstore/go/go-petstore/model_user.go @@ -376,4 +376,3 @@ func (v *NullableUser) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/go/go-petstore/model_xml_item.go b/samples/client/petstore/go/go-petstore/model_xml_item.go index 7632c89d71d5..0692c25ac6bf 100644 --- a/samples/client/petstore/go/go-petstore/model_xml_item.go +++ b/samples/client/petstore/go/go-petstore/model_xml_item.go @@ -1131,4 +1131,3 @@ func (v *NullableXmlItem) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index abc3d296fa39..e1ac2ba77f08 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -22,7 +22,6 @@ - public class AdditionalPropertiesClass { private Map mapProperty = null; @@ -105,4 +104,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index cb7b8b0a6811..33c130fcd069 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -21,7 +21,6 @@ - public class AllOfWithSingleRef { private String username; @@ -94,4 +93,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Animal.java index 52742a478bb8..7ab81113e36b 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Animal.java @@ -23,7 +23,6 @@ - public class Animal { private String className; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 80114154d940..48b01de132dd 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfArrayOfNumberOnly { private List> arrayArrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b06f05338a4e..3f0a08e04deb 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfNumberOnly { private List arrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayTest.java index d9ee320b0bdd..fbd30068de96 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -24,7 +24,6 @@ - public class ArrayTest { private List arrayOfString = null; @@ -135,4 +134,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Capitalization.java index f6d3fde93d48..a01d3056e607 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Capitalization.java @@ -20,7 +20,6 @@ - public class Capitalization { private String smallCamel; @@ -188,4 +187,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Cat.java index be9c69545616..fd78521fde63 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Cat.java @@ -24,7 +24,6 @@ - public class Cat extends Animal { private Boolean declawed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Category.java index 8da990111047..89b04cabaa84 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Category.java @@ -20,7 +20,6 @@ - public class Category { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 90b2f7ceb09b..c6617f65489b 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -25,7 +25,6 @@ - public class ChildWithNullable extends ParentWithNullable { private String otherProperty; @@ -75,4 +74,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ClassModel.java index de44db959bc3..5c7b65546209 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ClassModel.java @@ -23,7 +23,6 @@ /** * Model for testing model with \"_class\" property **/ - public class ClassModel { private String propertyClass; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Client.java index 0ad715df8def..06d16b9b9cb8 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Client.java @@ -20,7 +20,6 @@ - public class Client { private String client; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java index aaaed8e7f3e4..157ab8092d58 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -20,7 +20,6 @@ - public class DeprecatedObject { private String name; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Dog.java index 069dab8392d5..51983bed091c 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Dog.java @@ -24,7 +24,6 @@ - public class Dog extends Animal { private String breed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumArrays.java index 38d88dc16fd8..1d2150a85620 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -23,7 +23,6 @@ - public class EnumArrays { public enum JustSymbolEnum { @@ -143,4 +142,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumClass.java index eed52272f705..e642082e5558 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumClass.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumClass.java @@ -49,4 +49,3 @@ public static EnumClass fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..14ac92c1d439 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,7 +27,6 @@ - public class EnumTest { public enum EnumStringEnum { @@ -322,4 +321,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index f671eb33e5ca..65f359485270 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -23,7 +23,6 @@ - public class FakeBigDecimalMap200Response { private BigDecimal someId; @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f867e747aaba..484b6407be19 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -24,7 +24,6 @@ - public class FileSchemaTestClass { private ModelFile _file; @@ -102,4 +101,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Foo.java index fcafaf7682c1..b776b0ceb3b4 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Foo.java @@ -20,7 +20,6 @@ - public class Foo { private String bar = "bar"; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 27971dae9168..9f8d25607e14 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -21,7 +21,6 @@ - public class FooGetDefaultResponse { private Foo string; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FormatTest.java index 1f3fc84b65ae..0d97cf0fb43e 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/FormatTest.java @@ -25,7 +25,6 @@ - public class FormatTest { private Integer integer; @@ -436,4 +435,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 72566c02dde9..59eb5f33b1b7 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -20,7 +20,6 @@ - public class HasOnlyReadOnly { private String bar; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 35e104b4b12f..8e9ecfcc2b57 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -26,7 +26,6 @@ /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. **/ - public class HealthCheckResult { private String nullableMessage; @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MapTest.java index ec54a8ae4210..013add4b44c6 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MapTest.java @@ -22,7 +22,6 @@ - public class MapTest { private Map> mapMapOfString = null; @@ -182,4 +181,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index de307d1e2860..f93fed716aba 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -25,7 +25,6 @@ - public class MixedPropertiesAndAdditionalPropertiesClass { private UUID uuid; @@ -126,4 +125,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Model200Response.java index 393f65f83e93..16f006b17e6b 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Model200Response.java @@ -23,7 +23,6 @@ /** * Model for testing model name starting with number **/ - public class Model200Response { private Integer name; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 881fc2677d27..31eba756a9d6 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -20,7 +20,6 @@ - public class ModelApiResponse { private Integer code; @@ -116,4 +115,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelFile.java index 3c1cf785ea51..bdeb864521d5 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelFile.java @@ -23,7 +23,6 @@ /** * Must be named `File` for test. **/ - public class ModelFile { /** @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelList.java index 0c2e7ffb39d2..294ad403a4de 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelList.java @@ -20,7 +20,6 @@ - public class ModelList { private String _123list; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelReturn.java index 7d948f62e2ce..66f7828eb007 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -23,7 +23,6 @@ /** * Model for testing reserved words **/ - public class ModelReturn { private Integer _return; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Name.java index ba07eb915237..1d295d271b71 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Name.java @@ -23,7 +23,6 @@ /** * Model for testing model name same as property name **/ - public class Name { private Integer name; @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NullableClass.java index 91af4dd3894f..3d2a80170764 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NullableClass.java @@ -31,7 +31,6 @@ - public class NullableClass extends HashMap { private Integer integerProp; @@ -364,4 +363,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NumberOnly.java index 5d493bccf260..00ecd6c8dc33 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -21,7 +21,6 @@ - public class NumberOnly { private BigDecimal justNumber; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 254b7df22cb4..aa09ec6762d9 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -25,7 +25,6 @@ - public class ObjectWithDeprecatedFields { private String uuid; @@ -155,4 +154,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Order.java index 84ce8e3fa1fb..9f2a1b5e2f30 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Order.java @@ -21,7 +21,6 @@ - public class Order { private Long id; @@ -210,4 +209,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterComposite.java index 6ba3d1712d42..8b88efe87d86 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -21,7 +21,6 @@ - public class OuterComposite { private BigDecimal myNumber; @@ -117,4 +116,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnum.java index 9fe96db3f6ef..e1bb31759af2 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnum.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnum.java @@ -49,4 +49,3 @@ public static OuterEnum fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java index f5b732f784f0..a6717dea7b0b 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java index 0ca88b32ee6c..48d976f4bffe 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java @@ -49,4 +49,3 @@ public static OuterEnumInteger fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java index 06f9fe6c371e..594884a48f66 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumIntegerDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index b25e8e37ae7f..e0cc28e11cbb 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -21,7 +21,6 @@ - public class OuterObjectWithEnumProperty { private OuterEnumInteger value; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java index d22980be614c..9181a55aada3 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -26,7 +26,6 @@ - public class ParentWithNullable { public enum TypeEnum { @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Pet.java index 3960d4372775..e6c5942b8eb7 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Pet.java @@ -28,7 +28,6 @@ - public class Pet { private Long id; @@ -228,4 +227,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15344cbf0dc1..587c2bb2dadb 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -20,7 +20,6 @@ - public class ReadOnlyFirst { private String bar; @@ -82,4 +81,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SingleRefType.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SingleRefType.java index d46fc6c116ff..315f92c0321c 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SingleRefType.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SingleRefType.java @@ -47,4 +47,3 @@ public static SingleRefType fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java index af5166268f75..e74b64d52c93 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -20,7 +20,6 @@ - public class SpecialModelName { private Long $specialPropertyName; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Tag.java index 1dee37e39368..b9d424b44209 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/Tag.java @@ -20,7 +20,6 @@ - public class Tag { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index e46c4bb382de..191fad75c7f4 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -22,7 +22,6 @@ - public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { private String someProperty; @@ -72,4 +71,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java index c088a4d15d58..ecc0d711f8f4 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java @@ -20,7 +20,6 @@ - public class User { private Long id; @@ -234,4 +233,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index abc3d296fa39..e1ac2ba77f08 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -22,7 +22,6 @@ - public class AdditionalPropertiesClass { private Map mapProperty = null; @@ -105,4 +104,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index cb7b8b0a6811..33c130fcd069 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -21,7 +21,6 @@ - public class AllOfWithSingleRef { private String username; @@ -94,4 +93,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Animal.java index 52742a478bb8..7ab81113e36b 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Animal.java @@ -23,7 +23,6 @@ - public class Animal { private String className; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 80114154d940..48b01de132dd 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfArrayOfNumberOnly { private List> arrayArrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b06f05338a4e..3f0a08e04deb 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfNumberOnly { private List arrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayTest.java index d9ee320b0bdd..fbd30068de96 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -24,7 +24,6 @@ - public class ArrayTest { private List arrayOfString = null; @@ -135,4 +134,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Capitalization.java index f6d3fde93d48..a01d3056e607 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Capitalization.java @@ -20,7 +20,6 @@ - public class Capitalization { private String smallCamel; @@ -188,4 +187,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Cat.java index be9c69545616..fd78521fde63 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Cat.java @@ -24,7 +24,6 @@ - public class Cat extends Animal { private Boolean declawed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Category.java index 8da990111047..89b04cabaa84 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Category.java @@ -20,7 +20,6 @@ - public class Category { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 90b2f7ceb09b..c6617f65489b 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -25,7 +25,6 @@ - public class ChildWithNullable extends ParentWithNullable { private String otherProperty; @@ -75,4 +74,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ClassModel.java index de44db959bc3..5c7b65546209 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ClassModel.java @@ -23,7 +23,6 @@ /** * Model for testing model with \"_class\" property **/ - public class ClassModel { private String propertyClass; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Client.java index 0ad715df8def..06d16b9b9cb8 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Client.java @@ -20,7 +20,6 @@ - public class Client { private String client; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java index aaaed8e7f3e4..157ab8092d58 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -20,7 +20,6 @@ - public class DeprecatedObject { private String name; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Dog.java index 069dab8392d5..51983bed091c 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Dog.java @@ -24,7 +24,6 @@ - public class Dog extends Animal { private String breed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumArrays.java index 38d88dc16fd8..1d2150a85620 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -23,7 +23,6 @@ - public class EnumArrays { public enum JustSymbolEnum { @@ -143,4 +142,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumClass.java index eed52272f705..e642082e5558 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumClass.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumClass.java @@ -49,4 +49,3 @@ public static EnumClass fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..14ac92c1d439 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,7 +27,6 @@ - public class EnumTest { public enum EnumStringEnum { @@ -322,4 +321,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index f671eb33e5ca..65f359485270 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -23,7 +23,6 @@ - public class FakeBigDecimalMap200Response { private BigDecimal someId; @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f867e747aaba..484b6407be19 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -24,7 +24,6 @@ - public class FileSchemaTestClass { private ModelFile _file; @@ -102,4 +101,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Foo.java index fcafaf7682c1..b776b0ceb3b4 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Foo.java @@ -20,7 +20,6 @@ - public class Foo { private String bar = "bar"; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 27971dae9168..9f8d25607e14 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -21,7 +21,6 @@ - public class FooGetDefaultResponse { private Foo string; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FormatTest.java index 1f3fc84b65ae..0d97cf0fb43e 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/FormatTest.java @@ -25,7 +25,6 @@ - public class FormatTest { private Integer integer; @@ -436,4 +435,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 72566c02dde9..59eb5f33b1b7 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -20,7 +20,6 @@ - public class HasOnlyReadOnly { private String bar; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 35e104b4b12f..8e9ecfcc2b57 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -26,7 +26,6 @@ /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. **/ - public class HealthCheckResult { private String nullableMessage; @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MapTest.java index ec54a8ae4210..013add4b44c6 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MapTest.java @@ -22,7 +22,6 @@ - public class MapTest { private Map> mapMapOfString = null; @@ -182,4 +181,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index de307d1e2860..f93fed716aba 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -25,7 +25,6 @@ - public class MixedPropertiesAndAdditionalPropertiesClass { private UUID uuid; @@ -126,4 +125,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Model200Response.java index 393f65f83e93..16f006b17e6b 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Model200Response.java @@ -23,7 +23,6 @@ /** * Model for testing model name starting with number **/ - public class Model200Response { private Integer name; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 881fc2677d27..31eba756a9d6 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -20,7 +20,6 @@ - public class ModelApiResponse { private Integer code; @@ -116,4 +115,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelFile.java index 3c1cf785ea51..bdeb864521d5 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelFile.java @@ -23,7 +23,6 @@ /** * Must be named `File` for test. **/ - public class ModelFile { /** @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelList.java index 0c2e7ffb39d2..294ad403a4de 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelList.java @@ -20,7 +20,6 @@ - public class ModelList { private String _123list; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelReturn.java index 7d948f62e2ce..66f7828eb007 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -23,7 +23,6 @@ /** * Model for testing reserved words **/ - public class ModelReturn { private Integer _return; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Name.java index ba07eb915237..1d295d271b71 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Name.java @@ -23,7 +23,6 @@ /** * Model for testing model name same as property name **/ - public class Name { private Integer name; @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NullableClass.java index 91af4dd3894f..3d2a80170764 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NullableClass.java @@ -31,7 +31,6 @@ - public class NullableClass extends HashMap { private Integer integerProp; @@ -364,4 +363,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NumberOnly.java index 5d493bccf260..00ecd6c8dc33 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -21,7 +21,6 @@ - public class NumberOnly { private BigDecimal justNumber; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 254b7df22cb4..aa09ec6762d9 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -25,7 +25,6 @@ - public class ObjectWithDeprecatedFields { private String uuid; @@ -155,4 +154,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Order.java index 84ce8e3fa1fb..9f2a1b5e2f30 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Order.java @@ -21,7 +21,6 @@ - public class Order { private Long id; @@ -210,4 +209,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterComposite.java index 6ba3d1712d42..8b88efe87d86 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -21,7 +21,6 @@ - public class OuterComposite { private BigDecimal myNumber; @@ -117,4 +116,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnum.java index 9fe96db3f6ef..e1bb31759af2 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnum.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnum.java @@ -49,4 +49,3 @@ public static OuterEnum fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java index f5b732f784f0..a6717dea7b0b 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java index 0ca88b32ee6c..48d976f4bffe 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java @@ -49,4 +49,3 @@ public static OuterEnumInteger fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java index 06f9fe6c371e..594884a48f66 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumIntegerDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index b25e8e37ae7f..e0cc28e11cbb 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -21,7 +21,6 @@ - public class OuterObjectWithEnumProperty { private OuterEnumInteger value; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java index d22980be614c..9181a55aada3 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -26,7 +26,6 @@ - public class ParentWithNullable { public enum TypeEnum { @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Pet.java index 3960d4372775..e6c5942b8eb7 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Pet.java @@ -28,7 +28,6 @@ - public class Pet { private Long id; @@ -228,4 +227,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15344cbf0dc1..587c2bb2dadb 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -20,7 +20,6 @@ - public class ReadOnlyFirst { private String bar; @@ -82,4 +81,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SingleRefType.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SingleRefType.java index d46fc6c116ff..315f92c0321c 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SingleRefType.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SingleRefType.java @@ -47,4 +47,3 @@ public static SingleRefType fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SpecialModelName.java index af5166268f75..e74b64d52c93 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -20,7 +20,6 @@ - public class SpecialModelName { private Long $specialPropertyName; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Tag.java index 1dee37e39368..b9d424b44209 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/Tag.java @@ -20,7 +20,6 @@ - public class Tag { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index e46c4bb382de..191fad75c7f4 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -22,7 +22,6 @@ - public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { private String someProperty; @@ -72,4 +71,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java index c088a4d15d58..ecc0d711f8f4 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java @@ -20,7 +20,6 @@ - public class User { private Long id; @@ -234,4 +233,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index abc3d296fa39..e1ac2ba77f08 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -22,7 +22,6 @@ - public class AdditionalPropertiesClass { private Map mapProperty = null; @@ -105,4 +104,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index cb7b8b0a6811..33c130fcd069 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -21,7 +21,6 @@ - public class AllOfWithSingleRef { private String username; @@ -94,4 +93,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Animal.java index 52742a478bb8..7ab81113e36b 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Animal.java @@ -23,7 +23,6 @@ - public class Animal { private String className; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 80114154d940..48b01de132dd 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfArrayOfNumberOnly { private List> arrayArrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b06f05338a4e..3f0a08e04deb 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfNumberOnly { private List arrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayTest.java index d9ee320b0bdd..fbd30068de96 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -24,7 +24,6 @@ - public class ArrayTest { private List arrayOfString = null; @@ -135,4 +134,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Capitalization.java index f6d3fde93d48..a01d3056e607 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Capitalization.java @@ -20,7 +20,6 @@ - public class Capitalization { private String smallCamel; @@ -188,4 +187,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Cat.java index be9c69545616..fd78521fde63 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Cat.java @@ -24,7 +24,6 @@ - public class Cat extends Animal { private Boolean declawed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Category.java index 8da990111047..89b04cabaa84 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Category.java @@ -20,7 +20,6 @@ - public class Category { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 90b2f7ceb09b..c6617f65489b 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -25,7 +25,6 @@ - public class ChildWithNullable extends ParentWithNullable { private String otherProperty; @@ -75,4 +74,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ClassModel.java index de44db959bc3..5c7b65546209 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ClassModel.java @@ -23,7 +23,6 @@ /** * Model for testing model with \"_class\" property **/ - public class ClassModel { private String propertyClass; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Client.java index 0ad715df8def..06d16b9b9cb8 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Client.java @@ -20,7 +20,6 @@ - public class Client { private String client; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java index aaaed8e7f3e4..157ab8092d58 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -20,7 +20,6 @@ - public class DeprecatedObject { private String name; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Dog.java index 069dab8392d5..51983bed091c 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Dog.java @@ -24,7 +24,6 @@ - public class Dog extends Animal { private String breed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumArrays.java index 38d88dc16fd8..1d2150a85620 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -23,7 +23,6 @@ - public class EnumArrays { public enum JustSymbolEnum { @@ -143,4 +142,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumClass.java index eed52272f705..e642082e5558 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumClass.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumClass.java @@ -49,4 +49,3 @@ public static EnumClass fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..14ac92c1d439 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,7 +27,6 @@ - public class EnumTest { public enum EnumStringEnum { @@ -322,4 +321,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index f671eb33e5ca..65f359485270 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -23,7 +23,6 @@ - public class FakeBigDecimalMap200Response { private BigDecimal someId; @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f867e747aaba..484b6407be19 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -24,7 +24,6 @@ - public class FileSchemaTestClass { private ModelFile _file; @@ -102,4 +101,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Foo.java index fcafaf7682c1..b776b0ceb3b4 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Foo.java @@ -20,7 +20,6 @@ - public class Foo { private String bar = "bar"; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 27971dae9168..9f8d25607e14 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -21,7 +21,6 @@ - public class FooGetDefaultResponse { private Foo string; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FormatTest.java index 1f3fc84b65ae..0d97cf0fb43e 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/FormatTest.java @@ -25,7 +25,6 @@ - public class FormatTest { private Integer integer; @@ -436,4 +435,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 72566c02dde9..59eb5f33b1b7 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -20,7 +20,6 @@ - public class HasOnlyReadOnly { private String bar; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 35e104b4b12f..8e9ecfcc2b57 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -26,7 +26,6 @@ /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. **/ - public class HealthCheckResult { private String nullableMessage; @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MapTest.java index ec54a8ae4210..013add4b44c6 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MapTest.java @@ -22,7 +22,6 @@ - public class MapTest { private Map> mapMapOfString = null; @@ -182,4 +181,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index de307d1e2860..f93fed716aba 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -25,7 +25,6 @@ - public class MixedPropertiesAndAdditionalPropertiesClass { private UUID uuid; @@ -126,4 +125,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Model200Response.java index 393f65f83e93..16f006b17e6b 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Model200Response.java @@ -23,7 +23,6 @@ /** * Model for testing model name starting with number **/ - public class Model200Response { private Integer name; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 881fc2677d27..31eba756a9d6 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -20,7 +20,6 @@ - public class ModelApiResponse { private Integer code; @@ -116,4 +115,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelFile.java index 3c1cf785ea51..bdeb864521d5 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelFile.java @@ -23,7 +23,6 @@ /** * Must be named `File` for test. **/ - public class ModelFile { /** @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelList.java index 0c2e7ffb39d2..294ad403a4de 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelList.java @@ -20,7 +20,6 @@ - public class ModelList { private String _123list; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelReturn.java index 7d948f62e2ce..66f7828eb007 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -23,7 +23,6 @@ /** * Model for testing reserved words **/ - public class ModelReturn { private Integer _return; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Name.java index ba07eb915237..1d295d271b71 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Name.java @@ -23,7 +23,6 @@ /** * Model for testing model name same as property name **/ - public class Name { private Integer name; @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NullableClass.java index 91af4dd3894f..3d2a80170764 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NullableClass.java @@ -31,7 +31,6 @@ - public class NullableClass extends HashMap { private Integer integerProp; @@ -364,4 +363,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NumberOnly.java index 5d493bccf260..00ecd6c8dc33 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -21,7 +21,6 @@ - public class NumberOnly { private BigDecimal justNumber; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 254b7df22cb4..aa09ec6762d9 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -25,7 +25,6 @@ - public class ObjectWithDeprecatedFields { private String uuid; @@ -155,4 +154,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Order.java index 84ce8e3fa1fb..9f2a1b5e2f30 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Order.java @@ -21,7 +21,6 @@ - public class Order { private Long id; @@ -210,4 +209,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterComposite.java index 6ba3d1712d42..8b88efe87d86 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -21,7 +21,6 @@ - public class OuterComposite { private BigDecimal myNumber; @@ -117,4 +116,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnum.java index 9fe96db3f6ef..e1bb31759af2 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnum.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnum.java @@ -49,4 +49,3 @@ public static OuterEnum fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java index f5b732f784f0..a6717dea7b0b 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java index 0ca88b32ee6c..48d976f4bffe 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumInteger.java @@ -49,4 +49,3 @@ public static OuterEnumInteger fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java index 06f9fe6c371e..594884a48f66 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumIntegerDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index b25e8e37ae7f..e0cc28e11cbb 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -21,7 +21,6 @@ - public class OuterObjectWithEnumProperty { private OuterEnumInteger value; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java index d22980be614c..9181a55aada3 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -26,7 +26,6 @@ - public class ParentWithNullable { public enum TypeEnum { @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Pet.java index 3960d4372775..e6c5942b8eb7 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Pet.java @@ -28,7 +28,6 @@ - public class Pet { private Long id; @@ -228,4 +227,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15344cbf0dc1..587c2bb2dadb 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -20,7 +20,6 @@ - public class ReadOnlyFirst { private String bar; @@ -82,4 +81,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SingleRefType.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SingleRefType.java index d46fc6c116ff..315f92c0321c 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SingleRefType.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SingleRefType.java @@ -47,4 +47,3 @@ public static SingleRefType fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java index af5166268f75..e74b64d52c93 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -20,7 +20,6 @@ - public class SpecialModelName { private Long $specialPropertyName; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Tag.java index 1dee37e39368..b9d424b44209 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/Tag.java @@ -20,7 +20,6 @@ - public class Tag { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index e46c4bb382de..191fad75c7f4 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -22,7 +22,6 @@ - public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { private String someProperty; @@ -72,4 +71,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java index c088a4d15d58..ecc0d711f8f4 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java @@ -20,7 +20,6 @@ - public class User { private Long id; @@ -234,4 +233,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index abc3d296fa39..e1ac2ba77f08 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -22,7 +22,6 @@ - public class AdditionalPropertiesClass { private Map mapProperty = null; @@ -105,4 +104,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index cb7b8b0a6811..33c130fcd069 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -21,7 +21,6 @@ - public class AllOfWithSingleRef { private String username; @@ -94,4 +93,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Animal.java index 52742a478bb8..7ab81113e36b 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Animal.java @@ -23,7 +23,6 @@ - public class Animal { private String className; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 80114154d940..48b01de132dd 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfArrayOfNumberOnly { private List> arrayArrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b06f05338a4e..3f0a08e04deb 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -24,7 +24,6 @@ - public class ArrayOfNumberOnly { private List arrayNumber = null; @@ -79,4 +78,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayTest.java index d9ee320b0bdd..fbd30068de96 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -24,7 +24,6 @@ - public class ArrayTest { private List arrayOfString = null; @@ -135,4 +134,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Capitalization.java index f6d3fde93d48..a01d3056e607 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Capitalization.java @@ -20,7 +20,6 @@ - public class Capitalization { private String smallCamel; @@ -188,4 +187,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Cat.java index be9c69545616..fd78521fde63 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Cat.java @@ -24,7 +24,6 @@ - public class Cat extends Animal { private Boolean declawed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Category.java index 8da990111047..89b04cabaa84 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Category.java @@ -20,7 +20,6 @@ - public class Category { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 90b2f7ceb09b..c6617f65489b 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -25,7 +25,6 @@ - public class ChildWithNullable extends ParentWithNullable { private String otherProperty; @@ -75,4 +74,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ClassModel.java index de44db959bc3..5c7b65546209 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ClassModel.java @@ -23,7 +23,6 @@ /** * Model for testing model with \"_class\" property **/ - public class ClassModel { private String propertyClass; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Client.java index 0ad715df8def..06d16b9b9cb8 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Client.java @@ -20,7 +20,6 @@ - public class Client { private String client; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java index aaaed8e7f3e4..157ab8092d58 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -20,7 +20,6 @@ - public class DeprecatedObject { private String name; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Dog.java index 069dab8392d5..51983bed091c 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Dog.java @@ -24,7 +24,6 @@ - public class Dog extends Animal { private String breed; @@ -74,4 +73,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumArrays.java index 38d88dc16fd8..1d2150a85620 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -23,7 +23,6 @@ - public class EnumArrays { public enum JustSymbolEnum { @@ -143,4 +142,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumClass.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumClass.java index eed52272f705..e642082e5558 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumClass.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumClass.java @@ -49,4 +49,3 @@ public static EnumClass fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..14ac92c1d439 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,7 +27,6 @@ - public class EnumTest { public enum EnumStringEnum { @@ -322,4 +321,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index f671eb33e5ca..65f359485270 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -23,7 +23,6 @@ - public class FakeBigDecimalMap200Response { private BigDecimal someId; @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f867e747aaba..484b6407be19 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -24,7 +24,6 @@ - public class FileSchemaTestClass { private ModelFile _file; @@ -102,4 +101,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Foo.java index fcafaf7682c1..b776b0ceb3b4 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Foo.java @@ -20,7 +20,6 @@ - public class Foo { private String bar = "bar"; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 27971dae9168..9f8d25607e14 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -21,7 +21,6 @@ - public class FooGetDefaultResponse { private Foo string; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FormatTest.java index 1f3fc84b65ae..0d97cf0fb43e 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/FormatTest.java @@ -25,7 +25,6 @@ - public class FormatTest { private Integer integer; @@ -436,4 +435,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 72566c02dde9..59eb5f33b1b7 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -20,7 +20,6 @@ - public class HasOnlyReadOnly { private String bar; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 35e104b4b12f..8e9ecfcc2b57 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -26,7 +26,6 @@ /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. **/ - public class HealthCheckResult { private String nullableMessage; @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MapTest.java index ec54a8ae4210..013add4b44c6 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MapTest.java @@ -22,7 +22,6 @@ - public class MapTest { private Map> mapMapOfString = null; @@ -182,4 +181,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index de307d1e2860..f93fed716aba 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -25,7 +25,6 @@ - public class MixedPropertiesAndAdditionalPropertiesClass { private UUID uuid; @@ -126,4 +125,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Model200Response.java index 393f65f83e93..16f006b17e6b 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Model200Response.java @@ -23,7 +23,6 @@ /** * Model for testing model name starting with number **/ - public class Model200Response { private Integer name; @@ -96,4 +95,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 881fc2677d27..31eba756a9d6 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -20,7 +20,6 @@ - public class ModelApiResponse { private Integer code; @@ -116,4 +115,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelFile.java index 3c1cf785ea51..bdeb864521d5 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelFile.java @@ -23,7 +23,6 @@ /** * Must be named `File` for test. **/ - public class ModelFile { /** @@ -76,4 +75,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelList.java index 0c2e7ffb39d2..294ad403a4de 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelList.java @@ -20,7 +20,6 @@ - public class ModelList { private String _123list; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelReturn.java index 7d948f62e2ce..66f7828eb007 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -23,7 +23,6 @@ /** * Model for testing reserved words **/ - public class ModelReturn { private Integer _return; @@ -73,4 +72,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Name.java index ba07eb915237..1d295d271b71 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Name.java @@ -23,7 +23,6 @@ /** * Model for testing model name same as property name **/ - public class Name { private Integer name; @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NullableClass.java index 91af4dd3894f..3d2a80170764 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NullableClass.java @@ -31,7 +31,6 @@ - public class NullableClass extends HashMap { private Integer integerProp; @@ -364,4 +363,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NumberOnly.java index 5d493bccf260..00ecd6c8dc33 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -21,7 +21,6 @@ - public class NumberOnly { private BigDecimal justNumber; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 254b7df22cb4..aa09ec6762d9 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -25,7 +25,6 @@ - public class ObjectWithDeprecatedFields { private String uuid; @@ -155,4 +154,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Order.java index 84ce8e3fa1fb..9f2a1b5e2f30 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Order.java @@ -21,7 +21,6 @@ - public class Order { private Long id; @@ -210,4 +209,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterComposite.java index 6ba3d1712d42..8b88efe87d86 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -21,7 +21,6 @@ - public class OuterComposite { private BigDecimal myNumber; @@ -117,4 +116,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnum.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnum.java index 9fe96db3f6ef..e1bb31759af2 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnum.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnum.java @@ -49,4 +49,3 @@ public static OuterEnum fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java index f5b732f784f0..a6717dea7b0b 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java index 0ca88b32ee6c..48d976f4bffe 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumInteger.java @@ -49,4 +49,3 @@ public static OuterEnumInteger fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java index 06f9fe6c371e..594884a48f66 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java @@ -49,4 +49,3 @@ public static OuterEnumIntegerDefaultValue fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index b25e8e37ae7f..e0cc28e11cbb 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -21,7 +21,6 @@ - public class OuterObjectWithEnumProperty { private OuterEnumInteger value; @@ -71,4 +70,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java index d22980be614c..9181a55aada3 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -26,7 +26,6 @@ - public class ParentWithNullable { public enum TypeEnum { @@ -120,4 +119,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Pet.java index 3960d4372775..e6c5942b8eb7 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Pet.java @@ -28,7 +28,6 @@ - public class Pet { private Long id; @@ -228,4 +227,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15344cbf0dc1..587c2bb2dadb 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -20,7 +20,6 @@ - public class ReadOnlyFirst { private String bar; @@ -82,4 +81,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SingleRefType.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SingleRefType.java index d46fc6c116ff..315f92c0321c 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SingleRefType.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SingleRefType.java @@ -47,4 +47,3 @@ public static SingleRefType fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SpecialModelName.java index af5166268f75..e74b64d52c93 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -20,7 +20,6 @@ - public class SpecialModelName { private Long $specialPropertyName; @@ -70,4 +69,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Tag.java index 1dee37e39368..b9d424b44209 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/Tag.java @@ -20,7 +20,6 @@ - public class Tag { private Long id; @@ -93,4 +92,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index e46c4bb382de..191fad75c7f4 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -22,7 +22,6 @@ - public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { private String someProperty; @@ -72,4 +71,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java index c088a4d15d58..ecc0d711f8f4 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java @@ -20,7 +20,6 @@ - public class User { private Long id; @@ -234,4 +233,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 29d593d186a6..ad3fb76862d3 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -101,4 +101,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index 066d87af66a8..1ae23f39c05e 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -102,4 +102,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 7a7185cf9417..a307839aa443 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -101,4 +101,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index accf0ce661da..78bf73c947fe 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -444,4 +444,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 26b805fbc4a2..5dcbc67542a3 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -101,4 +101,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index d0563c8a7aa8..0199b38c9872 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -102,4 +102,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 5629265536a0..3baf37b17495 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -101,4 +101,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index dd1c0ed54983..44fb274b3036 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -101,4 +101,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Animal.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Animal.java index 0868b9e046a1..9b27c56e12b6 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Animal.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Animal.java @@ -33,6 +33,7 @@ }) @JsonTypeName("Animal") @Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -43,7 +44,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"), }) - @Introspected public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @@ -161,4 +161,3 @@ public interface Visitor { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 4833e9bb0c3f..894be11f9a48 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -108,4 +108,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index 57bfbd6cde1e..12b0767e4c5d 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -108,4 +108,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayTest.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayTest.java index ada36fef3307..73bf52133d82 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ArrayTest.java @@ -180,4 +180,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/BigCat.java index fa07e32b111b..30428a0cc13b 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/BigCat.java @@ -139,4 +139,3 @@ public T accept(Cat.Visitor visitor) { return visitor.visitBigCat(this); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Capitalization.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Capitalization.java index beb23fa517ef..1c336c264c30 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Capitalization.java @@ -236,4 +236,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Cat.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Cat.java index 982b338732f1..6b80d7014fb4 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Cat.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Cat.java @@ -104,4 +104,3 @@ public T accept(Animal.Visitor visitor) { return visitor.visitCat(this); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Category.java index cd76561eb199..b32429998ee4 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Category.java @@ -124,4 +124,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ClassModel.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ClassModel.java index c83da3edffc2..e34876e515a9 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ClassModel.java @@ -96,4 +96,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Dog.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Dog.java index 457370dd111b..197134c5f5c8 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Dog.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Dog.java @@ -104,4 +104,3 @@ public T accept(Animal.Visitor visitor) { return visitor.visitDog(this); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumArrays.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumArrays.java index 245c893ea7bb..47420e2582e1 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumArrays.java @@ -201,4 +201,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumClass.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumClass.java index f01bfc417554..554a38266044 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumClass.java @@ -59,4 +59,3 @@ public static EnumClass fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumTest.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumTest.java index 538fefcddf8b..316226794515 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/EnumTest.java @@ -344,4 +344,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 338a831b06f4..e26190033d8c 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -137,4 +137,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FormatTest.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FormatTest.java index bf04172eaed6..15b95d48c6ae 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/FormatTest.java @@ -492,4 +492,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 6c0c508a0cc9..766206d889a8 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -103,4 +103,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MapTest.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MapTest.java index 8e75fda18bf8..21c7af41e2e5 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MapTest.java @@ -247,4 +247,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index acd8c687c621..f8ebb8d19d0a 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -167,4 +167,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Model200Response.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Model200Response.java index b73b5f706df1..81fd42cf4d0b 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Model200Response.java @@ -125,4 +125,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelApiResponse.java index 8ad5eb409231..296a330daaaa 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -153,4 +153,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelClient.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelClient.java index 316ee1b815db..96f144445ed5 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelClient.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelClient.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelFile.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelFile.java index ebf2bf26e124..99c9b69ede21 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelFile.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelFile.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelList.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelList.java index 8d401eaecbb7..fb03ecbfb1c9 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelList.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelReturn.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelReturn.java index ffb8e2866fde..9fcaf3d92d4b 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ModelReturn.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Name.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Name.java index fbafb9ddb237..82c05cae310c 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Name.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Name.java @@ -158,4 +158,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/NumberOnly.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/NumberOnly.java index 524f0f73889d..47382a31b3dc 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/NumberOnly.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Order.java index 34586a948b70..abc8804ecc3d 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Order.java @@ -273,4 +273,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterComposite.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterComposite.java index 05afbae43074..f16dee370bc5 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterComposite.java @@ -153,4 +153,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterEnum.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterEnum.java index 5cf96d109321..7527b326d541 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/OuterEnum.java @@ -59,4 +59,3 @@ public static OuterEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Pet.java index 08d1ff69dbda..0ff26ba3a4c9 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Pet.java @@ -293,4 +293,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ReadOnlyFirst.java index aee94b6cffdb..8cdb2121d4fc 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -113,4 +113,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/SpecialModelName.java index 259c4ac7c997..1081de28584a 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/SpecialModelName.java @@ -97,4 +97,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Tag.java index 247a7273a86f..10a517e331de 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/Tag.java @@ -124,4 +124,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderDefault.java index 47b7b737f37b..6a271eda7dc1 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -217,4 +217,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderExample.java index 7e3c01f4662f..6b85ff291258 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -245,4 +245,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/User.java index b8bd0f009986..48ef19107ead 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/User.java @@ -292,4 +292,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/XmlItem.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/XmlItem.java index 8d0aca42fed3..9ea2cc51fce9 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/model/XmlItem.java @@ -956,4 +956,3 @@ private String toIndentedString(Object o) { } } - diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java index d4f171e4c495..906b0a8e59f7 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java @@ -46,7 +46,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "CAT"), @JsonSubTypes.Type(value = Dog.class, name = "DOG"), }) - public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @javax.annotation.Nonnull diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java index bac4545e7e55..5e695de3dd96 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java @@ -42,7 +42,6 @@ allowSetters = true // allows the className to be set during deserialization ) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) - public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; @javax.annotation.Nullable diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 7d3287533035..efccac2b1a5b 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -43,7 +43,6 @@ allowSetters = true // allows the type to be set during deserialization ) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) - public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; @javax.annotation.Nullable diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java index ced4f9b31bb0..1177dd212a01 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java @@ -42,7 +42,6 @@ allowSetters = true // allows the className to be set during deserialization ) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true) - public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; @javax.annotation.Nullable diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java index b92aab7dc725..879ea92fe06d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -348,7 +348,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 1acf73166a6c..27f93218e02d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -64,7 +64,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java index 81d2b80817b7..66b7fb7005b8 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -128,7 +128,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -161,7 +160,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -194,7 +192,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -227,7 +224,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -260,7 +256,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -293,7 +288,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -338,7 +332,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -383,7 +376,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -461,7 +453,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -506,7 +497,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 01ae30df66b1..23e416d1f175 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -49,7 +49,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildWithNullable.class, name = "ChildWithNullable"), }) - public class ParentWithNullable { /** * Gets or Sets type @@ -139,7 +138,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index d956eec0ce1a..581fcc6c6a3a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -37,10 +37,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -56,8 +56,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -114,7 +113,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ea7b682f2740..ed478eed1b45 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -38,10 +38,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -57,8 +57,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -115,7 +114,6 @@ public List getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 957e51a26c22..d35e4077b043 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -37,10 +37,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -56,8 +56,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -114,7 +113,6 @@ public Boolean getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e5f2a700681c..ad120f1546a6 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -45,50 +45,40 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -111,8 +101,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -145,8 +134,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -179,8 +167,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -213,8 +200,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -247,8 +233,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -281,8 +266,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -315,8 +299,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -349,8 +332,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -375,8 +357,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -401,8 +382,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * Get anytype2 * @return anytype2 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -427,8 +407,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * Get anytype3 * @return anytype3 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -442,7 +421,6 @@ public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 1d3aa6aa79df..95a3ccf5cf94 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -37,10 +37,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -56,8 +56,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -114,7 +113,6 @@ public Integer getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 08090c876bae..5b44dbc02bdc 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -38,10 +38,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -57,8 +57,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -115,7 +114,6 @@ public BigDecimal getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 889e43891ea2..6166b390d044 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -37,10 +37,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -56,8 +56,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -114,7 +113,6 @@ public Map getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 8b779bcb0f2b..b1da50df056f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -37,10 +37,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -56,8 +56,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -114,7 +113,6 @@ public String getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index f62cf986f2c5..039d683f1a70 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -35,6 +35,7 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -48,12 +49,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } @@ -68,8 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -94,8 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -109,7 +106,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 3268072dde76..d47374c9b774 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -35,10 +35,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -76,7 +75,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List this.arrayArrayNumber = arrayArrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 9a2cc4f2cd56..d4b4ddae2557 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -35,10 +35,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -76,7 +75,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index b513a4b9ebb5..32d1f6cb51d9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -37,18 +37,16 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -71,8 +69,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -105,8 +102,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -139,8 +135,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -154,7 +149,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -127,8 +124,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -161,8 +157,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -176,7 +171,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index d45573450000..ea1de5fa60eb 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -37,6 +37,7 @@ @JsonTypeName("Enum_Test") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -74,10 +75,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -115,10 +114,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -154,10 +151,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -193,14 +188,11 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -215,8 +207,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -241,8 +232,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -267,8 +257,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -293,8 +282,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -319,8 +307,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -334,7 +321,6 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java index e96a02bcd023..fb56554f5ad9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java @@ -31,10 +31,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class File { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public File() { } @@ -49,8 +49,7 @@ public File sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -64,7 +63,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 250122ef1808..c858a6c77c64 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -36,14 +36,13 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private File file; + @javax.annotation.Nullable private File file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -58,8 +57,7 @@ public FileSchemaTestClass file(@javax.annotation.Nullable File file) { * Get file * @return file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getFile() { @@ -92,8 +90,7 @@ public FileSchemaTestClass addFilesItem(File filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -107,7 +104,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index 93940d641d01..41abb3d8e031 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -50,62 +50,49 @@ @JsonTypeName("format_test") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -122,8 +109,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -150,8 +136,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -176,8 +161,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -204,8 +188,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -232,8 +215,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -260,8 +242,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -286,8 +267,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -312,8 +292,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -338,8 +317,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -364,8 +342,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -390,8 +367,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -416,8 +392,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -442,8 +417,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -468,8 +442,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -483,7 +456,6 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 9dc90d1f3cea..e218b2b0ea3c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -33,14 +33,13 @@ @JsonTypeName("hasOnlyReadOnly") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -59,8 +58,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { @@ -84,7 +81,6 @@ public String getFoo() { - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 81c20684340b..894dc46ef1ee 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -36,10 +36,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -75,18 +75,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -109,8 +105,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -143,8 +138,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -177,8 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -211,8 +204,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -226,7 +218,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 85e8725ad6f3..19e1db469286 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -38,18 +38,16 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -64,8 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -90,8 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -124,8 +120,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -139,7 +134,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index 05d89779ec12..a6948dc89026 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -33,14 +33,13 @@ @JsonTypeName("200_response") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -55,8 +54,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -81,8 +79,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -96,7 +93,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 831e6c8580a5..6c8f9acf82fc 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -34,18 +34,16 @@ @JsonTypeName("ApiResponse") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -60,8 +58,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -86,8 +83,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -112,8 +108,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -127,7 +122,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index 712b3cf6b47c..9eded310ebfa 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -32,10 +32,10 @@ @JsonTypeName("List") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -50,8 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -65,7 +64,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index c2c62f72330c..e54e89cde970 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -32,10 +32,10 @@ @JsonTypeName("Return") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -50,8 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -65,7 +64,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java index bbe70280caef..9d58d40fe7b1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -34,22 +34,19 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -74,8 +71,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,8 +110,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -135,8 +129,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { @@ -145,7 +138,6 @@ public Integer get123number() { - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 1d49eb406fed..cfe95a3741e9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -32,10 +32,10 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -50,8 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -65,7 +64,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java index dc6d52dc2091..01c4c5df4844 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -37,22 +37,19 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -90,14 +87,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -112,8 +106,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -138,8 +131,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -164,8 +156,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -190,8 +181,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -216,8 +206,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { @@ -257,7 +245,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index e919c4e6d9e1..d601fd20db02 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -34,18 +34,16 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -60,8 +58,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -86,8 +83,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -112,8 +108,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isMyBoolean() { @@ -127,7 +122,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 3fd31774a9dd..c7bd625a5bd9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -44,26 +44,22 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -101,10 +97,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -145,8 +138,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -171,8 +163,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -205,8 +196,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -240,8 +230,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -266,8 +255,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -281,7 +269,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e59d26515366..b74517b9faae 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -32,14 +32,13 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -56,8 +55,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -92,7 +89,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 30f18df8bd54..1f663279b008 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -32,10 +32,10 @@ @JsonTypeName("$special[model.name]") @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -50,8 +50,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -65,7 +64,6 @@ public SpecialModelName() { this.$specialPropertyName = $specialPropertyName; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index bdb029f73197..b1b0b18e0226 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -32,14 +32,13 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -54,8 +53,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -80,8 +78,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +92,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index f6c5a693e8a0..14aa8cbdb9da 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -39,26 +39,22 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -73,8 +69,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -99,8 +94,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -125,8 +119,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -151,8 +144,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -185,8 +177,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -200,7 +191,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 90c368d7a770..b1d53cf76f46 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -40,30 +40,25 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -78,8 +73,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -104,8 +98,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -130,8 +123,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -156,8 +148,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -182,8 +173,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -216,8 +206,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -231,7 +220,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java index 453196da0143..58c95a16126d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -38,38 +38,31 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -84,8 +77,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -110,8 +102,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -136,8 +127,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -162,8 +152,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -188,8 +177,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -214,8 +202,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -240,8 +227,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -266,8 +252,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -281,7 +266,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index bc3a8faa2f06..c6a69940c79d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -63,122 +63,94 @@ }) @javax.annotation.concurrent.Immutable @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -193,8 +165,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -219,8 +190,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -245,8 +215,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -271,8 +240,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isAttributeBoolean() { @@ -305,8 +273,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -331,8 +298,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -357,8 +323,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -383,8 +348,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -409,8 +373,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNameBoolean() { @@ -443,8 +406,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -477,8 +439,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -503,8 +464,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -529,8 +489,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -555,8 +514,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -581,8 +539,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixBoolean() { @@ -615,8 +572,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -649,8 +605,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -675,8 +630,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -701,8 +655,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -727,8 +680,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -753,8 +705,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNamespaceBoolean() { @@ -787,8 +738,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -821,8 +771,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -847,8 +796,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -873,8 +821,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -899,8 +846,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -925,8 +871,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixNsBoolean() { @@ -959,8 +904,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -993,8 +937,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -1008,7 +951,6 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre this.prefixNsWrappedArray = prefixNsWrappedArray; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 0c553d4d5465..9cd2bdae754a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -112,7 +112,6 @@ public void setMapOfMapProperty(@javax.annotation.Nullable Map this.arrayArrayNumber = arrayArrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index c8599dbbed7c..f3d46916faa9 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -75,7 +75,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java index c7c200f5d822..d7a28aa8a99e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -153,7 +153,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java index 711954504a10..5b9f26d91600 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java @@ -348,7 +348,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -440,7 +439,6 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 3daf00a0bf22..255aa7c80dea 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -106,7 +106,6 @@ public void setSomeMap(@javax.annotation.Nullable Map someMa this.someMap = someMap; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java index 7ce22df97f02..8be3e1502ede 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java @@ -63,7 +63,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 35722d4b49ae..3f47c42db94a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -106,7 +106,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java index 3b6433673ce0..6c446b295f88 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java @@ -63,7 +63,6 @@ public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index a4319ee148f4..395eecaf8b53 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -65,7 +65,6 @@ public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java index 5c3caaddee2a..7d91c7b7219d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java @@ -544,7 +544,6 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 93ec4a4d3e42..b222d1b254f9 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -83,7 +83,6 @@ public String getFoo() { - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 372ba15fd5f0..432642164a2c 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -60,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } @@ -74,7 +73,6 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage this.nullableMessage = JsonNullable.of(nullableMessage); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java index 4a6edec42b17..f0096608166d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java @@ -225,7 +225,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c477490fecf4..4ef07d0e7771 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -138,7 +138,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java index bc3f047eb677..0ae7f98da360 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java @@ -95,7 +95,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 1f223a208037..5c9f00076ec1 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -126,7 +126,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java index ad8cb01001f7..f8d50bc17620 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java @@ -64,7 +64,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java index 38bb09bc7e24..314794ba50b5 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -64,7 +64,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java index 4210b7231525..02743692ef5a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java @@ -144,7 +144,6 @@ public Integer get123number() { - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java index dd98a8eb6148..025797b02fcb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java @@ -119,7 +119,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -153,7 +152,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -187,7 +185,6 @@ public Boolean isBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable isBooleanProp_JsonNullable() { return booleanProp; } @@ -221,7 +218,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -255,7 +251,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -289,7 +284,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -335,7 +329,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -381,7 +374,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -461,7 +453,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -507,7 +498,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -598,7 +588,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java index 42037dafe838..341017c96d26 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -64,7 +64,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index b1859152dedb..b142da153783 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -175,7 +175,6 @@ public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java index c92dba628820..80d273485e49 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java @@ -256,7 +256,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java index f29ddc8cf85c..5eaffd627671 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -126,7 +126,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 6d0241a56b5a..88cf19fe07a3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -64,7 +64,6 @@ public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 5d28d9b93ac2..f85b446ee97f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -46,7 +46,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildWithNullable.class, name = "ChildWithNullable"), }) - public class ParentWithNullable { /** * Gets or Sets type @@ -136,7 +135,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } @@ -150,7 +148,6 @@ public void setNullableProperty(@javax.annotation.Nullable String nullableProper this.nullableProperty = JsonNullable.of(nullableProperty); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java index 915191b2c837..cd3b65eb29af 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java @@ -280,7 +280,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index fb5c683390f5..77a1b972aca4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -91,7 +91,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java index f3de79349a73..8d7cee198797 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -64,7 +64,6 @@ public SpecialModelName() { this.$specialPropertyName = $specialPropertyName; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java index 73425f59e755..4cd5eba8e135 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java @@ -94,7 +94,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 4b02c3f99998..c16c1794cb13 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -114,7 +114,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java index d8934e887694..2f662d273d23 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java @@ -280,7 +280,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 9debf0e54b4a..86207d66fc3b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -32,10 +32,10 @@ AdditionalPropertiesAnyType.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -51,8 +51,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0ca63318ea10..973aa96ab5ce 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -33,10 +33,10 @@ AdditionalPropertiesArray.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -52,8 +52,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 198098998991..345ef2db7d27 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -32,10 +32,10 @@ AdditionalPropertiesBoolean.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -51,8 +51,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index fe25bc34ed8a..95b20ab1c452 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -44,50 +44,40 @@ AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3 }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -110,8 +100,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -143,8 +132,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -176,8 +164,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -209,8 +196,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -242,8 +228,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -275,8 +260,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -308,8 +292,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -341,8 +324,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -366,8 +348,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -391,8 +372,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * Get anytype2 * @return anytype2 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -416,8 +396,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * Get anytype3 * @return anytype3 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 95004c43bea6..908c12949c84 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -32,10 +32,10 @@ AdditionalPropertiesInteger.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -51,8 +51,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 6a2e2be227e8..d04cf67a7a7f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -33,10 +33,10 @@ AdditionalPropertiesNumber.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -52,8 +52,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 5fbc22151d4c..99ce043986fc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -32,10 +32,10 @@ AdditionalPropertiesObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -51,8 +51,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index eb29c72010b1..4834a62d9e41 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -32,10 +32,10 @@ AdditionalPropertiesString.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -51,8 +51,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java index 5e764d85a6cb..37483276f394 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,12 +48,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -67,8 +66,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -92,8 +90,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f58e3255492..c49cc5f2bc55 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f3d46916faa9..4b662a61dbcc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java index 771578abd0ac..c9b8d66152d9 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java index 073996fa7a07..4f340150c8b9 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java @@ -34,6 +34,7 @@ BigCat.JSON_PROPERTY_KIND }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -79,10 +80,8 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_KIND = "kind"; - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -98,8 +97,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * Get kind * @return kind */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java index 6cd94422b1cc..e34fd05e3c37 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java index ca385024c9d5..7eeca2cbb16c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -45,8 +46,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -62,8 +62,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java index 50b6ff1d6a27..46b862b17d1d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java index dbf6964fdad2..ad6952b6eb7f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java index 0be09220e7df..9614edc8acc4 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java index 8004beff9756..77e5abc774b0 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java index 42c505b11899..8578245ac910 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java index a5667a13859d..575301e41b9c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java @@ -36,6 +36,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -73,10 +74,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -114,10 +113,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -153,10 +150,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -192,14 +187,11 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -214,8 +206,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -239,8 +230,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -264,8 +254,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -289,8 +278,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -314,8 +302,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 6c10cc7d053f..a033667c4620 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java index 0e6b8b1ea930..18528edab039 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java @@ -49,62 +49,49 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -121,8 +108,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -148,8 +134,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -173,8 +158,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -200,8 +184,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -227,8 +210,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -254,8 +236,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -279,8 +260,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -304,8 +284,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -329,8 +308,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -354,8 +332,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -379,8 +356,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -404,8 +380,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -429,8 +404,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -454,8 +428,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6dc15593463d..ae4b6ba19d1b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java index 03fcf6214210..cf65489efd5f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 27b5ebbd852b..402e91a9a0b7 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java index 0b83c6011405..dcd9d4a0b913 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0938a865de43..01a8f08a5e4e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java index 73f5779de22f..5f6966cf7b29 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java index f8d50bc17620..ce8b0d976724 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java index 314794ba50b5..0496b4e8ac67 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java index 4789044c8530..45a18bdb0475 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java index 341017c96d26..b3d7cd4222fd 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java index 0136b2dcc833..834d17fb706a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java index c9b0b884ef29..b1979a9e65da 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java index 8cfe9533fe17..dff2cdd7187a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e0e1e8bb4bbd..7fd8fc08906c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java index 74687fe9f3ba..ef5f1a8cea7b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("$special[model.name]") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java index ebcb558efe5f..027b8542d358 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index af3db9484123..0f6bc121797e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -38,26 +38,22 @@ TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -72,8 +68,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -97,8 +92,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -122,8 +116,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -147,8 +140,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -180,8 +172,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java index ba7a6d198a2a..81249dce0276 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -39,30 +39,25 @@ TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -77,8 +72,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -102,8 +96,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -127,8 +120,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -152,8 +144,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -177,8 +168,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -210,8 +200,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java index 9d11826fc6b6..019c8bd1f88b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java index 0ff945d70a11..f1f62d3f1094 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java @@ -62,122 +62,94 @@ XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -192,8 +164,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -217,8 +188,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -242,8 +212,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -267,8 +236,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -300,8 +268,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -325,8 +292,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -350,8 +316,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -375,8 +340,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -400,8 +364,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -433,8 +396,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -466,8 +428,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -491,8 +452,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -516,8 +476,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -541,8 +500,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -566,8 +524,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -599,8 +556,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -632,8 +588,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -657,8 +612,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -682,8 +636,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -707,8 +660,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -732,8 +684,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -765,8 +716,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -798,8 +748,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -823,8 +772,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -848,8 +796,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -873,8 +820,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -898,8 +844,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -931,8 +876,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -964,8 +908,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesAnyType.md index 5158bd815e67..3501c6ebfcc8 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesAnyType.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesAnyType.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesArray.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesArray.md index 9edcf46b0e44..54fdc4e5352f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesArray.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesArray.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesBoolean.md index 1e1ed764a56e..c9a8c1bc7bac 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesBoolean.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesBoolean.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesClass.md index 79402f75c68c..4ec7043f8f09 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesClass.md @@ -20,4 +20,3 @@ |**anytype3** | **Object** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesInteger.md index cbc1673c059b..d23b85e2349b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesInteger.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesInteger.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesNumber.md index 0bd133ccf09a..0ae9ffb3e039 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesNumber.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesNumber.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesObject.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesObject.md index 3f419f8551ff..ce0e6fb65d3f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesObject.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesObject.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesString.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesString.md index 269a1961cf88..451a708dceea 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesString.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/AdditionalPropertiesString.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Animal.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Animal.md index d9b32f14c88a..540bfec69bce 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Animal.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Animal.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfArrayOfNumberOnly.md index 0188db3eb131..237ef6876b5a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfNumberOnly.md index a5753530aada..48d5474e10ac 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayNumber** | **List<BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayTest.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayTest.md index 36077c9df300..1bfb727e450a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayTest.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ArrayTest.md @@ -12,4 +12,3 @@ |**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/BigCat.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/BigCat.md index d317a0617f37..fdaa72122e52 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/BigCat.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/BigCat.md @@ -21,4 +21,3 @@ | JAGUARS | "jaguars" | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Capitalization.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Capitalization.md index 82a812711de2..0b2455e5863f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Capitalization.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Capitalization.md @@ -15,4 +15,3 @@ |**ATT_NAME** | **String** | Name of the pet | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Cat.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Cat.md index 390dd519c8ce..04b42c7dc5ba 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Cat.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Cat.md @@ -10,4 +10,3 @@ |**declawed** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Category.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Category.md index ab6d1ec334dc..f33915619ccb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Category.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ClassModel.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ClassModel.md index af46dea1f6c8..58f279eeb404 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ClassModel.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ClassModel.md @@ -11,4 +11,3 @@ Model for testing model with \"_class\" property |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Client.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Client.md index ef07b4ab8b9d..414196529f07 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Client.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Client.md @@ -10,4 +10,3 @@ |**client** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Dog.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Dog.md index 972c981c0d05..4692cd2b4a53 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Dog.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Dog.md @@ -10,4 +10,3 @@ |**breed** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumArrays.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumArrays.md index b2222d5beb25..58c010444806 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumArrays.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumArrays.md @@ -29,4 +29,3 @@ | CRAB | "crab" | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumClass.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumClass.md index b314590a7591..7a4c4ec692cb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumClass.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumClass.md @@ -12,4 +12,3 @@ * `_XYZ_` (value: `"(xyz)"`) - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumTest.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumTest.md index bf2def484c6d..c3910dc0bb4f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumTest.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/EnumTest.md @@ -52,4 +52,3 @@ | NUMBER_MINUS_1_DOT_2 | -1.2 | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FileSchemaTestClass.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FileSchemaTestClass.md index 85d1a0636694..f5d57cfd409f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FileSchemaTestClass.md @@ -11,4 +11,3 @@ |**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FormatTest.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FormatTest.md index 5c36e3616e7d..6f050f5f5a24 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FormatTest.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FormatTest.md @@ -23,4 +23,3 @@ |**bigDecimal** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/HasOnlyReadOnly.md index 29da5205dbba..38dfd19f5a82 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/HasOnlyReadOnly.md @@ -11,4 +11,3 @@ |**foo** | **String** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MapTest.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MapTest.md index 54380188e1d6..b68397073bfb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MapTest.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MapTest.md @@ -22,4 +22,3 @@ | LOWER | "lower" | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MixedPropertiesAndAdditionalPropertiesClass.md index d8ba815078e3..ffb646aca748 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,4 +12,3 @@ |**map** | [**Map<String, Animal>**](Animal.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Model200Response.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Model200Response.md index 109411580c62..14100fcc25bb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Model200Response.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Model200Response.md @@ -12,4 +12,3 @@ Model for testing model name starting with number |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelApiResponse.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelApiResponse.md index e374c2dd2dec..e59fea0970b9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelApiResponse.md @@ -12,4 +12,3 @@ |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelFile.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelFile.md index adcde984f527..61c9020e62ae 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelFile.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelFile.md @@ -11,4 +11,3 @@ Must be named `File` for test. |**sourceURI** | **String** | Test capitalization | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelList.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelList.md index f93ab7dde8d4..2e28e551301c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelList.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelList.md @@ -10,4 +10,3 @@ |**_123list** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelReturn.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelReturn.md index 0bd356861eb7..d307e6fbd935 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelReturn.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ModelReturn.md @@ -11,4 +11,3 @@ Model for testing reserved words |**_return** | **Integer** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Name.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Name.md index c901d9435309..002cad3f3320 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Name.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Name.md @@ -14,4 +14,3 @@ Model for testing model name same as property name |**_123number** | **Integer** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/NumberOnly.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/NumberOnly.md index b8ed1a4cfae1..ca181cdaf816 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/NumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/NumberOnly.md @@ -10,4 +10,3 @@ |**justNumber** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Order.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Order.md index 386508ee4b07..5cf0ac9dd69a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Order.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Order.md @@ -25,4 +25,3 @@ | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterComposite.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterComposite.md index 98b56e0763ff..19601002fd28 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterComposite.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterComposite.md @@ -12,4 +12,3 @@ |**myBoolean** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterEnum.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterEnum.md index 1f9b723eb8e7..97cfc1e9a952 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterEnum.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/OuterEnum.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Pet.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Pet.md index 54af77a9f5a7..6b2d97b7a92d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Pet.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ReadOnlyFirst.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ReadOnlyFirst.md index ad6af7ee155f..138406406d37 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/ReadOnlyFirst.md @@ -11,4 +11,3 @@ |**baz** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/SpecialModelName.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/SpecialModelName.md index 4b6a06e36224..b60e8286f6de 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/SpecialModelName.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/SpecialModelName.md @@ -10,4 +10,3 @@ |**$specialPropertyName** | **Long** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Tag.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Tag.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderDefault.md index 71a9f3dc9027..dc5e2ae57e41 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderDefault.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderDefault.md @@ -14,4 +14,3 @@ |**arrayItem** | **List<Integer>** | | | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderExample.md index 9e410c666e44..fbe9c0d79efa 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderExample.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/TypeHolderExample.md @@ -15,4 +15,3 @@ |**arrayItem** | **List<Integer>** | | | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/User.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/User.md index 08813e4b10b4..8e45ff46a2a7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/User.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/User.md @@ -17,4 +17,3 @@ |**userStatus** | **Integer** | User Status | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/XmlItem.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/XmlItem.md index 349b62bed64e..33fd0ff6ed3c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/XmlItem.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/XmlItem.md @@ -38,4 +38,3 @@ |**prefixNsWrappedArray** | **List<Integer>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 16e17dbc803e..bda2fecca84e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index a41d26d11460..a7e40bcb8e7a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -106,7 +106,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesAnyType object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 78b73ae76ab3..f7ddee8b9e18 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -107,7 +107,6 @@ public List getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesArray object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 2527c24dc02a..a29d8c650175 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -106,7 +106,6 @@ public Boolean getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesBoolean object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b485defda6ea..f15705198502 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -433,7 +433,6 @@ public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } - /** * Return true if this AdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 56987101352b..f4f74bac31c5 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -106,7 +106,6 @@ public Integer getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesInteger object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index d61bb3d272f3..96e4bdf9e584 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -107,7 +107,6 @@ public BigDecimal getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesNumber object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 9cd6382eba72..395ff0698875 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -107,7 +107,6 @@ public Map getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesObject object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 6c0b11d6e027..f0fad5aac309 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -106,7 +106,6 @@ public String getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesString object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java index 6b6e59d34913..bb41ef83d8e9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java @@ -37,6 +37,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,7 +48,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"), }) - public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @javax.annotation.Nonnull @@ -109,7 +109,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Animal object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 5510fb44e7cd..de2e9224ebae 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -76,7 +76,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List this.arrayArrayNumber = arrayArrayNumber; } - /** * Return true if this ArrayOfArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 2d594551dab5..5b03d964c5ef 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -76,7 +76,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - /** * Return true if this ArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java index 3ae301ac9bf7..67f242fbec0a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -152,7 +152,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnum = new ArrayList<>(); @@ -175,7 +173,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - /** * Return true if this EnumArrays object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java index e67f09cebf91..554708b0311d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java @@ -76,7 +76,6 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; @javax.annotation.Nullable private EnumStringEnum enumString; @@ -117,7 +116,6 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; @@ -156,7 +154,6 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; @javax.annotation.Nullable private EnumIntegerEnum enumInteger; @@ -195,7 +192,6 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; @javax.annotation.Nullable private EnumNumberEnum enumNumber; @@ -331,7 +327,6 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } - /** * Return true if this Enum_Test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 170ad2b8b492..8f8f13e13a95 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -106,7 +106,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - /** * Return true if this FileSchemaTestClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java index 9719e61e53d5..c69987013232 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java @@ -471,7 +471,6 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } - /** * Return true if this format_test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 10721debfd1d..e329c92ccd73 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -86,7 +86,6 @@ public String getFoo() { - /** * Return true if this hasOnlyReadOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java index dffb29de558f..a32eb5c7efde 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java @@ -77,7 +77,6 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); @@ -224,7 +223,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - /** * Return true if this MapTest object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 4397d19483ff..fdd6902dbb39 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -138,7 +138,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - /** * Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java index 35c20d8ca6a8..57a47ce73248 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java @@ -96,7 +96,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - /** * Return true if this 200_response object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 15a4a419b283..929e13686f77 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -126,7 +126,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java index b9a89f3a17e4..b5f13a8ab788 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java @@ -66,7 +66,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - /** * Return true if this File object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java index 1b91713f4454..f90755e1c986 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java @@ -66,7 +66,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - /** * Return true if this List object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java index 96d2ac44fe71..b4b9c9ce6e07 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -66,7 +66,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - /** * Return true if this Return object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java index 56f543a8e558..c45f02ca6853 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java @@ -145,7 +145,6 @@ public Integer get123number() { - /** * Return true if this Name object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java index 4a496bd97f4c..7acdb7a4692a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -66,7 +66,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - /** * Return true if this NumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java index bb4bcea84ae6..4efc36d6db84 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java @@ -92,7 +92,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @javax.annotation.Nullable private StatusEnum status; @@ -253,7 +252,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java index 26773fbe640b..d639745c01c1 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -126,7 +126,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - /** * Return true if this OuterComposite object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java index ea0266cd031c..b396472516a7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java @@ -102,7 +102,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @javax.annotation.Nullable private StatusEnum status; @@ -276,7 +275,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 1900fe83eedb..dbd72aa4868e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -93,7 +93,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - /** * Return true if this ReadOnlyFirst object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java index e3d5ef03d1ab..4f5612159d60 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -66,7 +66,6 @@ public SpecialModelName() { this.$specialPropertyName = $specialPropertyName; } - /** * Return true if this $special[model.name] object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java index ebad74cb005e..3699d0b0c03e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java @@ -95,7 +95,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 1fecc3118086..a557d263bd0e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -196,7 +196,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - /** * Return true if this TypeHolderDefault object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3f6d27cbf4aa..1034b1c2fd86 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -226,7 +226,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - /** * Return true if this TypeHolderExample object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java index efde0d59cfe3..09a5e983d7cb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java @@ -275,7 +275,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - /** * Return true if this User object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java index d5ee1d235c48..f4fed83a64b4 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java @@ -980,7 +980,6 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre this.prefixNsWrappedArray = prefixNsWrappedArray; } - /** * Return true if this XmlItem object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesAnyType.md index 5158bd815e67..3501c6ebfcc8 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesAnyType.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesAnyType.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesArray.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesArray.md index 9edcf46b0e44..54fdc4e5352f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesArray.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesArray.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesBoolean.md index 1e1ed764a56e..c9a8c1bc7bac 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesBoolean.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesBoolean.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesClass.md index 79402f75c68c..4ec7043f8f09 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesClass.md @@ -20,4 +20,3 @@ |**anytype3** | **Object** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesInteger.md index cbc1673c059b..d23b85e2349b 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesInteger.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesInteger.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesNumber.md index 0bd133ccf09a..0ae9ffb3e039 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesNumber.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesNumber.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesObject.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesObject.md index 3f419f8551ff..ce0e6fb65d3f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesObject.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesObject.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesString.md b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesString.md index 269a1961cf88..451a708dceea 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesString.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AdditionalPropertiesString.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Animal.md b/samples/client/petstore/java/jersey2-java8/docs/Animal.md index d9b32f14c88a..540bfec69bce 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Animal.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Animal.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java8/docs/ArrayOfArrayOfNumberOnly.md index 0188db3eb131..237ef6876b5a 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ArrayOfArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/jersey2-java8/docs/ArrayOfNumberOnly.md index a5753530aada..48d5474e10ac 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayNumber** | **List<BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ArrayTest.md b/samples/client/petstore/java/jersey2-java8/docs/ArrayTest.md index 36077c9df300..1bfb727e450a 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ArrayTest.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ArrayTest.md @@ -12,4 +12,3 @@ |**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/BigCat.md b/samples/client/petstore/java/jersey2-java8/docs/BigCat.md index d317a0617f37..fdaa72122e52 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/BigCat.md +++ b/samples/client/petstore/java/jersey2-java8/docs/BigCat.md @@ -21,4 +21,3 @@ | JAGUARS | "jaguars" | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Capitalization.md b/samples/client/petstore/java/jersey2-java8/docs/Capitalization.md index 82a812711de2..0b2455e5863f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Capitalization.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Capitalization.md @@ -15,4 +15,3 @@ |**ATT_NAME** | **String** | Name of the pet | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Cat.md b/samples/client/petstore/java/jersey2-java8/docs/Cat.md index 390dd519c8ce..04b42c7dc5ba 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Cat.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Cat.md @@ -10,4 +10,3 @@ |**declawed** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Category.md b/samples/client/petstore/java/jersey2-java8/docs/Category.md index ab6d1ec334dc..f33915619ccb 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Category.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ClassModel.md b/samples/client/petstore/java/jersey2-java8/docs/ClassModel.md index af46dea1f6c8..58f279eeb404 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ClassModel.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ClassModel.md @@ -11,4 +11,3 @@ Model for testing model with \"_class\" property |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Client.md b/samples/client/petstore/java/jersey2-java8/docs/Client.md index ef07b4ab8b9d..414196529f07 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Client.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Client.md @@ -10,4 +10,3 @@ |**client** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Dog.md b/samples/client/petstore/java/jersey2-java8/docs/Dog.md index 972c981c0d05..4692cd2b4a53 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Dog.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Dog.md @@ -10,4 +10,3 @@ |**breed** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/EnumArrays.md b/samples/client/petstore/java/jersey2-java8/docs/EnumArrays.md index b2222d5beb25..58c010444806 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/EnumArrays.md +++ b/samples/client/petstore/java/jersey2-java8/docs/EnumArrays.md @@ -29,4 +29,3 @@ | CRAB | "crab" | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/EnumClass.md b/samples/client/petstore/java/jersey2-java8/docs/EnumClass.md index b314590a7591..7a4c4ec692cb 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/EnumClass.md +++ b/samples/client/petstore/java/jersey2-java8/docs/EnumClass.md @@ -12,4 +12,3 @@ * `_XYZ_` (value: `"(xyz)"`) - diff --git a/samples/client/petstore/java/jersey2-java8/docs/EnumTest.md b/samples/client/petstore/java/jersey2-java8/docs/EnumTest.md index bf2def484c6d..c3910dc0bb4f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/EnumTest.md +++ b/samples/client/petstore/java/jersey2-java8/docs/EnumTest.md @@ -52,4 +52,3 @@ | NUMBER_MINUS_1_DOT_2 | -1.2 | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/FileSchemaTestClass.md b/samples/client/petstore/java/jersey2-java8/docs/FileSchemaTestClass.md index 85d1a0636694..f5d57cfd409f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FileSchemaTestClass.md @@ -11,4 +11,3 @@ |**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/FormatTest.md b/samples/client/petstore/java/jersey2-java8/docs/FormatTest.md index 9c68c3080e13..ef3bcad87fdf 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FormatTest.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FormatTest.md @@ -23,4 +23,3 @@ |**bigDecimal** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/jersey2-java8/docs/HasOnlyReadOnly.md index 29da5205dbba..38dfd19f5a82 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/jersey2-java8/docs/HasOnlyReadOnly.md @@ -11,4 +11,3 @@ |**foo** | **String** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/MapTest.md b/samples/client/petstore/java/jersey2-java8/docs/MapTest.md index 54380188e1d6..b68397073bfb 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/MapTest.md +++ b/samples/client/petstore/java/jersey2-java8/docs/MapTest.md @@ -22,4 +22,3 @@ | LOWER | "lower" | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/jersey2-java8/docs/MixedPropertiesAndAdditionalPropertiesClass.md index a5ddf0faa6a9..5d0f2a7b6a42 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey2-java8/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,4 +12,3 @@ |**map** | [**Map<String, Animal>**](Animal.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Model200Response.md b/samples/client/petstore/java/jersey2-java8/docs/Model200Response.md index 109411580c62..14100fcc25bb 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Model200Response.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Model200Response.md @@ -12,4 +12,3 @@ Model for testing model name starting with number |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ModelApiResponse.md b/samples/client/petstore/java/jersey2-java8/docs/ModelApiResponse.md index e374c2dd2dec..e59fea0970b9 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ModelApiResponse.md @@ -12,4 +12,3 @@ |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ModelFile.md b/samples/client/petstore/java/jersey2-java8/docs/ModelFile.md index adcde984f527..61c9020e62ae 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ModelFile.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ModelFile.md @@ -11,4 +11,3 @@ Must be named `File` for test. |**sourceURI** | **String** | Test capitalization | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ModelList.md b/samples/client/petstore/java/jersey2-java8/docs/ModelList.md index f93ab7dde8d4..2e28e551301c 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ModelList.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ModelList.md @@ -10,4 +10,3 @@ |**_123list** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ModelReturn.md b/samples/client/petstore/java/jersey2-java8/docs/ModelReturn.md index 0bd356861eb7..d307e6fbd935 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ModelReturn.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ModelReturn.md @@ -11,4 +11,3 @@ Model for testing reserved words |**_return** | **Integer** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Name.md b/samples/client/petstore/java/jersey2-java8/docs/Name.md index c901d9435309..002cad3f3320 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Name.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Name.md @@ -14,4 +14,3 @@ Model for testing model name same as property name |**_123number** | **Integer** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/NumberOnly.md b/samples/client/petstore/java/jersey2-java8/docs/NumberOnly.md index b8ed1a4cfae1..ca181cdaf816 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/NumberOnly.md +++ b/samples/client/petstore/java/jersey2-java8/docs/NumberOnly.md @@ -10,4 +10,3 @@ |**justNumber** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Order.md b/samples/client/petstore/java/jersey2-java8/docs/Order.md index 27af32855c5c..21c4c8efc7ba 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Order.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Order.md @@ -25,4 +25,3 @@ | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/OuterComposite.md b/samples/client/petstore/java/jersey2-java8/docs/OuterComposite.md index 98b56e0763ff..19601002fd28 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/OuterComposite.md +++ b/samples/client/petstore/java/jersey2-java8/docs/OuterComposite.md @@ -12,4 +12,3 @@ |**myBoolean** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/OuterEnum.md b/samples/client/petstore/java/jersey2-java8/docs/OuterEnum.md index 1f9b723eb8e7..97cfc1e9a952 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/OuterEnum.md +++ b/samples/client/petstore/java/jersey2-java8/docs/OuterEnum.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Pet.md b/samples/client/petstore/java/jersey2-java8/docs/Pet.md index 54af77a9f5a7..6b2d97b7a92d 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Pet.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/ReadOnlyFirst.md b/samples/client/petstore/java/jersey2-java8/docs/ReadOnlyFirst.md index ad6af7ee155f..138406406d37 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/java/jersey2-java8/docs/ReadOnlyFirst.md @@ -11,4 +11,3 @@ |**baz** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/SpecialModelName.md b/samples/client/petstore/java/jersey2-java8/docs/SpecialModelName.md index 4b6a06e36224..b60e8286f6de 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/SpecialModelName.md +++ b/samples/client/petstore/java/jersey2-java8/docs/SpecialModelName.md @@ -10,4 +10,3 @@ |**$specialPropertyName** | **Long** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/Tag.md b/samples/client/petstore/java/jersey2-java8/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/Tag.md +++ b/samples/client/petstore/java/jersey2-java8/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md index 71a9f3dc9027..dc5e2ae57e41 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md +++ b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md @@ -14,4 +14,3 @@ |**arrayItem** | **List<Integer>** | | | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md index 9e410c666e44..fbe9c0d79efa 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md +++ b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md @@ -15,4 +15,3 @@ |**arrayItem** | **List<Integer>** | | | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/User.md b/samples/client/petstore/java/jersey2-java8/docs/User.md index 08813e4b10b4..8e45ff46a2a7 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/User.md +++ b/samples/client/petstore/java/jersey2-java8/docs/User.md @@ -17,4 +17,3 @@ |**userStatus** | **Integer** | User Status | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/docs/XmlItem.md b/samples/client/petstore/java/jersey2-java8/docs/XmlItem.md index 349b62bed64e..33fd0ff6ed3c 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/XmlItem.md +++ b/samples/client/petstore/java/jersey2-java8/docs/XmlItem.md @@ -38,4 +38,3 @@ |**prefixNsWrappedArray** | **List<Integer>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 16e17dbc803e..bda2fecca84e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index a41d26d11460..a7e40bcb8e7a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -106,7 +106,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesAnyType object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 78b73ae76ab3..f7ddee8b9e18 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -107,7 +107,6 @@ public List getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesArray object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 2527c24dc02a..a29d8c650175 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -106,7 +106,6 @@ public Boolean getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesBoolean object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b485defda6ea..f15705198502 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -433,7 +433,6 @@ public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; } - /** * Return true if this AdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 56987101352b..f4f74bac31c5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -106,7 +106,6 @@ public Integer getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesInteger object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index d61bb3d272f3..96e4bdf9e584 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -107,7 +107,6 @@ public BigDecimal getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesNumber object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 9cd6382eba72..395ff0698875 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -107,7 +107,6 @@ public Map getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesObject object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 6c0b11d6e027..f0fad5aac309 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -106,7 +106,6 @@ public String getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this AdditionalPropertiesString object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index 6b6e59d34913..bb41ef83d8e9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -37,6 +37,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,7 +48,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"), }) - public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @javax.annotation.Nonnull @@ -109,7 +109,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Animal object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 5510fb44e7cd..de2e9224ebae 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -76,7 +76,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List this.arrayArrayNumber = arrayArrayNumber; } - /** * Return true if this ArrayOfArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 2d594551dab5..5b03d964c5ef 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -76,7 +76,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - /** * Return true if this ArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index 3ae301ac9bf7..67f242fbec0a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -152,7 +152,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnum = new ArrayList<>(); @@ -175,7 +173,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - /** * Return true if this EnumArrays object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index e67f09cebf91..554708b0311d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -76,7 +76,6 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; @javax.annotation.Nullable private EnumStringEnum enumString; @@ -117,7 +116,6 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; @@ -156,7 +154,6 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; @javax.annotation.Nullable private EnumIntegerEnum enumInteger; @@ -195,7 +192,6 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; @javax.annotation.Nullable private EnumNumberEnum enumNumber; @@ -331,7 +327,6 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; } - /** * Return true if this Enum_Test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 170ad2b8b492..8f8f13e13a95 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -106,7 +106,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - /** * Return true if this FileSchemaTestClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index 511fdaa161b2..590f87dc4252 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -471,7 +471,6 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } - /** * Return true if this format_test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 10721debfd1d..e329c92ccd73 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -86,7 +86,6 @@ public String getFoo() { - /** * Return true if this hasOnlyReadOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index dffb29de558f..a32eb5c7efde 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -77,7 +77,6 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); @@ -224,7 +223,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - /** * Return true if this MapTest object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0cdae9a6d433..e1b5b35b176e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -138,7 +138,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - /** * Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 35c20d8ca6a8..57a47ce73248 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -96,7 +96,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - /** * Return true if this 200_response object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 15a4a419b283..929e13686f77 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -126,7 +126,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java index b9a89f3a17e4..b5f13a8ab788 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java @@ -66,7 +66,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - /** * Return true if this File object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java index 1b91713f4454..f90755e1c986 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java @@ -66,7 +66,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - /** * Return true if this List object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 96d2ac44fe71..b4b9c9ce6e07 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -66,7 +66,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - /** * Return true if this Return object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 56f543a8e558..c45f02ca6853 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -145,7 +145,6 @@ public Integer get123number() { - /** * Return true if this Name object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index 4a496bd97f4c..7acdb7a4692a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -66,7 +66,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - /** * Return true if this NumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 6193d72decd2..7c2cc469ab86 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -92,7 +92,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @javax.annotation.Nullable private StatusEnum status; @@ -253,7 +252,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index 26773fbe640b..d639745c01c1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -126,7 +126,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - /** * Return true if this OuterComposite object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index ea0266cd031c..b396472516a7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -102,7 +102,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @javax.annotation.Nullable private StatusEnum status; @@ -276,7 +275,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 1900fe83eedb..dbd72aa4868e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -93,7 +93,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - /** * Return true if this ReadOnlyFirst object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index e3d5ef03d1ab..4f5612159d60 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -66,7 +66,6 @@ public SpecialModelName() { this.$specialPropertyName = $specialPropertyName; } - /** * Return true if this $special[model.name] object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index ebad74cb005e..3699d0b0c03e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -95,7 +95,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 1fecc3118086..a557d263bd0e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -196,7 +196,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - /** * Return true if this TypeHolderDefault object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3f6d27cbf4aa..1034b1c2fd86 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -226,7 +226,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; } - /** * Return true if this TypeHolderExample object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index efde0d59cfe3..09a5e983d7cb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -275,7 +275,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - /** * Return true if this User object is equal to o. */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java index d5ee1d235c48..f4fed83a64b4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java @@ -980,7 +980,6 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre this.prefixNsWrappedArray = prefixNsWrappedArray; } - /** * Return true if this XmlItem object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3-oneOf/docs/PostRequest.md b/samples/client/petstore/java/jersey3-oneOf/docs/PostRequest.md index 31f8574a5663..efab0d95a5da 100644 --- a/samples/client/petstore/java/jersey3-oneOf/docs/PostRequest.md +++ b/samples/client/petstore/java/jersey3-oneOf/docs/PostRequest.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3-oneOf/docs/SchemaA.md b/samples/client/petstore/java/jersey3-oneOf/docs/SchemaA.md index 8bb723343aaa..973043138df3 100644 --- a/samples/client/petstore/java/jersey3-oneOf/docs/SchemaA.md +++ b/samples/client/petstore/java/jersey3-oneOf/docs/SchemaA.md @@ -10,4 +10,3 @@ |**propA** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 03947bfb32bb..fb4697bf3663 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/PostRequest.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/PostRequest.java index f5f4ae0cb501..81e03a88fb89 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/PostRequest.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/PostRequest.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = PostRequest.PostRequestDeserializer.class) @JsonSerialize(using = PostRequest.PostRequestSerializer.class) public class PostRequest extends AbstractOpenApiSchema { @@ -150,7 +151,6 @@ public PostRequest getNullValue(DeserializationContext ctxt) throws JsonMappingE public PostRequest() { super("oneOf", Boolean.FALSE); } - public PostRequest(SchemaA o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java index 4edcfcaa78e9..dd5170e75623 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java @@ -34,10 +34,10 @@ }) @JsonTypeName("schemaA") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SchemaA { public static final String JSON_PROPERTY_PROP_A = "propA"; - @jakarta.annotation.Nullable - private String propA; + @jakarta.annotation.Nullable private String propA; public SchemaA() { } @@ -51,8 +51,7 @@ public SchemaA propA(@jakarta.annotation.Nullable String propA) { * Get propA * @return propA */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROP_A) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROP_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropA() { @@ -66,7 +65,6 @@ public void setPropA(@jakarta.annotation.Nullable String propA) { this.propA = propA; } - /** * Return true if this schemaA object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/jersey3/docs/AdditionalPropertiesClass.md index 83051d9be44b..3bda53c4d3ce 100644 --- a/samples/client/petstore/java/jersey3/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey3/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ |**mapWithUndeclaredPropertiesString** | **Map<String, String>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Animal.md b/samples/client/petstore/java/jersey3/docs/Animal.md index d9b32f14c88a..540bfec69bce 100644 --- a/samples/client/petstore/java/jersey3/docs/Animal.md +++ b/samples/client/petstore/java/jersey3/docs/Animal.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Apple.md b/samples/client/petstore/java/jersey3/docs/Apple.md index 0ef7a92c74d6..19a409261d0c 100644 --- a/samples/client/petstore/java/jersey3/docs/Apple.md +++ b/samples/client/petstore/java/jersey3/docs/Apple.md @@ -11,4 +11,3 @@ |**origin** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/AppleReq.md b/samples/client/petstore/java/jersey3/docs/AppleReq.md index 989e1cfedd1e..4dae60bf73d3 100644 --- a/samples/client/petstore/java/jersey3/docs/AppleReq.md +++ b/samples/client/petstore/java/jersey3/docs/AppleReq.md @@ -11,4 +11,3 @@ |**mealy** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/jersey3/docs/ArrayOfArrayOfNumberOnly.md index 0188db3eb131..237ef6876b5a 100644 --- a/samples/client/petstore/java/jersey3/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey3/docs/ArrayOfArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/jersey3/docs/ArrayOfNumberOnly.md index a5753530aada..48d5474e10ac 100644 --- a/samples/client/petstore/java/jersey3/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/jersey3/docs/ArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayNumber** | **List<BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ArrayTest.md b/samples/client/petstore/java/jersey3/docs/ArrayTest.md index ae2672809aa9..35d4269f7096 100644 --- a/samples/client/petstore/java/jersey3/docs/ArrayTest.md +++ b/samples/client/petstore/java/jersey3/docs/ArrayTest.md @@ -12,4 +12,3 @@ |**arrayArrayOfModel** | **List<List<@Valid ReadOnlyFirst>>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Banana.md b/samples/client/petstore/java/jersey3/docs/Banana.md index 5356d17ee700..cf0c789b457b 100644 --- a/samples/client/petstore/java/jersey3/docs/Banana.md +++ b/samples/client/petstore/java/jersey3/docs/Banana.md @@ -10,4 +10,3 @@ |**lengthCm** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/BananaReq.md b/samples/client/petstore/java/jersey3/docs/BananaReq.md index 22ebe1a7105f..2a45b8a318bf 100644 --- a/samples/client/petstore/java/jersey3/docs/BananaReq.md +++ b/samples/client/petstore/java/jersey3/docs/BananaReq.md @@ -11,4 +11,3 @@ |**sweet** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/BasquePig.md b/samples/client/petstore/java/jersey3/docs/BasquePig.md index 160cb71c321f..ab4d63f698e7 100644 --- a/samples/client/petstore/java/jersey3/docs/BasquePig.md +++ b/samples/client/petstore/java/jersey3/docs/BasquePig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/Capitalization.md b/samples/client/petstore/java/jersey3/docs/Capitalization.md index 82a812711de2..0b2455e5863f 100644 --- a/samples/client/petstore/java/jersey3/docs/Capitalization.md +++ b/samples/client/petstore/java/jersey3/docs/Capitalization.md @@ -15,4 +15,3 @@ |**ATT_NAME** | **String** | Name of the pet | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Cat.md b/samples/client/petstore/java/jersey3/docs/Cat.md index 390dd519c8ce..04b42c7dc5ba 100644 --- a/samples/client/petstore/java/jersey3/docs/Cat.md +++ b/samples/client/petstore/java/jersey3/docs/Cat.md @@ -10,4 +10,3 @@ |**declawed** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Category.md b/samples/client/petstore/java/jersey3/docs/Category.md index ab6d1ec334dc..f33915619ccb 100644 --- a/samples/client/petstore/java/jersey3/docs/Category.md +++ b/samples/client/petstore/java/jersey3/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/ChildCat.md b/samples/client/petstore/java/jersey3/docs/ChildCat.md index 258d87e56998..de4d3300bc95 100644 --- a/samples/client/petstore/java/jersey3/docs/ChildCat.md +++ b/samples/client/petstore/java/jersey3/docs/ChildCat.md @@ -19,4 +19,3 @@ | CHILD_CAT | "ChildCat" | - diff --git a/samples/client/petstore/java/jersey3/docs/ClassModel.md b/samples/client/petstore/java/jersey3/docs/ClassModel.md index af46dea1f6c8..58f279eeb404 100644 --- a/samples/client/petstore/java/jersey3/docs/ClassModel.md +++ b/samples/client/petstore/java/jersey3/docs/ClassModel.md @@ -11,4 +11,3 @@ Model for testing model with \"_class\" property |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Client.md b/samples/client/petstore/java/jersey3/docs/Client.md index ef07b4ab8b9d..414196529f07 100644 --- a/samples/client/petstore/java/jersey3/docs/Client.md +++ b/samples/client/petstore/java/jersey3/docs/Client.md @@ -10,4 +10,3 @@ |**client** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ComplexQuadrilateral.md b/samples/client/petstore/java/jersey3/docs/ComplexQuadrilateral.md index d0a4b1a0a758..0054df5be9f4 100644 --- a/samples/client/petstore/java/jersey3/docs/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/jersey3/docs/ComplexQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/DanishPig.md b/samples/client/petstore/java/jersey3/docs/DanishPig.md index 0b366d3cf2ff..161f758de85b 100644 --- a/samples/client/petstore/java/jersey3/docs/DanishPig.md +++ b/samples/client/petstore/java/jersey3/docs/DanishPig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/DeprecatedObject.md b/samples/client/petstore/java/jersey3/docs/DeprecatedObject.md index 48de1d624425..bbc0ccf6ed66 100644 --- a/samples/client/petstore/java/jersey3/docs/DeprecatedObject.md +++ b/samples/client/petstore/java/jersey3/docs/DeprecatedObject.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Dog.md b/samples/client/petstore/java/jersey3/docs/Dog.md index 972c981c0d05..4692cd2b4a53 100644 --- a/samples/client/petstore/java/jersey3/docs/Dog.md +++ b/samples/client/petstore/java/jersey3/docs/Dog.md @@ -10,4 +10,3 @@ |**breed** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Drawing.md b/samples/client/petstore/java/jersey3/docs/Drawing.md index 6b815fc4131b..87a8673fd2a4 100644 --- a/samples/client/petstore/java/jersey3/docs/Drawing.md +++ b/samples/client/petstore/java/jersey3/docs/Drawing.md @@ -13,4 +13,3 @@ |**shapes** | [**List<Shape>**](Shape.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/EnumArrays.md b/samples/client/petstore/java/jersey3/docs/EnumArrays.md index b2222d5beb25..58c010444806 100644 --- a/samples/client/petstore/java/jersey3/docs/EnumArrays.md +++ b/samples/client/petstore/java/jersey3/docs/EnumArrays.md @@ -29,4 +29,3 @@ | CRAB | "crab" | - diff --git a/samples/client/petstore/java/jersey3/docs/EnumClass.md b/samples/client/petstore/java/jersey3/docs/EnumClass.md index b314590a7591..7a4c4ec692cb 100644 --- a/samples/client/petstore/java/jersey3/docs/EnumClass.md +++ b/samples/client/petstore/java/jersey3/docs/EnumClass.md @@ -12,4 +12,3 @@ * `_XYZ_` (value: `"(xyz)"`) - diff --git a/samples/client/petstore/java/jersey3/docs/EnumTest.md b/samples/client/petstore/java/jersey3/docs/EnumTest.md index 3e226e18b50b..fca06e778491 100644 --- a/samples/client/petstore/java/jersey3/docs/EnumTest.md +++ b/samples/client/petstore/java/jersey3/docs/EnumTest.md @@ -65,4 +65,3 @@ | NUMBER_MINUS_1_DOT_2 | -1.2 | - diff --git a/samples/client/petstore/java/jersey3/docs/EquilateralTriangle.md b/samples/client/petstore/java/jersey3/docs/EquilateralTriangle.md index eade817feb3e..063b113ee700 100644 --- a/samples/client/petstore/java/jersey3/docs/EquilateralTriangle.md +++ b/samples/client/petstore/java/jersey3/docs/EquilateralTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/FileSchemaTestClass.md b/samples/client/petstore/java/jersey3/docs/FileSchemaTestClass.md index 85d1a0636694..f5d57cfd409f 100644 --- a/samples/client/petstore/java/jersey3/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/java/jersey3/docs/FileSchemaTestClass.md @@ -11,4 +11,3 @@ |**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Foo.md b/samples/client/petstore/java/jersey3/docs/Foo.md index 6b3f0556528a..9c59271b892e 100644 --- a/samples/client/petstore/java/jersey3/docs/Foo.md +++ b/samples/client/petstore/java/jersey3/docs/Foo.md @@ -10,4 +10,3 @@ |**bar** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/FooGetDefaultResponse.md b/samples/client/petstore/java/jersey3/docs/FooGetDefaultResponse.md index ff3d7a3a56c3..fb98b2bd3763 100644 --- a/samples/client/petstore/java/jersey3/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/java/jersey3/docs/FooGetDefaultResponse.md @@ -10,4 +10,3 @@ |**string** | [**Foo**](Foo.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/FormatTest.md b/samples/client/petstore/java/jersey3/docs/FormatTest.md index 01b8c777ae06..4397f81e22d4 100644 --- a/samples/client/petstore/java/jersey3/docs/FormatTest.md +++ b/samples/client/petstore/java/jersey3/docs/FormatTest.md @@ -25,4 +25,3 @@ |**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Fruit.md b/samples/client/petstore/java/jersey3/docs/Fruit.md index 41b3152250e1..1ca01a3fda08 100644 --- a/samples/client/petstore/java/jersey3/docs/Fruit.md +++ b/samples/client/petstore/java/jersey3/docs/Fruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/FruitReq.md b/samples/client/petstore/java/jersey3/docs/FruitReq.md index 9d9c875cd39a..27fcab15fc09 100644 --- a/samples/client/petstore/java/jersey3/docs/FruitReq.md +++ b/samples/client/petstore/java/jersey3/docs/FruitReq.md @@ -36,4 +36,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/GmFruit.md b/samples/client/petstore/java/jersey3/docs/GmFruit.md index c9dc50b92cb7..e182eaf5420c 100644 --- a/samples/client/petstore/java/jersey3/docs/GmFruit.md +++ b/samples/client/petstore/java/jersey3/docs/GmFruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/GrandparentAnimal.md b/samples/client/petstore/java/jersey3/docs/GrandparentAnimal.md index 9737408f2724..dbc2301c750a 100644 --- a/samples/client/petstore/java/jersey3/docs/GrandparentAnimal.md +++ b/samples/client/petstore/java/jersey3/docs/GrandparentAnimal.md @@ -10,4 +10,3 @@ |**petType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/jersey3/docs/HasOnlyReadOnly.md index 29da5205dbba..38dfd19f5a82 100644 --- a/samples/client/petstore/java/jersey3/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/jersey3/docs/HasOnlyReadOnly.md @@ -11,4 +11,3 @@ |**foo** | **String** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey3/docs/HealthCheckResult.md b/samples/client/petstore/java/jersey3/docs/HealthCheckResult.md index 4885e6f1cada..a2065216d66b 100644 --- a/samples/client/petstore/java/jersey3/docs/HealthCheckResult.md +++ b/samples/client/petstore/java/jersey3/docs/HealthCheckResult.md @@ -11,4 +11,3 @@ Just a string to inform instance is up and running. Make it nullable in hope to |**nullableMessage** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/IsoscelesTriangle.md b/samples/client/petstore/java/jersey3/docs/IsoscelesTriangle.md index 0bd5045bc68f..674bb2d975be 100644 --- a/samples/client/petstore/java/jersey3/docs/IsoscelesTriangle.md +++ b/samples/client/petstore/java/jersey3/docs/IsoscelesTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/Mammal.md b/samples/client/petstore/java/jersey3/docs/Mammal.md index 11bbff5e2ba9..8c881b7f5cb2 100644 --- a/samples/client/petstore/java/jersey3/docs/Mammal.md +++ b/samples/client/petstore/java/jersey3/docs/Mammal.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/MammalAnyof.md b/samples/client/petstore/java/jersey3/docs/MammalAnyof.md index 3fb117e293e2..811d679b3667 100644 --- a/samples/client/petstore/java/jersey3/docs/MammalAnyof.md +++ b/samples/client/petstore/java/jersey3/docs/MammalAnyof.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/MapTest.md b/samples/client/petstore/java/jersey3/docs/MapTest.md index 54380188e1d6..b68397073bfb 100644 --- a/samples/client/petstore/java/jersey3/docs/MapTest.md +++ b/samples/client/petstore/java/jersey3/docs/MapTest.md @@ -22,4 +22,3 @@ | LOWER | "lower" | - diff --git a/samples/client/petstore/java/jersey3/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/jersey3/docs/MixedPropertiesAndAdditionalPropertiesClass.md index a5ddf0faa6a9..5d0f2a7b6a42 100644 --- a/samples/client/petstore/java/jersey3/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/jersey3/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,4 +12,3 @@ |**map** | [**Map<String, Animal>**](Animal.md) | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Model200Response.md b/samples/client/petstore/java/jersey3/docs/Model200Response.md index 109411580c62..14100fcc25bb 100644 --- a/samples/client/petstore/java/jersey3/docs/Model200Response.md +++ b/samples/client/petstore/java/jersey3/docs/Model200Response.md @@ -12,4 +12,3 @@ Model for testing model name starting with number |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ModelApiResponse.md b/samples/client/petstore/java/jersey3/docs/ModelApiResponse.md index e374c2dd2dec..e59fea0970b9 100644 --- a/samples/client/petstore/java/jersey3/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/jersey3/docs/ModelApiResponse.md @@ -12,4 +12,3 @@ |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ModelFile.md b/samples/client/petstore/java/jersey3/docs/ModelFile.md index adcde984f527..61c9020e62ae 100644 --- a/samples/client/petstore/java/jersey3/docs/ModelFile.md +++ b/samples/client/petstore/java/jersey3/docs/ModelFile.md @@ -11,4 +11,3 @@ Must be named `File` for test. |**sourceURI** | **String** | Test capitalization | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ModelList.md b/samples/client/petstore/java/jersey3/docs/ModelList.md index f93ab7dde8d4..2e28e551301c 100644 --- a/samples/client/petstore/java/jersey3/docs/ModelList.md +++ b/samples/client/petstore/java/jersey3/docs/ModelList.md @@ -10,4 +10,3 @@ |**_123list** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ModelReturn.md b/samples/client/petstore/java/jersey3/docs/ModelReturn.md index 0bd356861eb7..d307e6fbd935 100644 --- a/samples/client/petstore/java/jersey3/docs/ModelReturn.md +++ b/samples/client/petstore/java/jersey3/docs/ModelReturn.md @@ -11,4 +11,3 @@ Model for testing reserved words |**_return** | **Integer** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Name.md b/samples/client/petstore/java/jersey3/docs/Name.md index c901d9435309..002cad3f3320 100644 --- a/samples/client/petstore/java/jersey3/docs/Name.md +++ b/samples/client/petstore/java/jersey3/docs/Name.md @@ -14,4 +14,3 @@ Model for testing model name same as property name |**_123number** | **Integer** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/jersey3/docs/NullableClass.md b/samples/client/petstore/java/jersey3/docs/NullableClass.md index fa98c5c6d984..3f6e8619c87e 100644 --- a/samples/client/petstore/java/jersey3/docs/NullableClass.md +++ b/samples/client/petstore/java/jersey3/docs/NullableClass.md @@ -21,4 +21,3 @@ |**objectItemsNullable** | **Map<String, Object>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/NullableShape.md b/samples/client/petstore/java/jersey3/docs/NullableShape.md index 60c45b268406..ae217f582b2e 100644 --- a/samples/client/petstore/java/jersey3/docs/NullableShape.md +++ b/samples/client/petstore/java/jersey3/docs/NullableShape.md @@ -38,4 +38,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/NumberOnly.md b/samples/client/petstore/java/jersey3/docs/NumberOnly.md index b8ed1a4cfae1..ca181cdaf816 100644 --- a/samples/client/petstore/java/jersey3/docs/NumberOnly.md +++ b/samples/client/petstore/java/jersey3/docs/NumberOnly.md @@ -10,4 +10,3 @@ |**justNumber** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/java/jersey3/docs/ObjectWithDeprecatedFields.md index f1cf571f4c09..37a3aad5547b 100644 --- a/samples/client/petstore/java/jersey3/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/java/jersey3/docs/ObjectWithDeprecatedFields.md @@ -13,4 +13,3 @@ |**bars** | **List<String>** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Order.md b/samples/client/petstore/java/jersey3/docs/Order.md index 27af32855c5c..21c4c8efc7ba 100644 --- a/samples/client/petstore/java/jersey3/docs/Order.md +++ b/samples/client/petstore/java/jersey3/docs/Order.md @@ -25,4 +25,3 @@ | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/jersey3/docs/OuterComposite.md b/samples/client/petstore/java/jersey3/docs/OuterComposite.md index 98b56e0763ff..19601002fd28 100644 --- a/samples/client/petstore/java/jersey3/docs/OuterComposite.md +++ b/samples/client/petstore/java/jersey3/docs/OuterComposite.md @@ -12,4 +12,3 @@ |**myBoolean** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/OuterEnum.md b/samples/client/petstore/java/jersey3/docs/OuterEnum.md index 1f9b723eb8e7..97cfc1e9a952 100644 --- a/samples/client/petstore/java/jersey3/docs/OuterEnum.md +++ b/samples/client/petstore/java/jersey3/docs/OuterEnum.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/jersey3/docs/OuterEnumDefaultValue.md b/samples/client/petstore/java/jersey3/docs/OuterEnumDefaultValue.md index cbc7f4ba54d2..16c6da73893a 100644 --- a/samples/client/petstore/java/jersey3/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/java/jersey3/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/jersey3/docs/OuterEnumInteger.md b/samples/client/petstore/java/jersey3/docs/OuterEnumInteger.md index f71dea30ad00..1691ce771b36 100644 --- a/samples/client/petstore/java/jersey3/docs/OuterEnumInteger.md +++ b/samples/client/petstore/java/jersey3/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/jersey3/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/java/jersey3/docs/OuterEnumIntegerDefaultValue.md index 99e6389f4278..e57bc124e364 100644 --- a/samples/client/petstore/java/jersey3/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/java/jersey3/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/jersey3/docs/ParentPet.md b/samples/client/petstore/java/jersey3/docs/ParentPet.md index 4992b88a6710..27b37b9d1d26 100644 --- a/samples/client/petstore/java/jersey3/docs/ParentPet.md +++ b/samples/client/petstore/java/jersey3/docs/ParentPet.md @@ -9,4 +9,3 @@ |------------ | ------------- | ------------- | -------------| - diff --git a/samples/client/petstore/java/jersey3/docs/Pet.md b/samples/client/petstore/java/jersey3/docs/Pet.md index 08dfd8623602..d7a1d925604c 100644 --- a/samples/client/petstore/java/jersey3/docs/Pet.md +++ b/samples/client/petstore/java/jersey3/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/petstore/java/jersey3/docs/Pig.md b/samples/client/petstore/java/jersey3/docs/Pig.md index f0a92bbe61b8..568f7f4d4074 100644 --- a/samples/client/petstore/java/jersey3/docs/Pig.md +++ b/samples/client/petstore/java/jersey3/docs/Pig.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/Quadrilateral.md b/samples/client/petstore/java/jersey3/docs/Quadrilateral.md index 83ffea0c742f..724e89359230 100644 --- a/samples/client/petstore/java/jersey3/docs/Quadrilateral.md +++ b/samples/client/petstore/java/jersey3/docs/Quadrilateral.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/QuadrilateralInterface.md b/samples/client/petstore/java/jersey3/docs/QuadrilateralInterface.md index 99451f3bd020..1817e338ff70 100644 --- a/samples/client/petstore/java/jersey3/docs/QuadrilateralInterface.md +++ b/samples/client/petstore/java/jersey3/docs/QuadrilateralInterface.md @@ -10,4 +10,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/ReadOnlyFirst.md b/samples/client/petstore/java/jersey3/docs/ReadOnlyFirst.md index ad6af7ee155f..138406406d37 100644 --- a/samples/client/petstore/java/jersey3/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/java/jersey3/docs/ReadOnlyFirst.md @@ -11,4 +11,3 @@ |**baz** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/ScaleneTriangle.md b/samples/client/petstore/java/jersey3/docs/ScaleneTriangle.md index c578f6cbfaab..fb2f1e798e74 100644 --- a/samples/client/petstore/java/jersey3/docs/ScaleneTriangle.md +++ b/samples/client/petstore/java/jersey3/docs/ScaleneTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/Shape.md b/samples/client/petstore/java/jersey3/docs/Shape.md index 9c237eefb048..57895ef4e1ba 100644 --- a/samples/client/petstore/java/jersey3/docs/Shape.md +++ b/samples/client/petstore/java/jersey3/docs/Shape.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/ShapeInterface.md b/samples/client/petstore/java/jersey3/docs/ShapeInterface.md index b4f981e3b566..e1d285bda6e6 100644 --- a/samples/client/petstore/java/jersey3/docs/ShapeInterface.md +++ b/samples/client/petstore/java/jersey3/docs/ShapeInterface.md @@ -10,4 +10,3 @@ |**shapeType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/ShapeOrNull.md b/samples/client/petstore/java/jersey3/docs/ShapeOrNull.md index 6a738c4b9870..bd3d6720c30f 100644 --- a/samples/client/petstore/java/jersey3/docs/ShapeOrNull.md +++ b/samples/client/petstore/java/jersey3/docs/ShapeOrNull.md @@ -38,4 +38,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/SimpleQuadrilateral.md b/samples/client/petstore/java/jersey3/docs/SimpleQuadrilateral.md index 52fb7d1a6a49..c4e88c259564 100644 --- a/samples/client/petstore/java/jersey3/docs/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/jersey3/docs/SimpleQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/SpecialModelName.md b/samples/client/petstore/java/jersey3/docs/SpecialModelName.md index e17d0d797b7f..5336911fcf74 100644 --- a/samples/client/petstore/java/jersey3/docs/SpecialModelName.md +++ b/samples/client/petstore/java/jersey3/docs/SpecialModelName.md @@ -11,4 +11,3 @@ |**specialModelName** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Tag.md b/samples/client/petstore/java/jersey3/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/petstore/java/jersey3/docs/Tag.md +++ b/samples/client/petstore/java/jersey3/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/java/jersey3/docs/TestInlineFreeformAdditionalPropertiesRequest.md index dc066e6c7dac..31f9e4136789 100644 --- a/samples/client/petstore/java/jersey3/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/java/jersey3/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -10,4 +10,3 @@ |**someProperty** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Triangle.md b/samples/client/petstore/java/jersey3/docs/Triangle.md index daf9d153ff61..8ca98989d719 100644 --- a/samples/client/petstore/java/jersey3/docs/Triangle.md +++ b/samples/client/petstore/java/jersey3/docs/Triangle.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/jersey3/docs/TriangleInterface.md b/samples/client/petstore/java/jersey3/docs/TriangleInterface.md index ef5fc7575f34..c684f27e8582 100644 --- a/samples/client/petstore/java/jersey3/docs/TriangleInterface.md +++ b/samples/client/petstore/java/jersey3/docs/TriangleInterface.md @@ -10,4 +10,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/User.md b/samples/client/petstore/java/jersey3/docs/User.md index 9e97dc35485f..0923cdf0c33f 100644 --- a/samples/client/petstore/java/jersey3/docs/User.md +++ b/samples/client/petstore/java/jersey3/docs/User.md @@ -21,4 +21,3 @@ |**anyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] | - diff --git a/samples/client/petstore/java/jersey3/docs/Whale.md b/samples/client/petstore/java/jersey3/docs/Whale.md index 30ce4bb82151..bec0b35bd000 100644 --- a/samples/client/petstore/java/jersey3/docs/Whale.md +++ b/samples/client/petstore/java/jersey3/docs/Whale.md @@ -12,4 +12,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/jersey3/docs/Zebra.md b/samples/client/petstore/java/jersey3/docs/Zebra.md index f7c4389b6456..3b9786866e50 100644 --- a/samples/client/petstore/java/jersey3/docs/Zebra.md +++ b/samples/client/petstore/java/jersey3/docs/Zebra.md @@ -21,4 +21,3 @@ | GREVYS | "grevys" | - diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index b455ffde1dbd..f285c7f72ebb 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -145,5 +145,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 795337f2d52b..a8c68f547891 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -104,7 +104,6 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMapProperty() { return mapProperty; } @@ -139,7 +138,6 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } @@ -164,18 +162,15 @@ public AdditionalPropertiesClass anytype1(@jakarta.annotation.Nullable Object an @jakarta.annotation.Nullable @JsonIgnore - public Object getAnytype1() { return anytype1.orElse(null); } @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnytype1_JsonNullable() { return anytype1; } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) public void setAnytype1_JsonNullable(JsonNullable anytype1) { this.anytype1 = anytype1; @@ -199,7 +194,6 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@jakarta.an @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; } @@ -225,7 +219,6 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@jakarta.an @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; } @@ -259,7 +252,6 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; } @@ -285,7 +277,6 @@ public AdditionalPropertiesClass emptyMap(@jakarta.annotation.Nullable Object em @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getEmptyMap() { return emptyMap; } @@ -319,7 +310,6 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; } @@ -331,7 +321,6 @@ public void setMapWithUndeclaredPropertiesString(@jakarta.annotation.Nullable Ma this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } - /** * Return true if this AdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java index 118df7958065..5c78ce20448e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java @@ -48,7 +48,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"), }) - public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; @jakarta.annotation.Nonnull @@ -75,7 +74,6 @@ public Animal className(@jakarta.annotation.Nonnull String className) { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getClassName() { return className; } @@ -101,7 +99,6 @@ public Animal color(@jakarta.annotation.Nullable String color) { @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getColor() { return color; } @@ -113,7 +110,6 @@ public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Animal object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java index 24e7849e22b6..b376c745eacd 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java @@ -62,7 +62,6 @@ public Apple cultivar(@jakarta.annotation.Nullable String cultivar) { @Pattern(regexp="^[a-zA-Z\\s]*$") @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCultivar() { return cultivar; } @@ -88,7 +87,6 @@ public Apple origin(@jakarta.annotation.Nullable String origin) { @Pattern(regexp="/^[A-Z\\s]*$/i") @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOrigin() { return origin; } @@ -100,7 +98,6 @@ public void setOrigin(@jakarta.annotation.Nullable String origin) { this.origin = origin; } - /** * Return true if this apple object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java index 73918b98ff7f..ed251cdf2965 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java @@ -63,7 +63,6 @@ public AppleReq cultivar(@jakarta.annotation.Nonnull String cultivar) { @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCultivar() { return cultivar; } @@ -89,7 +88,6 @@ public AppleReq mealy(@jakarta.annotation.Nullable Boolean mealy) { @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getMealy() { return mealy; } @@ -101,7 +99,6 @@ public void setMealy(@jakarta.annotation.Nullable Boolean mealy) { this.mealy = mealy; } - /** * Return true if this appleReq object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 7f4d13dbf205..609e061ac69e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,7 +68,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getArrayArrayNumber() { return arrayArrayNumber; } @@ -80,7 +79,6 @@ public void setArrayArrayNumber(@jakarta.annotation.Nullable List getArrayNumber() { return arrayNumber; } @@ -80,7 +79,6 @@ public void setArrayNumber(@jakarta.annotation.Nullable List arrayNu this.arrayNumber = arrayNumber; } - /** * Return true if this ArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java index 81b5130763e0..be54d8093f35 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,7 +77,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getArrayOfString() { return arrayOfString; } @@ -112,7 +111,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -147,7 +145,6 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } @@ -159,7 +156,6 @@ public void setArrayArrayOfModel(@jakarta.annotation.Nullable List getShapeOrNull_JsonNullable() { return shapeOrNull; } - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) public void setShapeOrNull_JsonNullable(JsonNullable shapeOrNull) { this.shapeOrNull = shapeOrNull; @@ -145,18 +141,15 @@ public Drawing nullableShape(@jakarta.annotation.Nullable NullableShape nullable @Valid @JsonIgnore - public NullableShape getNullableShape() { return nullableShape.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableShape_JsonNullable() { return nullableShape; } - @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) public void setNullableShape_JsonNullable(JsonNullable nullableShape) { this.nullableShape = nullableShape; @@ -189,7 +182,6 @@ public Drawing addShapesItem(Shape shapesItem) { @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getShapes() { return shapes; } @@ -238,7 +230,6 @@ public Fruit getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Drawing object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java index c171e5308d65..f7b66ff51c9d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,7 +133,6 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -167,7 +166,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getArrayEnum() { return arrayEnum; } @@ -179,7 +177,6 @@ public void setArrayEnum(@jakarta.annotation.Nullable List arrayE this.arrayEnum = arrayEnum; } - /** * Return true if this EnumArrays object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java index 156ca8f8972b..1cb49d5fe376 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -283,7 +283,6 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EnumStringEnum getEnumString() { return enumString; } @@ -310,7 +309,6 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -336,7 +334,6 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -362,7 +359,6 @@ public EnumTest enumIntegerOnly(@jakarta.annotation.Nullable EnumIntegerOnlyEnum @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; } @@ -388,7 +384,6 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -414,18 +409,15 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { @Valid @JsonIgnore - public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; @@ -450,7 +442,6 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -477,7 +468,6 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -504,7 +494,6 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } @@ -516,7 +505,6 @@ public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEn this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } - /** * Return true if this Enum_Test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 44732e013917..88c6c8f98b7f 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -66,7 +66,6 @@ public EquilateralTriangle shapeType(@jakarta.annotation.Nonnull String shapeTyp @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getShapeType() { return shapeType; } @@ -93,7 +92,6 @@ public EquilateralTriangle triangleType(@jakarta.annotation.Nonnull String trian @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTriangleType() { return triangleType; } @@ -142,7 +140,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this EquilateralTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ba770c57dd9b..19a58cbaacd5 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -65,7 +65,6 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ModelFile getFile() { return _file; } @@ -100,7 +99,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List<@Valid ModelFile> getFiles() { return files; } @@ -112,7 +110,6 @@ public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files) this.files = files; } - /** * Return true if this FileSchemaTestClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java index 62210e1b6ce4..62a7c26ef5d5 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java @@ -56,7 +56,6 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBar() { return bar; } @@ -68,7 +67,6 @@ public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; } - /** * Return true if this Foo object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index c18b124e09af..d5bfbcab517c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -59,7 +59,6 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Foo getString() { return string; } @@ -71,7 +70,6 @@ public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; } - /** * Return true if this _foo_get_default_response object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java index a82a6a123b79..b0c9a8e30d23 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java @@ -139,7 +139,6 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { @Min(10) @Max(100) @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getInteger() { return integer; } @@ -167,7 +166,6 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { @Min(20) @Max(200) @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getInt32() { return int32; } @@ -193,7 +191,6 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getInt64() { return int64; } @@ -223,7 +220,6 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { @DecimalMin("32.1") @DecimalMax("543.2") @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getNumber() { return number; } @@ -251,7 +247,6 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { @DecimalMin("54.3") @DecimalMax("987.6") @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Float getFloat() { return _float; } @@ -279,7 +274,6 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { @DecimalMin("67.8") @DecimalMax("123.4") @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getDouble() { return _double; } @@ -306,7 +300,6 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getDecimal() { return decimal; } @@ -332,7 +325,6 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { @Pattern(regexp="/[a-z]/i") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getString() { return string; } @@ -359,7 +351,6 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public byte[] getByte() { return _byte; } @@ -386,7 +377,6 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public File getBinary() { return binary; } @@ -414,7 +404,6 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDate() { return date; } @@ -441,7 +430,6 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getDateTime() { return dateTime; } @@ -468,7 +456,6 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getUuid() { return uuid; } @@ -495,7 +482,6 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { @Size(min=10,max=64) @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPassword() { return password; } @@ -521,7 +507,6 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW @Pattern(regexp="^\\d{10}$") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPatternWithDigits() { return patternWithDigits; } @@ -547,7 +532,6 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str @Pattern(regexp="/^image_\\d{1,3}$/i") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } @@ -559,7 +543,6 @@ public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } - /** * Return true if this format_test object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java index c819d5a93657..e755b2d0b544 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Fruit.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Fruit.FruitDeserializer.class) @JsonSerialize(using = Fruit.FruitSerializer.class) public class Fruit extends AbstractOpenApiSchema { @@ -149,7 +150,6 @@ public Fruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcepti public Fruit() { super("oneOf", Boolean.FALSE); } - public Fruit(Apple o) { super("oneOf", Boolean.TRUE); setActualInstance(o); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java index 17c9e85e05c1..41fdce25f7ff 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FruitReq.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = FruitReq.FruitReqDeserializer.class) @JsonSerialize(using = FruitReq.FruitReqSerializer.class) public class FruitReq extends AbstractOpenApiSchema { @@ -149,7 +150,6 @@ public FruitReq getNullValue(DeserializationContext ctxt) throws JsonMappingExce public FruitReq() { super("oneOf", Boolean.TRUE); } - public FruitReq(AppleReq o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java index 36ffb634603e..94fa7134dd72 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GmFruit.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using=GmFruit.GmFruitDeserializer.class) @JsonSerialize(using = GmFruit.GmFruitSerializer.class) public class GmFruit extends AbstractOpenApiSchema { @@ -129,7 +130,6 @@ public GmFruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcep public GmFruit() { super("anyOf", Boolean.FALSE); } - public GmFruit(Apple o) { super("anyOf", Boolean.TRUE); setActualInstance(o); diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index fbbe6f2788a1..9230b6e2c8bd 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -47,7 +47,6 @@ @JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"), @JsonSubTypes.Type(value = ParentPet.class, name = "ParentPet"), }) - public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; @jakarta.annotation.Nonnull @@ -70,7 +69,6 @@ public GrandparentAnimal petType(@jakarta.annotation.Nonnull String petType) { @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPetType() { return petType; } @@ -82,7 +80,6 @@ public void setPetType(@jakarta.annotation.Nonnull String petType) { this.petType = petType; } - /** * Return true if this GrandparentAnimal object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 2b6cd744bd21..ed2cd41956e8 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -67,7 +67,6 @@ public HasOnlyReadOnly( @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBar() { return bar; } @@ -83,14 +82,12 @@ public String getBar() { @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFoo() { return foo; } - /** * Return true if this hasOnlyReadOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java index cb1d09c13c50..47f1a68fbf63 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -58,18 +58,15 @@ public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nul @jakarta.annotation.Nullable @JsonIgnore - public String getNullableMessage() { return nullableMessage.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; @@ -79,7 +76,6 @@ public void setNullableMessage(@jakarta.annotation.Nullable String nullableMessa this.nullableMessage = JsonNullable.of(nullableMessage); } - /** * Return true if this HealthCheckResult object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index d116617abdd7..2285ecb619d2 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -62,7 +62,6 @@ public IsoscelesTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getShapeType() { return shapeType; } @@ -89,7 +88,6 @@ public IsoscelesTriangle triangleType(@jakarta.annotation.Nonnull String triangl @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTriangleType() { return triangleType; } @@ -101,7 +99,6 @@ public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this IsoscelesTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java index 6b46ceee645b..a21f86801afa 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Mammal.java @@ -65,6 +65,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Mammal.MammalDeserializer.class) @JsonSerialize(using = Mammal.MammalSerializer.class) public class Mammal extends AbstractOpenApiSchema { @@ -229,7 +230,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this mammal object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java index 90e11adaa73b..2cebd597e9f6 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MammalAnyof.java @@ -62,6 +62,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using=MammalAnyof.MammalAnyofDeserializer.class) @JsonSerialize(using = MammalAnyof.MammalAnyofSerializer.class) public class MammalAnyof extends AbstractOpenApiSchema { @@ -194,7 +195,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this mammal_anyof object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java index 03f3eda9cc3c..6df36889beb8 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java @@ -117,7 +117,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map> getMapMapOfString() { return mapMapOfString; } @@ -151,7 +150,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -185,7 +183,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getDirectMap() { return directMap; } @@ -219,7 +216,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getIndirectMap() { return indirectMap; } @@ -231,7 +227,6 @@ public void setIndirectMap(@jakarta.annotation.Nullable Map ind this.indirectMap = indirectMap; } - /** * Return true if this MapTest object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index eb9a5aef5007..049af0efbcea 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,7 +72,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UUID getUuid() { return uuid; } @@ -99,7 +98,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getDateTime() { return dateTime; } @@ -134,7 +132,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMap() { return map; } @@ -146,7 +143,6 @@ public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; } - /** * Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java index aabc6c471b2c..5d2727ddeba6 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,7 +62,6 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getName() { return name; } @@ -88,7 +87,6 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPropertyClass() { return propertyClass; } @@ -100,7 +98,6 @@ public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) this.propertyClass = propertyClass; } - /** * Return true if this 200_response object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 33bdc417985e..c301438f86e6 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,7 +67,6 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getCode() { return code; } @@ -93,7 +92,6 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -119,7 +117,6 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { return message; } @@ -131,7 +128,6 @@ public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java index 98a0e80e521d..a19fe95c4bd2 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java @@ -57,7 +57,6 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSourceURI() { return sourceURI; } @@ -69,7 +68,6 @@ public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - /** * Return true if this File object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java index 0434c06ae29c..91ce0bdd83f0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java @@ -57,7 +57,6 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String get123list() { return _123list; } @@ -69,7 +68,6 @@ public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; } - /** * Return true if this List object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java index 840f3dae748c..41deee996d80 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -57,7 +57,6 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getReturn() { return _return; } @@ -69,7 +68,6 @@ public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; } - /** * Return true if this Return object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java index 2bd14b77f3a1..e73afe664bd0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java @@ -82,7 +82,6 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getName() { return name; } @@ -103,7 +102,6 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSnakeCase() { return snakeCase; } @@ -124,7 +122,6 @@ public Name property(@jakarta.annotation.Nullable String property) { @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProperty() { return property; } @@ -145,14 +142,12 @@ public void setProperty(@jakarta.annotation.Nullable String property) { @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer get123number() { return _123number; } - /** * Return true if this Name object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java index 883f1cbba65c..d7a56b100354 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java @@ -115,18 +115,15 @@ public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerPro @jakarta.annotation.Nullable @JsonIgnore - public Integer getIntegerProp() { return integerProp.orElse(null); } @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; @@ -150,18 +147,15 @@ public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberPr @Valid @JsonIgnore - public BigDecimal getNumberProp() { return numberProp.orElse(null); } @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; @@ -184,18 +178,15 @@ public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanPro @jakarta.annotation.Nullable @JsonIgnore - public Boolean getBooleanProp() { return booleanProp.orElse(null); } @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; @@ -218,18 +209,15 @@ public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) @jakarta.annotation.Nullable @JsonIgnore - public String getStringProp() { return stringProp.orElse(null); } @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; @@ -253,18 +241,15 @@ public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { @Valid @JsonIgnore - public LocalDate getDateProp() { return dateProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; @@ -288,18 +273,15 @@ public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime da @Valid @JsonIgnore - public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; @@ -334,18 +316,15 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { @jakarta.annotation.Nullable @JsonIgnore - public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; @@ -380,18 +359,15 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab @jakarta.annotation.Nullable @JsonIgnore - public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; @@ -423,7 +399,6 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -460,18 +435,15 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable @jakarta.annotation.Nullable @JsonIgnore - public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; @@ -506,18 +478,15 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object @jakarta.annotation.Nullable @JsonIgnore - public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; @@ -549,7 +518,6 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Map getObjectItemsNullable() { return objectItemsNullable; } @@ -598,7 +566,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this NullableClass object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java index 429b0dde63eb..dbd57777a5d4 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java @@ -64,6 +64,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = NullableShape.NullableShapeDeserializer.class) @JsonSerialize(using = NullableShape.NullableShapeSerializer.class) public class NullableShape extends AbstractOpenApiSchema { @@ -208,7 +209,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this NullableShape object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java index 2ce68e240848..c31de0de19b3 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,7 +58,6 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getJustNumber() { return justNumber; } @@ -70,7 +69,6 @@ public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - /** * Return true if this NumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a79d8c67c625..613067f2a883 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -78,7 +78,6 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUuid() { return uuid; } @@ -108,7 +107,6 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getId() { return id; } @@ -139,7 +137,6 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -177,7 +174,6 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBars() { return bars; } @@ -190,7 +186,6 @@ public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; } - /** * Return true if this ObjectWithDeprecatedFields object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java index 1205e73cfcf7..9df26a70ec6a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java @@ -119,7 +119,6 @@ public Order id(@jakarta.annotation.Nullable Long id) { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getId() { return id; } @@ -145,7 +144,6 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPetId() { return petId; } @@ -171,7 +169,6 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getQuantity() { return quantity; } @@ -198,7 +195,6 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getShipDate() { return shipDate; } @@ -224,7 +220,6 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StatusEnum getStatus() { return status; } @@ -250,7 +245,6 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getComplete() { return complete; } @@ -262,7 +256,6 @@ public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java index 286cf92b75b8..624ade0fb4df 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -68,7 +68,6 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getMyNumber() { return myNumber; } @@ -94,7 +93,6 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMyString() { return myString; } @@ -120,7 +118,6 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getMyBoolean() { return myBoolean; } @@ -132,7 +129,6 @@ public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - /** * Return true if this OuterComposite object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java index 68ee6a8725e3..b67df3bddc6a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ParentPet.java @@ -50,7 +50,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"), }) - public class ParentPet extends GrandparentAnimal { public ParentPet() { } @@ -91,7 +90,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this ParentPet object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java index 0db1e4785521..0450e95765d3 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java @@ -122,7 +122,6 @@ public Pet id(@jakarta.annotation.Nullable Long id) { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getId() { return id; } @@ -149,7 +148,6 @@ public Pet category(@jakarta.annotation.Nullable Category category) { @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Category getCategory() { return category; } @@ -176,7 +174,6 @@ public Pet name(@jakarta.annotation.Nonnull String name) { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -211,7 +208,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getPhotoUrls() { return photoUrls; } @@ -246,7 +242,6 @@ public Pet addTagsItem(Tag tagsItem) { @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List<@Valid Tag> getTags() { return tags; } @@ -272,7 +267,6 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StatusEnum getStatus() { return status; } @@ -284,7 +278,6 @@ public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java index 16cb5a576e22..08c43a926ace 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pig.java @@ -64,6 +64,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Pig.PigDeserializer.class) @JsonSerialize(using = Pig.PigSerializer.class) public class Pig extends AbstractOpenApiSchema { @@ -208,7 +209,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Pig object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java index 3d0dea5e0ce3..8e357e16c50c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Quadrilateral.java @@ -64,6 +64,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Quadrilateral.QuadrilateralDeserializer.class) @JsonSerialize(using = Quadrilateral.QuadrilateralSerializer.class) public class Quadrilateral extends AbstractOpenApiSchema { @@ -208,7 +209,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Quadrilateral object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index b143ca302ec5..aae63d9a5a13 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -57,7 +57,6 @@ public QuadrilateralInterface quadrilateralType(@jakarta.annotation.Nonnull Stri @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuadrilateralType() { return quadrilateralType; } @@ -69,7 +68,6 @@ public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilatera this.quadrilateralType = quadrilateralType; } - /** * Return true if this QuadrilateralInterface object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 8cfa6a5ae6fc..305510cebbec 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -64,7 +64,6 @@ public ReadOnlyFirst( @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBar() { return bar; } @@ -85,7 +84,6 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBaz() { return baz; } @@ -97,7 +95,6 @@ public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; } - /** * Return true if this ReadOnlyFirst object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 3714690b9482..867019fc841d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -66,7 +66,6 @@ public ScaleneTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getShapeType() { return shapeType; } @@ -93,7 +92,6 @@ public ScaleneTriangle triangleType(@jakarta.annotation.Nonnull String triangleT @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTriangleType() { return triangleType; } @@ -142,7 +140,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this ScaleneTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java index efa80a0e1e0f..de6641551ad2 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java @@ -64,6 +64,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Shape.ShapeDeserializer.class) @JsonSerialize(using = Shape.ShapeSerializer.class) public class Shape extends AbstractOpenApiSchema { @@ -208,7 +209,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Shape object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java index c24a869e117d..afafa23ada0b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -57,7 +57,6 @@ public ShapeInterface shapeType(@jakarta.annotation.Nonnull String shapeType) { @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getShapeType() { return shapeType; } @@ -69,7 +68,6 @@ public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - /** * Return true if this ShapeInterface object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 5bf7e3480669..4d660d590e26 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -64,6 +64,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = ShapeOrNull.ShapeOrNullDeserializer.class) @JsonSerialize(using = ShapeOrNull.ShapeOrNullSerializer.class) public class ShapeOrNull extends AbstractOpenApiSchema { @@ -208,7 +209,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this ShapeOrNull object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 7fd5a7fc8f6f..ecbee090b816 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -66,7 +66,6 @@ public SimpleQuadrilateral shapeType(@jakarta.annotation.Nonnull String shapeTyp @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getShapeType() { return shapeType; } @@ -93,7 +92,6 @@ public SimpleQuadrilateral quadrilateralType(@jakarta.annotation.Nonnull String @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuadrilateralType() { return quadrilateralType; } @@ -142,7 +140,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this SimpleQuadrilateral object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java index ae88910475e1..556f06f5cc43 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -62,7 +62,6 @@ public SpecialModelName() { @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long get$SpecialPropertyName() { return $specialPropertyName; } @@ -88,7 +87,6 @@ public SpecialModelName specialModelName(@jakarta.annotation.Nullable String spe @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSpecialModelName() { return specialModelName; } @@ -100,7 +98,6 @@ public void setSpecialModelName(@jakarta.annotation.Nullable String specialModel this.specialModelName = specialModelName; } - /** * Return true if this _special_model.name_ object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java index 14fd4f1c7665..05eb00776118 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java @@ -61,7 +61,6 @@ public Tag id(@jakarta.annotation.Nullable Long id) { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getId() { return id; } @@ -87,7 +86,6 @@ public Tag name(@jakarta.annotation.Nullable String name) { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -99,7 +97,6 @@ public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index deeba97cf158..7d0e78366be6 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -61,7 +61,6 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSomeProperty() { return someProperty; } @@ -110,7 +109,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this testInlineFreeformAdditionalProperties_request object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java index 65bc16911cfa..7ca4cdf0a398 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Triangle.java @@ -65,6 +65,7 @@ import org.openapitools.client.JSON; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Triangle.TriangleDeserializer.class) @JsonSerialize(using = Triangle.TriangleSerializer.class) public class Triangle extends AbstractOpenApiSchema { @@ -229,7 +230,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Triangle object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java index 374c74068280..ffcb2eab3c25 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -57,7 +57,6 @@ public TriangleInterface triangleType(@jakarta.annotation.Nonnull String triangl @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTriangleType() { return triangleType; } @@ -69,7 +68,6 @@ public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this TriangleInterface object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java index f515fdb5a1f7..fe20a40bebdc 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java @@ -112,7 +112,6 @@ public User id(@jakarta.annotation.Nullable Long id) { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getId() { return id; } @@ -138,7 +137,6 @@ public User username(@jakarta.annotation.Nullable String username) { @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUsername() { return username; } @@ -164,7 +162,6 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFirstName() { return firstName; } @@ -190,7 +187,6 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLastName() { return lastName; } @@ -216,7 +212,6 @@ public User email(@jakarta.annotation.Nullable String email) { @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -242,7 +237,6 @@ public User password(@jakarta.annotation.Nullable String password) { @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassword() { return password; } @@ -268,7 +262,6 @@ public User phone(@jakarta.annotation.Nullable String phone) { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPhone() { return phone; } @@ -294,7 +287,6 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getUserStatus() { return userStatus; } @@ -320,7 +312,6 @@ public User objectWithNoDeclaredProps(@jakarta.annotation.Nullable Object object @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; } @@ -345,18 +336,15 @@ public User objectWithNoDeclaredPropsNullable(@jakarta.annotation.Nullable Objec @jakarta.annotation.Nullable @JsonIgnore - public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { return objectWithNoDeclaredPropsNullable; } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) public void setObjectWithNoDeclaredPropsNullable_JsonNullable(JsonNullable objectWithNoDeclaredPropsNullable) { this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable; @@ -379,18 +367,15 @@ public User anyTypeProp(@jakarta.annotation.Nullable Object anyTypeProp) { @jakarta.annotation.Nullable @JsonIgnore - public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypeProp_JsonNullable() { return anyTypeProp; } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) public void setAnyTypeProp_JsonNullable(JsonNullable anyTypeProp) { this.anyTypeProp = anyTypeProp; @@ -413,18 +398,15 @@ public User anyTypePropNullable(@jakarta.annotation.Nullable Object anyTypePropN @jakarta.annotation.Nullable @JsonIgnore - public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypePropNullable_JsonNullable() { return anyTypePropNullable; } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) public void setAnyTypePropNullable_JsonNullable(JsonNullable anyTypePropNullable) { this.anyTypePropNullable = anyTypePropNullable; @@ -434,7 +416,6 @@ public void setAnyTypePropNullable(@jakarta.annotation.Nullable Object anyTypePr this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } - /** * Return true if this User object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java index f82b8c58919a..83d48847f281 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java @@ -67,7 +67,6 @@ public Whale hasBaleen(@jakarta.annotation.Nullable Boolean hasBaleen) { @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getHasBaleen() { return hasBaleen; } @@ -93,7 +92,6 @@ public Whale hasTeeth(@jakarta.annotation.Nullable Boolean hasTeeth) { @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getHasTeeth() { return hasTeeth; } @@ -120,7 +118,6 @@ public Whale className(@jakarta.annotation.Nonnull String className) { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getClassName() { return className; } @@ -132,7 +129,6 @@ public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; } - /** * Return true if this whale object is equal to o. */ diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java index 7d2e7458855b..3642591d7d5b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java @@ -103,7 +103,6 @@ public Zebra type(@jakarta.annotation.Nullable TypeEnum type) { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -130,7 +129,6 @@ public Zebra className(@jakarta.annotation.Nonnull String className) { @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getClassName() { return className; } @@ -179,7 +177,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this zebra object is equal to o. */ diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java index c798b428fe25..3091f2c27890 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java @@ -38,7 +38,6 @@ /** * A category for a pet */ - public class Category { public static final String JSON_PROPERTY_ID = "id"; @@ -127,4 +126,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 7ea582a1bec1..fc53b652383a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,7 +40,6 @@ /** * Describes the result of uploading an image resource */ - public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; @@ -160,4 +159,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java index 20efbf432c47..75c24f52bb94 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java @@ -43,7 +43,6 @@ /** * An order for a pets from the pet store */ - public class Order { public static final String JSON_PROPERTY_ID = "id"; @@ -295,4 +294,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java index d07171344040..3dfd4dda8d50 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java @@ -47,7 +47,6 @@ /** * A pet for sale in the pet store */ - public class Pet { public static final String JSON_PROPERTY_ID = "id"; @@ -323,4 +322,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java index db5a74ca2be2..31c3ca9cc1f7 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java @@ -38,7 +38,6 @@ /** * A tag for a pet */ - public class Tag { public static final String JSON_PROPERTY_ID = "id"; @@ -127,4 +126,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java index 9856bbcead54..c6f5d6ce14c4 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java @@ -44,7 +44,6 @@ /** * A User who is purchasing from the pet store */ - public class User { public static final String JSON_PROPERTY_ID = "id"; @@ -322,4 +321,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java index e08314ab6827..0483901ed146 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -27,7 +27,6 @@ /** * A category for a pet */ - public class Category { public static final String JSON_PROPERTY_ID = "id"; @@ -112,4 +111,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 75df05dfaeff..fd87d78e23d3 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,7 +29,6 @@ /** * Describes the result of uploading an image resource */ - public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; @@ -143,4 +142,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java index eb683221585e..1600cd67dabe 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -32,7 +32,6 @@ /** * An order for a pets from the pet store */ - public class Order { public static final String JSON_PROPERTY_ID = "id"; @@ -268,4 +267,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java index 0e0720b77141..f675d7c5bf52 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -36,7 +36,6 @@ /** * A pet for sale in the pet store */ - public class Pet { public static final String JSON_PROPERTY_ID = "id"; @@ -290,4 +289,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java index b6f693497852..650c987f61a7 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -27,7 +27,6 @@ /** * A tag for a pet */ - public class Tag { public static final String JSON_PROPERTY_ID = "id"; @@ -112,4 +111,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java index fda9ee53d143..0aa66c520826 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java @@ -33,7 +33,6 @@ /** * A User who is purchasing from the pet store */ - public class User { public static final String JSON_PROPERTY_ID = "id"; @@ -295,4 +294,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Category.java index 121589eaeb6a..20ec86cd9a09 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Category.java @@ -26,7 +26,6 @@ /** * A category for a pet */ - public class Category { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/ModelApiResponse.java index c1df0dd408ae..090892fdc752 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,7 +26,6 @@ /** * Describes the result of uploading an image resource */ - public class ModelApiResponse { @JsonbProperty("code") @@ -125,4 +124,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Order.java index 489c7fc73c5f..b49117639f55 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Order.java @@ -27,7 +27,6 @@ /** * An order for a pets from the pet store */ - public class Order { @JsonbProperty("id") @@ -243,4 +242,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Pet.java index 5761ee105f1e..3281acf0943a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Pet.java @@ -31,7 +31,6 @@ /** * A pet for sale in the pet store */ - public class Pet { @JsonbProperty("id") @@ -265,4 +264,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Tag.java index 28985a1f069b..8332d5dcbaea 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/Tag.java @@ -26,7 +26,6 @@ /** * A tag for a pet */ - public class Tag { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java index d9ebaeb284dd..695623c512c5 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java @@ -26,7 +26,6 @@ /** * A User who is purchasing from the pet store */ - public class User { @JsonbProperty("id") @@ -248,4 +247,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Cat.java index 6d04b341accf..308d85dbf423 100644 --- a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Cat.java @@ -24,7 +24,6 @@ import javax.json.stream.JsonParser; import javax.json.bind.annotation.JsonbProperty; - public class Cat { @JsonbProperty("id") @@ -123,4 +122,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Dog.java index ae84137c036d..dd7d3c0d9bfa 100644 --- a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Dog.java @@ -24,7 +24,6 @@ import javax.json.stream.JsonParser; import javax.json.bind.annotation.JsonbProperty; - public class Dog { @JsonbProperty("id") @@ -123,4 +122,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Status.java b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Status.java index ec5a12d0b531..047efe9bd378 100644 --- a/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Status.java +++ b/samples/client/petstore/java/microprofile-rest-client-outer-enum/src/main/java/org/openapitools/client/model/Status.java @@ -71,4 +71,3 @@ public static Status fromValue(String text) { throw new IllegalArgumentException("Unexpected value '" + text + "'"); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java index 121589eaeb6a..20ec86cd9a09 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java @@ -26,7 +26,6 @@ /** * A category for a pet */ - public class Category { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index c1df0dd408ae..090892fdc752 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,7 +26,6 @@ /** * Describes the result of uploading an image resource */ - public class ModelApiResponse { @JsonbProperty("code") @@ -125,4 +124,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index 489c7fc73c5f..b49117639f55 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -27,7 +27,6 @@ /** * An order for a pets from the pet store */ - public class Order { @JsonbProperty("id") @@ -243,4 +242,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index 5761ee105f1e..3281acf0943a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -31,7 +31,6 @@ /** * A pet for sale in the pet store */ - public class Pet { @JsonbProperty("id") @@ -265,4 +264,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java index 28985a1f069b..8332d5dcbaea 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java @@ -26,7 +26,6 @@ /** * A tag for a pet */ - public class Tag { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java index d9ebaeb284dd..695623c512c5 100644 --- a/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java @@ -26,7 +26,6 @@ /** * A User who is purchasing from the pet store */ - public class User { @JsonbProperty("id") @@ -248,4 +247,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Category.java index 9b8e0cd72052..2536c7888d16 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Category.java @@ -26,7 +26,6 @@ /** * A category for a pet */ - public class Category { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6afa6830d98c..92ec06a3fb33 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,7 +26,6 @@ /** * Describes the result of uploading an image resource */ - public class ModelApiResponse { @JsonbProperty("code") @@ -125,4 +124,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Order.java index a111215c674d..e5c85d97aa55 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Order.java @@ -27,7 +27,6 @@ /** * An order for a pets from the pet store */ - public class Order { @JsonbProperty("id") @@ -243,4 +242,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Pet.java index 4da8d4dc7636..ef82d9192381 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Pet.java @@ -31,7 +31,6 @@ /** * A pet for sale in the pet store */ - public class Pet { @JsonbProperty("id") @@ -265,4 +264,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Tag.java index 29afe967b747..52be68267f0a 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/Tag.java @@ -26,7 +26,6 @@ /** * A tag for a pet */ - public class Tag { @JsonbProperty("id") @@ -101,4 +100,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java index 67aba438db6a..0f80fb92b888 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java @@ -26,7 +26,6 @@ /** * A User who is purchasing from the pet store */ - public class User { @JsonbProperty("id") @@ -248,4 +247,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/java/native-async/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/native-async/docs/AdditionalPropertiesClass.md index 83051d9be44b..3bda53c4d3ce 100644 --- a/samples/client/petstore/java/native-async/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/native-async/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ |**mapWithUndeclaredPropertiesString** | **Map<String, String>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Animal.md b/samples/client/petstore/java/native-async/docs/Animal.md index d9b32f14c88a..540bfec69bce 100644 --- a/samples/client/petstore/java/native-async/docs/Animal.md +++ b/samples/client/petstore/java/native-async/docs/Animal.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Apple.md b/samples/client/petstore/java/native-async/docs/Apple.md index 0ef7a92c74d6..19a409261d0c 100644 --- a/samples/client/petstore/java/native-async/docs/Apple.md +++ b/samples/client/petstore/java/native-async/docs/Apple.md @@ -11,4 +11,3 @@ |**origin** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/AppleReq.md b/samples/client/petstore/java/native-async/docs/AppleReq.md index 989e1cfedd1e..4dae60bf73d3 100644 --- a/samples/client/petstore/java/native-async/docs/AppleReq.md +++ b/samples/client/petstore/java/native-async/docs/AppleReq.md @@ -11,4 +11,3 @@ |**mealy** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/native-async/docs/ArrayOfArrayOfNumberOnly.md index 0188db3eb131..237ef6876b5a 100644 --- a/samples/client/petstore/java/native-async/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/native-async/docs/ArrayOfArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/native-async/docs/ArrayOfNumberOnly.md index a5753530aada..48d5474e10ac 100644 --- a/samples/client/petstore/java/native-async/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/native-async/docs/ArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayNumber** | **List<BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ArrayTest.md b/samples/client/petstore/java/native-async/docs/ArrayTest.md index 36077c9df300..1bfb727e450a 100644 --- a/samples/client/petstore/java/native-async/docs/ArrayTest.md +++ b/samples/client/petstore/java/native-async/docs/ArrayTest.md @@ -12,4 +12,3 @@ |**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Banana.md b/samples/client/petstore/java/native-async/docs/Banana.md index 5356d17ee700..cf0c789b457b 100644 --- a/samples/client/petstore/java/native-async/docs/Banana.md +++ b/samples/client/petstore/java/native-async/docs/Banana.md @@ -10,4 +10,3 @@ |**lengthCm** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/BananaReq.md b/samples/client/petstore/java/native-async/docs/BananaReq.md index 22ebe1a7105f..2a45b8a318bf 100644 --- a/samples/client/petstore/java/native-async/docs/BananaReq.md +++ b/samples/client/petstore/java/native-async/docs/BananaReq.md @@ -11,4 +11,3 @@ |**sweet** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/BasquePig.md b/samples/client/petstore/java/native-async/docs/BasquePig.md index 160cb71c321f..ab4d63f698e7 100644 --- a/samples/client/petstore/java/native-async/docs/BasquePig.md +++ b/samples/client/petstore/java/native-async/docs/BasquePig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/Capitalization.md b/samples/client/petstore/java/native-async/docs/Capitalization.md index 82a812711de2..0b2455e5863f 100644 --- a/samples/client/petstore/java/native-async/docs/Capitalization.md +++ b/samples/client/petstore/java/native-async/docs/Capitalization.md @@ -15,4 +15,3 @@ |**ATT_NAME** | **String** | Name of the pet | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Cat.md b/samples/client/petstore/java/native-async/docs/Cat.md index 390dd519c8ce..04b42c7dc5ba 100644 --- a/samples/client/petstore/java/native-async/docs/Cat.md +++ b/samples/client/petstore/java/native-async/docs/Cat.md @@ -10,4 +10,3 @@ |**declawed** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Category.md b/samples/client/petstore/java/native-async/docs/Category.md index ab6d1ec334dc..f33915619ccb 100644 --- a/samples/client/petstore/java/native-async/docs/Category.md +++ b/samples/client/petstore/java/native-async/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/ChildCat.md b/samples/client/petstore/java/native-async/docs/ChildCat.md index 258d87e56998..de4d3300bc95 100644 --- a/samples/client/petstore/java/native-async/docs/ChildCat.md +++ b/samples/client/petstore/java/native-async/docs/ChildCat.md @@ -19,4 +19,3 @@ | CHILD_CAT | "ChildCat" | - diff --git a/samples/client/petstore/java/native-async/docs/ClassModel.md b/samples/client/petstore/java/native-async/docs/ClassModel.md index af46dea1f6c8..58f279eeb404 100644 --- a/samples/client/petstore/java/native-async/docs/ClassModel.md +++ b/samples/client/petstore/java/native-async/docs/ClassModel.md @@ -11,4 +11,3 @@ Model for testing model with \"_class\" property |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Client.md b/samples/client/petstore/java/native-async/docs/Client.md index ef07b4ab8b9d..414196529f07 100644 --- a/samples/client/petstore/java/native-async/docs/Client.md +++ b/samples/client/petstore/java/native-async/docs/Client.md @@ -10,4 +10,3 @@ |**client** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ComplexQuadrilateral.md b/samples/client/petstore/java/native-async/docs/ComplexQuadrilateral.md index d0a4b1a0a758..0054df5be9f4 100644 --- a/samples/client/petstore/java/native-async/docs/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/native-async/docs/ComplexQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/DanishPig.md b/samples/client/petstore/java/native-async/docs/DanishPig.md index 0b366d3cf2ff..161f758de85b 100644 --- a/samples/client/petstore/java/native-async/docs/DanishPig.md +++ b/samples/client/petstore/java/native-async/docs/DanishPig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/DeprecatedObject.md b/samples/client/petstore/java/native-async/docs/DeprecatedObject.md index 48de1d624425..bbc0ccf6ed66 100644 --- a/samples/client/petstore/java/native-async/docs/DeprecatedObject.md +++ b/samples/client/petstore/java/native-async/docs/DeprecatedObject.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Dog.md b/samples/client/petstore/java/native-async/docs/Dog.md index 972c981c0d05..4692cd2b4a53 100644 --- a/samples/client/petstore/java/native-async/docs/Dog.md +++ b/samples/client/petstore/java/native-async/docs/Dog.md @@ -10,4 +10,3 @@ |**breed** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Drawing.md b/samples/client/petstore/java/native-async/docs/Drawing.md index 6b815fc4131b..87a8673fd2a4 100644 --- a/samples/client/petstore/java/native-async/docs/Drawing.md +++ b/samples/client/petstore/java/native-async/docs/Drawing.md @@ -13,4 +13,3 @@ |**shapes** | [**List<Shape>**](Shape.md) | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/EnumArrays.md b/samples/client/petstore/java/native-async/docs/EnumArrays.md index b2222d5beb25..58c010444806 100644 --- a/samples/client/petstore/java/native-async/docs/EnumArrays.md +++ b/samples/client/petstore/java/native-async/docs/EnumArrays.md @@ -29,4 +29,3 @@ | CRAB | "crab" | - diff --git a/samples/client/petstore/java/native-async/docs/EnumClass.md b/samples/client/petstore/java/native-async/docs/EnumClass.md index b314590a7591..7a4c4ec692cb 100644 --- a/samples/client/petstore/java/native-async/docs/EnumClass.md +++ b/samples/client/petstore/java/native-async/docs/EnumClass.md @@ -12,4 +12,3 @@ * `_XYZ_` (value: `"(xyz)"`) - diff --git a/samples/client/petstore/java/native-async/docs/EnumTest.md b/samples/client/petstore/java/native-async/docs/EnumTest.md index 3e226e18b50b..fca06e778491 100644 --- a/samples/client/petstore/java/native-async/docs/EnumTest.md +++ b/samples/client/petstore/java/native-async/docs/EnumTest.md @@ -65,4 +65,3 @@ | NUMBER_MINUS_1_DOT_2 | -1.2 | - diff --git a/samples/client/petstore/java/native-async/docs/EquilateralTriangle.md b/samples/client/petstore/java/native-async/docs/EquilateralTriangle.md index eade817feb3e..063b113ee700 100644 --- a/samples/client/petstore/java/native-async/docs/EquilateralTriangle.md +++ b/samples/client/petstore/java/native-async/docs/EquilateralTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/java/native-async/docs/FakeBigDecimalMap200Response.md index 475be1d2d738..35f1cd587cf9 100644 --- a/samples/client/petstore/java/native-async/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/java/native-async/docs/FakeBigDecimalMap200Response.md @@ -11,4 +11,3 @@ |**someMap** | **Map<String, BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/FileSchemaTestClass.md b/samples/client/petstore/java/native-async/docs/FileSchemaTestClass.md index 85d1a0636694..f5d57cfd409f 100644 --- a/samples/client/petstore/java/native-async/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/java/native-async/docs/FileSchemaTestClass.md @@ -11,4 +11,3 @@ |**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Foo.md b/samples/client/petstore/java/native-async/docs/Foo.md index 6b3f0556528a..9c59271b892e 100644 --- a/samples/client/petstore/java/native-async/docs/Foo.md +++ b/samples/client/petstore/java/native-async/docs/Foo.md @@ -10,4 +10,3 @@ |**bar** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/FooGetDefaultResponse.md b/samples/client/petstore/java/native-async/docs/FooGetDefaultResponse.md index ff3d7a3a56c3..fb98b2bd3763 100644 --- a/samples/client/petstore/java/native-async/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/java/native-async/docs/FooGetDefaultResponse.md @@ -10,4 +10,3 @@ |**string** | [**Foo**](Foo.md) | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/FormatTest.md b/samples/client/petstore/java/native-async/docs/FormatTest.md index 01b8c777ae06..4397f81e22d4 100644 --- a/samples/client/petstore/java/native-async/docs/FormatTest.md +++ b/samples/client/petstore/java/native-async/docs/FormatTest.md @@ -25,4 +25,3 @@ |**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Fruit.md b/samples/client/petstore/java/native-async/docs/Fruit.md index 41b3152250e1..1ca01a3fda08 100644 --- a/samples/client/petstore/java/native-async/docs/Fruit.md +++ b/samples/client/petstore/java/native-async/docs/Fruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/FruitReq.md b/samples/client/petstore/java/native-async/docs/FruitReq.md index 3927b7acded2..649d59b09ff7 100644 --- a/samples/client/petstore/java/native-async/docs/FruitReq.md +++ b/samples/client/petstore/java/native-async/docs/FruitReq.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/GmFruit.md b/samples/client/petstore/java/native-async/docs/GmFruit.md index c9dc50b92cb7..e182eaf5420c 100644 --- a/samples/client/petstore/java/native-async/docs/GmFruit.md +++ b/samples/client/petstore/java/native-async/docs/GmFruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/GrandparentAnimal.md b/samples/client/petstore/java/native-async/docs/GrandparentAnimal.md index 9737408f2724..dbc2301c750a 100644 --- a/samples/client/petstore/java/native-async/docs/GrandparentAnimal.md +++ b/samples/client/petstore/java/native-async/docs/GrandparentAnimal.md @@ -10,4 +10,3 @@ |**petType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/native-async/docs/HasOnlyReadOnly.md index 29da5205dbba..38dfd19f5a82 100644 --- a/samples/client/petstore/java/native-async/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/native-async/docs/HasOnlyReadOnly.md @@ -11,4 +11,3 @@ |**foo** | **String** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/native-async/docs/HealthCheckResult.md b/samples/client/petstore/java/native-async/docs/HealthCheckResult.md index 4885e6f1cada..a2065216d66b 100644 --- a/samples/client/petstore/java/native-async/docs/HealthCheckResult.md +++ b/samples/client/petstore/java/native-async/docs/HealthCheckResult.md @@ -11,4 +11,3 @@ Just a string to inform instance is up and running. Make it nullable in hope to |**nullableMessage** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/IsoscelesTriangle.md b/samples/client/petstore/java/native-async/docs/IsoscelesTriangle.md index 0bd5045bc68f..674bb2d975be 100644 --- a/samples/client/petstore/java/native-async/docs/IsoscelesTriangle.md +++ b/samples/client/petstore/java/native-async/docs/IsoscelesTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/Mammal.md b/samples/client/petstore/java/native-async/docs/Mammal.md index 11bbff5e2ba9..8c881b7f5cb2 100644 --- a/samples/client/petstore/java/native-async/docs/Mammal.md +++ b/samples/client/petstore/java/native-async/docs/Mammal.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/MapTest.md b/samples/client/petstore/java/native-async/docs/MapTest.md index 54380188e1d6..b68397073bfb 100644 --- a/samples/client/petstore/java/native-async/docs/MapTest.md +++ b/samples/client/petstore/java/native-async/docs/MapTest.md @@ -22,4 +22,3 @@ | LOWER | "lower" | - diff --git a/samples/client/petstore/java/native-async/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/native-async/docs/MixedPropertiesAndAdditionalPropertiesClass.md index a5ddf0faa6a9..5d0f2a7b6a42 100644 --- a/samples/client/petstore/java/native-async/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/native-async/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,4 +12,3 @@ |**map** | [**Map<String, Animal>**](Animal.md) | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Model200Response.md b/samples/client/petstore/java/native-async/docs/Model200Response.md index 109411580c62..14100fcc25bb 100644 --- a/samples/client/petstore/java/native-async/docs/Model200Response.md +++ b/samples/client/petstore/java/native-async/docs/Model200Response.md @@ -12,4 +12,3 @@ Model for testing model name starting with number |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ModelApiResponse.md b/samples/client/petstore/java/native-async/docs/ModelApiResponse.md index e374c2dd2dec..e59fea0970b9 100644 --- a/samples/client/petstore/java/native-async/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/native-async/docs/ModelApiResponse.md @@ -12,4 +12,3 @@ |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ModelFile.md b/samples/client/petstore/java/native-async/docs/ModelFile.md index adcde984f527..61c9020e62ae 100644 --- a/samples/client/petstore/java/native-async/docs/ModelFile.md +++ b/samples/client/petstore/java/native-async/docs/ModelFile.md @@ -11,4 +11,3 @@ Must be named `File` for test. |**sourceURI** | **String** | Test capitalization | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ModelList.md b/samples/client/petstore/java/native-async/docs/ModelList.md index f93ab7dde8d4..2e28e551301c 100644 --- a/samples/client/petstore/java/native-async/docs/ModelList.md +++ b/samples/client/petstore/java/native-async/docs/ModelList.md @@ -10,4 +10,3 @@ |**_123list** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ModelReturn.md b/samples/client/petstore/java/native-async/docs/ModelReturn.md index 0bd356861eb7..d307e6fbd935 100644 --- a/samples/client/petstore/java/native-async/docs/ModelReturn.md +++ b/samples/client/petstore/java/native-async/docs/ModelReturn.md @@ -11,4 +11,3 @@ Model for testing reserved words |**_return** | **Integer** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Name.md b/samples/client/petstore/java/native-async/docs/Name.md index c901d9435309..002cad3f3320 100644 --- a/samples/client/petstore/java/native-async/docs/Name.md +++ b/samples/client/petstore/java/native-async/docs/Name.md @@ -14,4 +14,3 @@ Model for testing model name same as property name |**_123number** | **Integer** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/native-async/docs/NullableClass.md b/samples/client/petstore/java/native-async/docs/NullableClass.md index fa98c5c6d984..3f6e8619c87e 100644 --- a/samples/client/petstore/java/native-async/docs/NullableClass.md +++ b/samples/client/petstore/java/native-async/docs/NullableClass.md @@ -21,4 +21,3 @@ |**objectItemsNullable** | **Map<String, Object>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/NullableShape.md b/samples/client/petstore/java/native-async/docs/NullableShape.md index 60c45b268406..ae217f582b2e 100644 --- a/samples/client/petstore/java/native-async/docs/NullableShape.md +++ b/samples/client/petstore/java/native-async/docs/NullableShape.md @@ -38,4 +38,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/NumberOnly.md b/samples/client/petstore/java/native-async/docs/NumberOnly.md index b8ed1a4cfae1..ca181cdaf816 100644 --- a/samples/client/petstore/java/native-async/docs/NumberOnly.md +++ b/samples/client/petstore/java/native-async/docs/NumberOnly.md @@ -10,4 +10,3 @@ |**justNumber** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/java/native-async/docs/ObjectWithDeprecatedFields.md index f1cf571f4c09..37a3aad5547b 100644 --- a/samples/client/petstore/java/native-async/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/java/native-async/docs/ObjectWithDeprecatedFields.md @@ -13,4 +13,3 @@ |**bars** | **List<String>** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Order.md b/samples/client/petstore/java/native-async/docs/Order.md index 27af32855c5c..21c4c8efc7ba 100644 --- a/samples/client/petstore/java/native-async/docs/Order.md +++ b/samples/client/petstore/java/native-async/docs/Order.md @@ -25,4 +25,3 @@ | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/native-async/docs/OuterComposite.md b/samples/client/petstore/java/native-async/docs/OuterComposite.md index 98b56e0763ff..19601002fd28 100644 --- a/samples/client/petstore/java/native-async/docs/OuterComposite.md +++ b/samples/client/petstore/java/native-async/docs/OuterComposite.md @@ -12,4 +12,3 @@ |**myBoolean** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/OuterEnum.md b/samples/client/petstore/java/native-async/docs/OuterEnum.md index 1f9b723eb8e7..97cfc1e9a952 100644 --- a/samples/client/petstore/java/native-async/docs/OuterEnum.md +++ b/samples/client/petstore/java/native-async/docs/OuterEnum.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/native-async/docs/OuterEnumDefaultValue.md b/samples/client/petstore/java/native-async/docs/OuterEnumDefaultValue.md index cbc7f4ba54d2..16c6da73893a 100644 --- a/samples/client/petstore/java/native-async/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/java/native-async/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/native-async/docs/OuterEnumInteger.md b/samples/client/petstore/java/native-async/docs/OuterEnumInteger.md index f71dea30ad00..1691ce771b36 100644 --- a/samples/client/petstore/java/native-async/docs/OuterEnumInteger.md +++ b/samples/client/petstore/java/native-async/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/native-async/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/java/native-async/docs/OuterEnumIntegerDefaultValue.md index 99e6389f4278..e57bc124e364 100644 --- a/samples/client/petstore/java/native-async/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/java/native-async/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/native-async/docs/ParentPet.md b/samples/client/petstore/java/native-async/docs/ParentPet.md index 4992b88a6710..27b37b9d1d26 100644 --- a/samples/client/petstore/java/native-async/docs/ParentPet.md +++ b/samples/client/petstore/java/native-async/docs/ParentPet.md @@ -9,4 +9,3 @@ |------------ | ------------- | ------------- | -------------| - diff --git a/samples/client/petstore/java/native-async/docs/Pet.md b/samples/client/petstore/java/native-async/docs/Pet.md index 08dfd8623602..d7a1d925604c 100644 --- a/samples/client/petstore/java/native-async/docs/Pet.md +++ b/samples/client/petstore/java/native-async/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/petstore/java/native-async/docs/Pig.md b/samples/client/petstore/java/native-async/docs/Pig.md index f0a92bbe61b8..568f7f4d4074 100644 --- a/samples/client/petstore/java/native-async/docs/Pig.md +++ b/samples/client/petstore/java/native-async/docs/Pig.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/Quadrilateral.md b/samples/client/petstore/java/native-async/docs/Quadrilateral.md index 83ffea0c742f..724e89359230 100644 --- a/samples/client/petstore/java/native-async/docs/Quadrilateral.md +++ b/samples/client/petstore/java/native-async/docs/Quadrilateral.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/QuadrilateralInterface.md b/samples/client/petstore/java/native-async/docs/QuadrilateralInterface.md index 99451f3bd020..1817e338ff70 100644 --- a/samples/client/petstore/java/native-async/docs/QuadrilateralInterface.md +++ b/samples/client/petstore/java/native-async/docs/QuadrilateralInterface.md @@ -10,4 +10,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/ReadOnlyFirst.md b/samples/client/petstore/java/native-async/docs/ReadOnlyFirst.md index ad6af7ee155f..138406406d37 100644 --- a/samples/client/petstore/java/native-async/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/java/native-async/docs/ReadOnlyFirst.md @@ -11,4 +11,3 @@ |**baz** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/ScaleneTriangle.md b/samples/client/petstore/java/native-async/docs/ScaleneTriangle.md index c578f6cbfaab..fb2f1e798e74 100644 --- a/samples/client/petstore/java/native-async/docs/ScaleneTriangle.md +++ b/samples/client/petstore/java/native-async/docs/ScaleneTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/Shape.md b/samples/client/petstore/java/native-async/docs/Shape.md index 9c237eefb048..57895ef4e1ba 100644 --- a/samples/client/petstore/java/native-async/docs/Shape.md +++ b/samples/client/petstore/java/native-async/docs/Shape.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/ShapeInterface.md b/samples/client/petstore/java/native-async/docs/ShapeInterface.md index b4f981e3b566..e1d285bda6e6 100644 --- a/samples/client/petstore/java/native-async/docs/ShapeInterface.md +++ b/samples/client/petstore/java/native-async/docs/ShapeInterface.md @@ -10,4 +10,3 @@ |**shapeType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/ShapeOrNull.md b/samples/client/petstore/java/native-async/docs/ShapeOrNull.md index 0bb9b8b9025f..f0b05f9317d2 100644 --- a/samples/client/petstore/java/native-async/docs/ShapeOrNull.md +++ b/samples/client/petstore/java/native-async/docs/ShapeOrNull.md @@ -36,4 +36,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/SimpleQuadrilateral.md b/samples/client/petstore/java/native-async/docs/SimpleQuadrilateral.md index 52fb7d1a6a49..c4e88c259564 100644 --- a/samples/client/petstore/java/native-async/docs/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/native-async/docs/SimpleQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/SpecialModelName.md b/samples/client/petstore/java/native-async/docs/SpecialModelName.md index e17d0d797b7f..5336911fcf74 100644 --- a/samples/client/petstore/java/native-async/docs/SpecialModelName.md +++ b/samples/client/petstore/java/native-async/docs/SpecialModelName.md @@ -11,4 +11,3 @@ |**specialModelName** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Tag.md b/samples/client/petstore/java/native-async/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/petstore/java/native-async/docs/Tag.md +++ b/samples/client/petstore/java/native-async/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/java/native-async/docs/TestInlineFreeformAdditionalPropertiesRequest.md index dc066e6c7dac..31f9e4136789 100644 --- a/samples/client/petstore/java/native-async/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/java/native-async/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -10,4 +10,3 @@ |**someProperty** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Triangle.md b/samples/client/petstore/java/native-async/docs/Triangle.md index daf9d153ff61..8ca98989d719 100644 --- a/samples/client/petstore/java/native-async/docs/Triangle.md +++ b/samples/client/petstore/java/native-async/docs/Triangle.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native-async/docs/TriangleInterface.md b/samples/client/petstore/java/native-async/docs/TriangleInterface.md index ef5fc7575f34..c684f27e8582 100644 --- a/samples/client/petstore/java/native-async/docs/TriangleInterface.md +++ b/samples/client/petstore/java/native-async/docs/TriangleInterface.md @@ -10,4 +10,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/User.md b/samples/client/petstore/java/native-async/docs/User.md index 9e97dc35485f..0923cdf0c33f 100644 --- a/samples/client/petstore/java/native-async/docs/User.md +++ b/samples/client/petstore/java/native-async/docs/User.md @@ -21,4 +21,3 @@ |**anyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] | - diff --git a/samples/client/petstore/java/native-async/docs/Whale.md b/samples/client/petstore/java/native-async/docs/Whale.md index 30ce4bb82151..bec0b35bd000 100644 --- a/samples/client/petstore/java/native-async/docs/Whale.md +++ b/samples/client/petstore/java/native-async/docs/Whale.md @@ -12,4 +12,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native-async/docs/Zebra.md b/samples/client/petstore/java/native-async/docs/Zebra.md index f7c4389b6456..3b9786866e50 100644 --- a/samples/client/petstore/java/native-async/docs/Zebra.md +++ b/samples/client/petstore/java/native-async/docs/Zebra.md @@ -21,4 +21,3 @@ | GREVYS | "grevys" | - diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 29df00aa086e..4d9c4bef1d3f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -143,5 +143,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 8d8a1f6eefa5..082eba28efa3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -49,37 +49,31 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype1; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype2; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; - @javax.annotation.Nullable - private Object emptyMap; + @javax.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesString = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -101,8 +95,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { return mapProperty; @@ -133,8 +126,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; @@ -157,15 +149,13 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnytype1() { return anytype1.orElse(null); } @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnytype1_JsonNullable() { return anytype1; } @@ -189,8 +179,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * Get mapWithUndeclaredPropertiesAnytype1 * @return mapWithUndeclaredPropertiesAnytype1 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; @@ -213,8 +202,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * Get mapWithUndeclaredPropertiesAnytype2 * @return mapWithUndeclaredPropertiesAnytype2 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; @@ -245,8 +233,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * Get mapWithUndeclaredPropertiesAnytype3 * @return mapWithUndeclaredPropertiesAnytype3 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; @@ -269,8 +256,7 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * an object with no declared properties and no undeclared properties, hence it's an empty map. * @return emptyMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { return emptyMap; @@ -301,8 +287,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * Get mapWithUndeclaredPropertiesString * @return mapWithUndeclaredPropertiesString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; @@ -315,7 +300,6 @@ public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map< this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } - /** * Return true if this AdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java index 93b8d1702b31..ee0c803c977b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java @@ -41,6 +41,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -53,12 +54,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } @@ -72,8 +71,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -96,8 +94,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; @@ -110,7 +107,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Animal object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java index 93cce7098352..6865d47b2e49 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java @@ -37,14 +37,13 @@ Apple.JSON_PROPERTY_ORIGIN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; - @javax.annotation.Nullable - private String cultivar; + @javax.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; - @javax.annotation.Nullable - private String origin; + @javax.annotation.Nullable private String origin; public Apple() { } @@ -58,8 +57,7 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { return cultivar; @@ -82,8 +80,7 @@ public Apple origin(@javax.annotation.Nullable String origin) { * Get origin * @return origin */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { return origin; @@ -96,7 +93,6 @@ public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } - /** * Return true if this apple object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java index b099484fabfa..93e95f43ccc0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java @@ -37,14 +37,13 @@ AppleReq.JSON_PROPERTY_MEALY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; - @javax.annotation.Nonnull - private String cultivar; + @javax.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; - @javax.annotation.Nullable - private Boolean mealy; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } @@ -58,8 +57,7 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { return cultivar; @@ -82,8 +80,7 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * Get mealy * @return mealy */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { return mealy; @@ -96,7 +93,6 @@ public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } - /** * Return true if this appleReq object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 68a2adae6b80..a19c9b6452dd 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -39,10 +39,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -64,8 +64,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { return arrayArrayNumber; @@ -78,7 +77,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List this.arrayArrayNumber = arrayArrayNumber; } - /** * Return true if this ArrayOfArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87be9636418e..2c8be47913d6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -39,10 +39,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -64,8 +64,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { return arrayNumber; @@ -78,7 +77,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - /** * Return true if this ArrayOfNumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java index 373aaba494c1..7634dc6807b4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -41,18 +41,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -74,8 +72,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { return arrayOfString; @@ -106,8 +103,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; @@ -138,8 +134,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { return arrayArrayOfModel; @@ -152,7 +147,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; - @javax.annotation.Nullable - private Shape mainShape; + @javax.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; - @javax.annotation.Nullable - private ShapeOrNull shapeOrNull; + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String JSON_PROPERTY_NULLABLE_SHAPE = "nullableShape"; private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; - @javax.annotation.Nullable - private List shapes = new ArrayList<>(); + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } @@ -83,8 +81,7 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * Get mainShape * @return mainShape */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { return mainShape; @@ -107,8 +104,7 @@ public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { * Get shapeOrNull * @return shapeOrNull */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ShapeOrNull getShapeOrNull() { return shapeOrNull; @@ -131,15 +127,13 @@ public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableSh * Get nullableShape * @return nullableShape */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public NullableShape getNullableShape() { return nullableShape.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableShape_JsonNullable() { return nullableShape; } @@ -171,8 +165,7 @@ public Drawing addShapesItem(Shape shapesItem) { * Get shapes * @return shapes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { return shapes; @@ -228,7 +221,6 @@ public Fruit getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Drawing object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java index 13ca76a48ea7..371ec71c6ad7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,6 +39,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -74,10 +75,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -113,10 +112,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -130,8 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { return justSymbol; @@ -162,8 +158,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { return arrayEnum; @@ -176,7 +171,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - /** * Return true if this EnumArrays object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java index 4ca18c79f42b..c682dd007e36 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java @@ -52,6 +52,7 @@ EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -89,10 +90,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -130,10 +129,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -169,10 +166,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumIntegerOnly @@ -208,10 +203,8 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; - @javax.annotation.Nullable - private EnumIntegerOnlyEnum enumIntegerOnly; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** * Gets or Sets enumNumber @@ -247,25 +240,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -279,8 +267,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { return enumString; @@ -303,8 +290,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; @@ -327,8 +313,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { return enumInteger; @@ -351,8 +336,7 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * Get enumIntegerOnly * @return enumIntegerOnly */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; @@ -375,8 +359,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { return enumNumber; @@ -399,15 +382,13 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -431,8 +412,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; @@ -455,8 +435,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; @@ -479,8 +458,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; @@ -493,7 +471,6 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } - /** * Return true if this Enum_Test object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 82f5ea90b2ee..fdea120cbff9 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -37,14 +37,13 @@ EquilateralTriangle.JSON_PROPERTY_TRIANGLE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } @@ -58,8 +57,7 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +80,7 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +93,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this EquilateralTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 9315c7b2ba67..15f95c9ffac5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -40,14 +40,13 @@ FakeBigDecimalMap200Response.JSON_PROPERTY_SOME_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap = new HashMap<>(); + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -61,8 +60,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { return someId; @@ -93,8 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { return someMap; @@ -107,7 +104,6 @@ public void setSomeMap(@javax.annotation.Nullable Map someMa this.someMap = someMap; } - /** * Return true if this fakeBigDecimalMap_200_response object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 63a765d2fba3..6a7faedede28 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -40,14 +40,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -61,8 +60,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { return _file; @@ -93,8 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; @@ -107,7 +104,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - /** * Return true if this FileSchemaTestClass object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java index 7cfcf087c9a7..5417bfdaf0f5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java @@ -36,10 +36,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -53,8 +53,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -67,7 +66,6 @@ public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } - /** * Return true if this Foo object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 868e8549dc93..4516d2e06610 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -37,10 +37,10 @@ FooGetDefaultResponse.JSON_PROPERTY_STRING }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -54,8 +54,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { return string; @@ -68,7 +67,6 @@ public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } - /** * Return true if this _foo_get_default_response object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java index 4911e97c9d14..fba31473de8b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java @@ -56,70 +56,55 @@ FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -135,8 +120,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { return integer; @@ -161,8 +145,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { return int32; @@ -185,8 +168,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { return int64; @@ -211,8 +193,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { return number; @@ -237,8 +218,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; @@ -263,8 +243,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; @@ -287,8 +266,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { return decimal; @@ -311,8 +289,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { return string; @@ -335,8 +312,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { return _byte; @@ -359,8 +335,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { return binary; @@ -383,8 +358,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { return date; @@ -407,8 +381,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; @@ -431,8 +404,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -455,8 +427,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { return password; @@ -479,8 +450,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { return patternWithDigits; @@ -503,8 +473,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; @@ -517,7 +486,6 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } - /** * Return true if this format_test object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Fruit.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Fruit.java index 657dfc19c850..6acf58194f9a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Fruit.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Fruit.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Fruit.FruitDeserializer.class) @JsonSerialize(using = Fruit.FruitSerializer.class) public class Fruit extends AbstractOpenApiSchema { @@ -166,7 +167,6 @@ public Fruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcepti public Fruit() { super("oneOf", Boolean.FALSE); } - public Fruit(Apple o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FruitReq.java index 66a63ec9eb0f..cee3506218e0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FruitReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FruitReq.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = FruitReq.FruitReqDeserializer.class) @JsonSerialize(using = FruitReq.FruitReqSerializer.class) public class FruitReq extends AbstractOpenApiSchema { @@ -166,7 +167,6 @@ public FruitReq getNullValue(DeserializationContext ctxt) throws JsonMappingExce public FruitReq() { super("oneOf", Boolean.FALSE); } - public FruitReq(AppleReq o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GmFruit.java index 6b3ba6739e35..6b4dd62906d8 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GmFruit.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GmFruit.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using=GmFruit.GmFruitDeserializer.class) @JsonSerialize(using = GmFruit.GmFruitSerializer.class) public class GmFruit extends AbstractOpenApiSchema { @@ -126,7 +127,6 @@ public GmFruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcep public GmFruit() { super("anyOf", Boolean.FALSE); } - public GmFruit(Apple o) { super("anyOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index e80b219e13f4..f70acfac9e99 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -40,6 +40,7 @@ GrandparentAnimal.JSON_PROPERTY_PET_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "pet_type", // ignore manually set pet_type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the pet_type to be set during deserialization @@ -52,8 +53,7 @@ public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; - @javax.annotation.Nonnull - private String petType; + @javax.annotation.Nonnull private String petType; public GrandparentAnimal() { } @@ -67,8 +67,7 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * Get petType * @return petType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { return petType; @@ -81,7 +80,6 @@ public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } - /** * Return true if this GrandparentAnimal object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 88918ca55452..e07585f7c269 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -37,14 +37,13 @@ HasOnlyReadOnly.JSON_PROPERTY_FOO }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -63,8 +62,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -77,8 +75,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { return foo; @@ -86,7 +83,6 @@ public String getFoo() { - /** * Return true if this hasOnlyReadOnly object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 586ad5fc0a90..126413252c62 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -40,6 +40,7 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; private JsonNullable nullableMessage = JsonNullable.undefined(); @@ -56,15 +57,13 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } @@ -78,7 +77,6 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage this.nullableMessage = JsonNullable.of(nullableMessage); } - /** * Return true if this HealthCheckResult object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 36e8f880f49f..1dc526ea80a4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -37,14 +37,13 @@ IsoscelesTriangle.JSON_PROPERTY_TRIANGLE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } @@ -58,8 +57,7 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +80,7 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +93,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this IsoscelesTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Mammal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Mammal.java index 727d75d58098..dd856b4d7c39 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Mammal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Mammal.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Mammal.MammalDeserializer.class) @JsonSerialize(using = Mammal.MammalSerializer.class) public class Mammal extends AbstractOpenApiSchema { @@ -195,7 +196,6 @@ public Mammal getNullValue(DeserializationContext ctxt) throws JsonMappingExcept public Mammal() { super("oneOf", Boolean.FALSE); } - public Mammal(Pig o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java index 6df3a798f447..9239a69f14b1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java @@ -41,10 +41,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -80,18 +80,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -113,8 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { return mapMapOfString; @@ -145,8 +140,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { return mapOfEnumString; @@ -177,8 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { return directMap; @@ -209,8 +202,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { return indirectMap; @@ -223,7 +215,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - /** * Return true if this MapTest object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 189cc0473e6a..911728cc3e75 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -43,18 +43,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -68,8 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -92,8 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; @@ -124,8 +120,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { return map; @@ -138,7 +133,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - /** * Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java index 8f8da84f8936..484c7054d067 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java @@ -37,14 +37,13 @@ Model200Response.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -58,8 +57,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { return name; @@ -82,8 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; @@ -96,7 +93,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - /** * Return true if this 200_response object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f9cfad9a6310..1ce59e226325 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,16 @@ ModelApiResponse.JSON_PROPERTY_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -63,8 +61,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; @@ -87,8 +84,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; @@ -111,8 +107,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; @@ -125,7 +120,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java index 895e319e8205..c490d689a733 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java @@ -36,10 +36,10 @@ ModelFile.JSON_PROPERTY_SOURCE_U_R_I }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -53,8 +53,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { return sourceURI; @@ -67,7 +66,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - /** * Return true if this File object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java index 35e07d36e127..66c58370bc57 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java @@ -36,10 +36,10 @@ ModelList.JSON_PROPERTY_123LIST }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -53,8 +53,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { return _123list; @@ -67,7 +66,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - /** * Return true if this List object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java index 74647ae19ae5..8656a9eb14d0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -36,10 +36,10 @@ ModelReturn.JSON_PROPERTY_RETURN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -53,8 +53,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { return _return; @@ -67,7 +66,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - /** * Return true if this Return object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java index e4ab623bedf4..f34da8986c7b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java @@ -39,22 +39,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -78,8 +75,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { return name; @@ -97,8 +93,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { return snakeCase; @@ -116,8 +111,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { return property; @@ -135,8 +129,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { return _123number; @@ -144,7 +137,6 @@ public Integer get123number() { - /** * Return true if this Name object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java index 9116b92ee49d..fb0e1f587a43 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java @@ -62,6 +62,7 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; private JsonNullable integerProp = JsonNullable.undefined(); @@ -88,8 +89,7 @@ public class NullableClass extends HashMap { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; private JsonNullable> objectNullableProp = JsonNullable.>undefined(); @@ -98,8 +98,7 @@ public class NullableClass extends HashMap { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } @@ -113,15 +112,13 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); } @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -145,15 +142,13 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); } @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -177,15 +172,13 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); } @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -209,15 +202,13 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); } @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -241,15 +232,13 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -273,15 +262,13 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -317,15 +304,13 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -361,15 +346,13 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -401,8 +384,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { return arrayItemsNullable; @@ -437,15 +419,13 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -481,15 +461,13 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -521,8 +499,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { return objectItemsNullable; @@ -578,7 +555,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this NullableClass object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java index 69337631f598..a3e283dbe78a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = NullableShape.NullableShapeDeserializer.class) @JsonSerialize(using = NullableShape.NullableShapeSerializer.class) public class NullableShape extends AbstractOpenApiSchema { @@ -170,7 +171,6 @@ public NullableShape getNullValue(DeserializationContext ctxt) throws JsonMappin public NullableShape() { super("oneOf", Boolean.TRUE); } - public NullableShape(Quadrilateral o) { super("oneOf", Boolean.TRUE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java index 0191985c5505..13c96de28997 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -37,10 +37,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -54,8 +54,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { return justNumber; @@ -68,7 +67,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - /** * Return true if this NumberOnly object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 26c7820c3a17..c771ef0d9564 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -43,22 +43,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -72,8 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { return uuid; @@ -98,8 +94,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { return id; @@ -124,8 +119,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { return deprecatedRef; @@ -158,8 +152,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { return bars; @@ -172,7 +165,6 @@ public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } - /** * Return true if this ObjectWithDeprecatedFields object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java index 69e09161e49e..7b11f543700e 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java @@ -42,22 +42,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -95,14 +92,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -116,8 +110,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -140,8 +133,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; @@ -164,8 +156,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; @@ -188,8 +179,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; @@ -212,8 +202,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; @@ -250,7 +238,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java index c57a196e0d40..8f958a8ca490 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -39,18 +39,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -64,8 +62,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { return myNumber; @@ -88,8 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { return myString; @@ -112,8 +108,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { return myBoolean; @@ -126,7 +121,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - /** * Return true if this OuterComposite object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java index 996ecc54f612..90b006c1ddd3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ParentPet.java @@ -40,6 +40,7 @@ @JsonPropertyOrder({ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "pet_type", // ignore manually set pet_type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the pet_type to be set during deserialization @@ -52,7 +53,6 @@ public class ParentPet extends GrandparentAnimal { public ParentPet() { } - @Override public ParentPet petType(@javax.annotation.Nonnull String petType) { this.setPetType(petType); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java index bbaa7db74923..f31b9d945fb4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java @@ -45,26 +45,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -102,10 +98,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -167,8 +159,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -199,8 +190,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -255,8 +244,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -269,7 +257,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pig.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pig.java index 4ee5c3fc43c8..8ef668ef4b38 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pig.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pig.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Pig.PigDeserializer.class) @JsonSerialize(using = Pig.PigSerializer.class) public class Pig extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Pig getNullValue(DeserializationContext ctxt) throws JsonMappingException public Pig() { super("oneOf", Boolean.FALSE); } - public Pig(BasquePig o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Quadrilateral.java index b2a851b351fb..8d1b4bf9f314 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Quadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Quadrilateral.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Quadrilateral.QuadrilateralDeserializer.class) @JsonSerialize(using = Quadrilateral.QuadrilateralSerializer.class) public class Quadrilateral extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Quadrilateral getNullValue(DeserializationContext ctxt) throws JsonMappin public Quadrilateral() { super("oneOf", Boolean.FALSE); } - public Quadrilateral(ComplexQuadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 808502be8d50..0be6ad897bd7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -36,10 +36,10 @@ QuadrilateralInterface.JSON_PROPERTY_QUADRILATERAL_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } @@ -53,8 +53,7 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; @@ -67,7 +66,6 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT this.quadrilateralType = quadrilateralType; } - /** * Return true if this QuadrilateralInterface object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b95057fbe557..69a94a551e23 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -37,14 +37,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -61,8 +60,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -80,8 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { return baz; @@ -94,7 +91,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - /** * Return true if this ReadOnlyFirst object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 8d32ac208beb..3d653fd48619 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -37,14 +37,13 @@ ScaleneTriangle.JSON_PROPERTY_TRIANGLE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } @@ -58,8 +57,7 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +80,7 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +93,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this ScaleneTriangle object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java index 6a44b5a721ea..682fc0af0ad0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Shape.ShapeDeserializer.class) @JsonSerialize(using = Shape.ShapeSerializer.class) public class Shape extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Shape getNullValue(DeserializationContext ctxt) throws JsonMappingExcepti public Shape() { super("oneOf", Boolean.FALSE); } - public Shape(Quadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java index 544d0d4a8997..269ff18d9234 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -36,10 +36,10 @@ ShapeInterface.JSON_PROPERTY_SHAPE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } @@ -53,8 +53,7 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -67,7 +66,6 @@ public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - /** * Return true if this ShapeInterface object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 07f9a1bd3aa5..c8f2c76315d8 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = ShapeOrNull.ShapeOrNullDeserializer.class) @JsonSerialize(using = ShapeOrNull.ShapeOrNullSerializer.class) public class ShapeOrNull extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public ShapeOrNull getNullValue(DeserializationContext ctxt) throws JsonMappingE public ShapeOrNull() { super("oneOf", Boolean.FALSE); } - public ShapeOrNull(Quadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index b98d759c8b55..9d3f33074410 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -37,14 +37,13 @@ SimpleQuadrilateral.JSON_PROPERTY_QUADRILATERAL_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } @@ -58,8 +57,7 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +80,7 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; @@ -96,7 +93,6 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT this.quadrilateralType = quadrilateralType; } - /** * Return true if this SimpleQuadrilateral object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java index fca0648ef475..6886775ae041 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -37,14 +37,13 @@ SpecialModelName.JSON_PROPERTY_SPECIAL_MODEL_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; - @javax.annotation.Nullable - private String specialModelName; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } @@ -58,8 +57,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { return $specialPropertyName; @@ -82,8 +80,7 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * Get specialModelName * @return specialModelName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { return specialModelName; @@ -96,7 +93,6 @@ public void setSpecialModelName(@javax.annotation.Nullable String specialModelNa this.specialModelName = specialModelName; } - /** * Return true if this _special_model.name_ object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java index 0be17aeb75bb..431864eaccf1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java @@ -37,14 +37,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -58,8 +57,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +80,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +93,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 78ee4289eab5..851b6c9cd05c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -42,10 +42,10 @@ TestInlineFreeformAdditionalPropertiesRequest.JSON_PROPERTY_SOME_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } @@ -59,8 +59,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { return someProperty; @@ -116,7 +115,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this testInlineFreeformAdditionalProperties_request object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Triangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Triangle.java index d97ae14675f0..67ef9c631112 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Triangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Triangle.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Triangle.TriangleDeserializer.class) @JsonSerialize(using = Triangle.TriangleSerializer.class) public class Triangle extends AbstractOpenApiSchema { @@ -195,7 +196,6 @@ public Triangle getNullValue(DeserializationContext ctxt) throws JsonMappingExce public Triangle() { super("oneOf", Boolean.FALSE); } - public Triangle(EquilateralTriangle o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java index 6ab83dc73c71..5a801a07276e 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -36,10 +36,10 @@ TriangleInterface.JSON_PROPERTY_TRIANGLE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } @@ -53,8 +53,7 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -67,7 +66,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this TriangleInterface object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java index ff94dd70686f..7383cb264ced 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java @@ -51,42 +51,34 @@ User.JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; - @javax.annotation.Nullable - private Object objectWithNoDeclaredProps; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; private JsonNullable objectWithNoDeclaredPropsNullable = JsonNullable.undefined(); @@ -109,8 +101,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -133,8 +124,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; @@ -157,8 +147,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -181,8 +170,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -205,8 +193,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -229,8 +216,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -253,8 +239,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -277,8 +262,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; @@ -301,8 +285,7 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. * @return objectWithNoDeclaredProps */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; @@ -325,15 +308,13 @@ public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object * test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. * @return objectWithNoDeclaredPropsNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { return objectWithNoDeclaredPropsNullable; } @@ -357,15 +338,13 @@ public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 * @return anyTypeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypeProp_JsonNullable() { return anyTypeProp; } @@ -389,15 +368,13 @@ public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNul * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. * @return anyTypePropNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypePropNullable_JsonNullable() { return anyTypePropNullable; } @@ -411,7 +388,6 @@ public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypeProp this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } - /** * Return true if this User object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java index b58368c93956..e63be17e25c7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java @@ -38,18 +38,16 @@ Whale.JSON_PROPERTY_CLASS_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; - @javax.annotation.Nullable - private Boolean hasBaleen; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; - @javax.annotation.Nullable - private Boolean hasTeeth; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Whale() { } @@ -63,8 +61,7 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * Get hasBaleen * @return hasBaleen */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { return hasBaleen; @@ -87,8 +84,7 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * Get hasTeeth * @return hasTeeth */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { return hasTeeth; @@ -111,8 +107,7 @@ public Whale className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -125,7 +120,6 @@ public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - /** * Return true if this whale object is equal to o. */ diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java index c21707d55b0f..c152df296666 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java @@ -43,6 +43,7 @@ Zebra.JSON_PROPERTY_CLASS_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Zebra extends HashMap { /** * Gets or Sets type @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private TypeEnum type; + @javax.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Zebra() { } @@ -101,8 +99,7 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; @@ -125,8 +122,7 @@ public Zebra className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -182,7 +178,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this zebra object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/docs/Category.md b/samples/client/petstore/java/native-jakarta/docs/Category.md index a7fc939d252e..e3a4b6bba74d 100644 --- a/samples/client/petstore/java/native-jakarta/docs/Category.md +++ b/samples/client/petstore/java/native-jakarta/docs/Category.md @@ -12,4 +12,3 @@ A category for a pet |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-jakarta/docs/ModelApiResponse.md b/samples/client/petstore/java/native-jakarta/docs/ModelApiResponse.md index cd7e3c400be6..d9032dc49e96 100644 --- a/samples/client/petstore/java/native-jakarta/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/native-jakarta/docs/ModelApiResponse.md @@ -13,4 +13,3 @@ Describes the result of uploading an image resource |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-jakarta/docs/Order.md b/samples/client/petstore/java/native-jakarta/docs/Order.md index 0c33059b8b6a..5f37d98be57b 100644 --- a/samples/client/petstore/java/native-jakarta/docs/Order.md +++ b/samples/client/petstore/java/native-jakarta/docs/Order.md @@ -26,4 +26,3 @@ An order for a pets from the pet store | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/native-jakarta/docs/Pet.md b/samples/client/petstore/java/native-jakarta/docs/Pet.md index 8bb363301232..4319dfdcb79b 100644 --- a/samples/client/petstore/java/native-jakarta/docs/Pet.md +++ b/samples/client/petstore/java/native-jakarta/docs/Pet.md @@ -26,4 +26,3 @@ A pet for sale in the pet store | SOLD | "sold" | - diff --git a/samples/client/petstore/java/native-jakarta/docs/Tag.md b/samples/client/petstore/java/native-jakarta/docs/Tag.md index abfde4afb501..539d9b3e6648 100644 --- a/samples/client/petstore/java/native-jakarta/docs/Tag.md +++ b/samples/client/petstore/java/native-jakarta/docs/Tag.md @@ -12,4 +12,3 @@ A tag for a pet |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native-jakarta/docs/User.md b/samples/client/petstore/java/native-jakarta/docs/User.md index 426845227bd3..7bbb6217b8f7 100644 --- a/samples/client/petstore/java/native-jakarta/docs/User.md +++ b/samples/client/petstore/java/native-jakarta/docs/User.md @@ -18,4 +18,3 @@ A User who is purchasing from the pet store |**userStatus** | **Integer** | User Status | [optional] | - diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 2b0da9d1ad78..e92b685ba1af 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -143,5 +143,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java index 40920ec031e0..10e579631a6c 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -37,14 +37,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Category() { } @@ -58,8 +57,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +80,7 @@ public Category name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +93,6 @@ public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Category object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index deaecc7dfef3..162fa009de5d 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -38,18 +38,16 @@ ModelApiResponse.JSON_PROPERTY_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -63,8 +61,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; @@ -87,8 +84,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; @@ -111,8 +107,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; @@ -125,7 +120,6 @@ public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java index 4b869110f2bf..aa812163e4ca 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -42,22 +42,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -95,14 +92,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -116,8 +110,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -140,8 +133,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; @@ -164,8 +156,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; @@ -188,8 +179,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; @@ -212,8 +202,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -236,8 +225,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; @@ -250,7 +238,6 @@ public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 9bd07ec68122..3460bd25a450 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -45,26 +45,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -102,10 +98,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -143,8 +136,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -167,8 +159,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -199,8 +190,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -257,8 +246,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -271,7 +259,6 @@ public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 5fb33a3ada3c..891c14ff6ec5 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -37,14 +37,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -58,8 +57,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +80,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +93,6 @@ public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java index eab4c0a8301b..78c7805ee221 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -43,38 +43,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -88,8 +81,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -112,8 +104,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; @@ -136,8 +127,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -160,8 +150,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -184,8 +173,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -208,8 +196,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -232,8 +219,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -256,8 +242,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; @@ -270,7 +255,6 @@ public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; } - /** * Return true if this User object is equal to o. */ diff --git a/samples/client/petstore/java/native/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/native/docs/AdditionalPropertiesClass.md index 83051d9be44b..3bda53c4d3ce 100644 --- a/samples/client/petstore/java/native/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/native/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ |**mapWithUndeclaredPropertiesString** | **Map<String, String>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Animal.md b/samples/client/petstore/java/native/docs/Animal.md index d9b32f14c88a..540bfec69bce 100644 --- a/samples/client/petstore/java/native/docs/Animal.md +++ b/samples/client/petstore/java/native/docs/Animal.md @@ -11,4 +11,3 @@ |**color** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Apple.md b/samples/client/petstore/java/native/docs/Apple.md index 0ef7a92c74d6..19a409261d0c 100644 --- a/samples/client/petstore/java/native/docs/Apple.md +++ b/samples/client/petstore/java/native/docs/Apple.md @@ -11,4 +11,3 @@ |**origin** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/AppleReq.md b/samples/client/petstore/java/native/docs/AppleReq.md index 989e1cfedd1e..4dae60bf73d3 100644 --- a/samples/client/petstore/java/native/docs/AppleReq.md +++ b/samples/client/petstore/java/native/docs/AppleReq.md @@ -11,4 +11,3 @@ |**mealy** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/native/docs/ArrayOfArrayOfNumberOnly.md index 0188db3eb131..237ef6876b5a 100644 --- a/samples/client/petstore/java/native/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/native/docs/ArrayOfArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayArrayNumber** | **List<List<BigDecimal>>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ArrayOfNumberOnly.md b/samples/client/petstore/java/native/docs/ArrayOfNumberOnly.md index a5753530aada..48d5474e10ac 100644 --- a/samples/client/petstore/java/native/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/native/docs/ArrayOfNumberOnly.md @@ -10,4 +10,3 @@ |**arrayNumber** | **List<BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ArrayTest.md b/samples/client/petstore/java/native/docs/ArrayTest.md index 36077c9df300..1bfb727e450a 100644 --- a/samples/client/petstore/java/native/docs/ArrayTest.md +++ b/samples/client/petstore/java/native/docs/ArrayTest.md @@ -12,4 +12,3 @@ |**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Banana.md b/samples/client/petstore/java/native/docs/Banana.md index 5356d17ee700..cf0c789b457b 100644 --- a/samples/client/petstore/java/native/docs/Banana.md +++ b/samples/client/petstore/java/native/docs/Banana.md @@ -10,4 +10,3 @@ |**lengthCm** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/BananaReq.md b/samples/client/petstore/java/native/docs/BananaReq.md index 22ebe1a7105f..2a45b8a318bf 100644 --- a/samples/client/petstore/java/native/docs/BananaReq.md +++ b/samples/client/petstore/java/native/docs/BananaReq.md @@ -11,4 +11,3 @@ |**sweet** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/BasquePig.md b/samples/client/petstore/java/native/docs/BasquePig.md index 160cb71c321f..ab4d63f698e7 100644 --- a/samples/client/petstore/java/native/docs/BasquePig.md +++ b/samples/client/petstore/java/native/docs/BasquePig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/Capitalization.md b/samples/client/petstore/java/native/docs/Capitalization.md index 82a812711de2..0b2455e5863f 100644 --- a/samples/client/petstore/java/native/docs/Capitalization.md +++ b/samples/client/petstore/java/native/docs/Capitalization.md @@ -15,4 +15,3 @@ |**ATT_NAME** | **String** | Name of the pet | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Cat.md b/samples/client/petstore/java/native/docs/Cat.md index 390dd519c8ce..04b42c7dc5ba 100644 --- a/samples/client/petstore/java/native/docs/Cat.md +++ b/samples/client/petstore/java/native/docs/Cat.md @@ -10,4 +10,3 @@ |**declawed** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Category.md b/samples/client/petstore/java/native/docs/Category.md index ab6d1ec334dc..f33915619ccb 100644 --- a/samples/client/petstore/java/native/docs/Category.md +++ b/samples/client/petstore/java/native/docs/Category.md @@ -11,4 +11,3 @@ |**name** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/ChildCat.md b/samples/client/petstore/java/native/docs/ChildCat.md index 258d87e56998..de4d3300bc95 100644 --- a/samples/client/petstore/java/native/docs/ChildCat.md +++ b/samples/client/petstore/java/native/docs/ChildCat.md @@ -19,4 +19,3 @@ | CHILD_CAT | "ChildCat" | - diff --git a/samples/client/petstore/java/native/docs/ClassModel.md b/samples/client/petstore/java/native/docs/ClassModel.md index af46dea1f6c8..58f279eeb404 100644 --- a/samples/client/petstore/java/native/docs/ClassModel.md +++ b/samples/client/petstore/java/native/docs/ClassModel.md @@ -11,4 +11,3 @@ Model for testing model with \"_class\" property |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Client.md b/samples/client/petstore/java/native/docs/Client.md index ef07b4ab8b9d..414196529f07 100644 --- a/samples/client/petstore/java/native/docs/Client.md +++ b/samples/client/petstore/java/native/docs/Client.md @@ -10,4 +10,3 @@ |**client** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ComplexQuadrilateral.md b/samples/client/petstore/java/native/docs/ComplexQuadrilateral.md index d0a4b1a0a758..0054df5be9f4 100644 --- a/samples/client/petstore/java/native/docs/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/native/docs/ComplexQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/DanishPig.md b/samples/client/petstore/java/native/docs/DanishPig.md index 0b366d3cf2ff..161f758de85b 100644 --- a/samples/client/petstore/java/native/docs/DanishPig.md +++ b/samples/client/petstore/java/native/docs/DanishPig.md @@ -10,4 +10,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/DeprecatedObject.md b/samples/client/petstore/java/native/docs/DeprecatedObject.md index 48de1d624425..bbc0ccf6ed66 100644 --- a/samples/client/petstore/java/native/docs/DeprecatedObject.md +++ b/samples/client/petstore/java/native/docs/DeprecatedObject.md @@ -10,4 +10,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Dog.md b/samples/client/petstore/java/native/docs/Dog.md index 972c981c0d05..4692cd2b4a53 100644 --- a/samples/client/petstore/java/native/docs/Dog.md +++ b/samples/client/petstore/java/native/docs/Dog.md @@ -10,4 +10,3 @@ |**breed** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Drawing.md b/samples/client/petstore/java/native/docs/Drawing.md index 6b815fc4131b..87a8673fd2a4 100644 --- a/samples/client/petstore/java/native/docs/Drawing.md +++ b/samples/client/petstore/java/native/docs/Drawing.md @@ -13,4 +13,3 @@ |**shapes** | [**List<Shape>**](Shape.md) | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/EnumArrays.md b/samples/client/petstore/java/native/docs/EnumArrays.md index b2222d5beb25..58c010444806 100644 --- a/samples/client/petstore/java/native/docs/EnumArrays.md +++ b/samples/client/petstore/java/native/docs/EnumArrays.md @@ -29,4 +29,3 @@ | CRAB | "crab" | - diff --git a/samples/client/petstore/java/native/docs/EnumClass.md b/samples/client/petstore/java/native/docs/EnumClass.md index b314590a7591..7a4c4ec692cb 100644 --- a/samples/client/petstore/java/native/docs/EnumClass.md +++ b/samples/client/petstore/java/native/docs/EnumClass.md @@ -12,4 +12,3 @@ * `_XYZ_` (value: `"(xyz)"`) - diff --git a/samples/client/petstore/java/native/docs/EnumTest.md b/samples/client/petstore/java/native/docs/EnumTest.md index 3e226e18b50b..fca06e778491 100644 --- a/samples/client/petstore/java/native/docs/EnumTest.md +++ b/samples/client/petstore/java/native/docs/EnumTest.md @@ -65,4 +65,3 @@ | NUMBER_MINUS_1_DOT_2 | -1.2 | - diff --git a/samples/client/petstore/java/native/docs/EquilateralTriangle.md b/samples/client/petstore/java/native/docs/EquilateralTriangle.md index eade817feb3e..063b113ee700 100644 --- a/samples/client/petstore/java/native/docs/EquilateralTriangle.md +++ b/samples/client/petstore/java/native/docs/EquilateralTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/java/native/docs/FakeBigDecimalMap200Response.md index 475be1d2d738..35f1cd587cf9 100644 --- a/samples/client/petstore/java/native/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/java/native/docs/FakeBigDecimalMap200Response.md @@ -11,4 +11,3 @@ |**someMap** | **Map<String, BigDecimal>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/FileSchemaTestClass.md b/samples/client/petstore/java/native/docs/FileSchemaTestClass.md index 85d1a0636694..f5d57cfd409f 100644 --- a/samples/client/petstore/java/native/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/java/native/docs/FileSchemaTestClass.md @@ -11,4 +11,3 @@ |**files** | [**List<ModelFile>**](ModelFile.md) | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Foo.md b/samples/client/petstore/java/native/docs/Foo.md index 6b3f0556528a..9c59271b892e 100644 --- a/samples/client/petstore/java/native/docs/Foo.md +++ b/samples/client/petstore/java/native/docs/Foo.md @@ -10,4 +10,3 @@ |**bar** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/FooGetDefaultResponse.md b/samples/client/petstore/java/native/docs/FooGetDefaultResponse.md index ff3d7a3a56c3..fb98b2bd3763 100644 --- a/samples/client/petstore/java/native/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/java/native/docs/FooGetDefaultResponse.md @@ -10,4 +10,3 @@ |**string** | [**Foo**](Foo.md) | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/FormatTest.md b/samples/client/petstore/java/native/docs/FormatTest.md index 01b8c777ae06..4397f81e22d4 100644 --- a/samples/client/petstore/java/native/docs/FormatTest.md +++ b/samples/client/petstore/java/native/docs/FormatTest.md @@ -25,4 +25,3 @@ |**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Fruit.md b/samples/client/petstore/java/native/docs/Fruit.md index 41b3152250e1..1ca01a3fda08 100644 --- a/samples/client/petstore/java/native/docs/Fruit.md +++ b/samples/client/petstore/java/native/docs/Fruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/FruitReq.md b/samples/client/petstore/java/native/docs/FruitReq.md index 3927b7acded2..649d59b09ff7 100644 --- a/samples/client/petstore/java/native/docs/FruitReq.md +++ b/samples/client/petstore/java/native/docs/FruitReq.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/GmFruit.md b/samples/client/petstore/java/native/docs/GmFruit.md index c9dc50b92cb7..e182eaf5420c 100644 --- a/samples/client/petstore/java/native/docs/GmFruit.md +++ b/samples/client/petstore/java/native/docs/GmFruit.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/GrandparentAnimal.md b/samples/client/petstore/java/native/docs/GrandparentAnimal.md index 9737408f2724..dbc2301c750a 100644 --- a/samples/client/petstore/java/native/docs/GrandparentAnimal.md +++ b/samples/client/petstore/java/native/docs/GrandparentAnimal.md @@ -10,4 +10,3 @@ |**petType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/HasOnlyReadOnly.md b/samples/client/petstore/java/native/docs/HasOnlyReadOnly.md index 29da5205dbba..38dfd19f5a82 100644 --- a/samples/client/petstore/java/native/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/native/docs/HasOnlyReadOnly.md @@ -11,4 +11,3 @@ |**foo** | **String** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/native/docs/HealthCheckResult.md b/samples/client/petstore/java/native/docs/HealthCheckResult.md index 4885e6f1cada..a2065216d66b 100644 --- a/samples/client/petstore/java/native/docs/HealthCheckResult.md +++ b/samples/client/petstore/java/native/docs/HealthCheckResult.md @@ -11,4 +11,3 @@ Just a string to inform instance is up and running. Make it nullable in hope to |**nullableMessage** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/IsoscelesTriangle.md b/samples/client/petstore/java/native/docs/IsoscelesTriangle.md index 0bd5045bc68f..674bb2d975be 100644 --- a/samples/client/petstore/java/native/docs/IsoscelesTriangle.md +++ b/samples/client/petstore/java/native/docs/IsoscelesTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/Mammal.md b/samples/client/petstore/java/native/docs/Mammal.md index 11bbff5e2ba9..8c881b7f5cb2 100644 --- a/samples/client/petstore/java/native/docs/Mammal.md +++ b/samples/client/petstore/java/native/docs/Mammal.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/MapTest.md b/samples/client/petstore/java/native/docs/MapTest.md index 54380188e1d6..b68397073bfb 100644 --- a/samples/client/petstore/java/native/docs/MapTest.md +++ b/samples/client/petstore/java/native/docs/MapTest.md @@ -22,4 +22,3 @@ | LOWER | "lower" | - diff --git a/samples/client/petstore/java/native/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/native/docs/MixedPropertiesAndAdditionalPropertiesClass.md index a5ddf0faa6a9..5d0f2a7b6a42 100644 --- a/samples/client/petstore/java/native/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/native/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -12,4 +12,3 @@ |**map** | [**Map<String, Animal>**](Animal.md) | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Model200Response.md b/samples/client/petstore/java/native/docs/Model200Response.md index 109411580c62..14100fcc25bb 100644 --- a/samples/client/petstore/java/native/docs/Model200Response.md +++ b/samples/client/petstore/java/native/docs/Model200Response.md @@ -12,4 +12,3 @@ Model for testing model name starting with number |**propertyClass** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ModelApiResponse.md b/samples/client/petstore/java/native/docs/ModelApiResponse.md index e374c2dd2dec..e59fea0970b9 100644 --- a/samples/client/petstore/java/native/docs/ModelApiResponse.md +++ b/samples/client/petstore/java/native/docs/ModelApiResponse.md @@ -12,4 +12,3 @@ |**message** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ModelFile.md b/samples/client/petstore/java/native/docs/ModelFile.md index adcde984f527..61c9020e62ae 100644 --- a/samples/client/petstore/java/native/docs/ModelFile.md +++ b/samples/client/petstore/java/native/docs/ModelFile.md @@ -11,4 +11,3 @@ Must be named `File` for test. |**sourceURI** | **String** | Test capitalization | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ModelList.md b/samples/client/petstore/java/native/docs/ModelList.md index f93ab7dde8d4..2e28e551301c 100644 --- a/samples/client/petstore/java/native/docs/ModelList.md +++ b/samples/client/petstore/java/native/docs/ModelList.md @@ -10,4 +10,3 @@ |**_123list** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ModelReturn.md b/samples/client/petstore/java/native/docs/ModelReturn.md index 0bd356861eb7..d307e6fbd935 100644 --- a/samples/client/petstore/java/native/docs/ModelReturn.md +++ b/samples/client/petstore/java/native/docs/ModelReturn.md @@ -11,4 +11,3 @@ Model for testing reserved words |**_return** | **Integer** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Name.md b/samples/client/petstore/java/native/docs/Name.md index c901d9435309..002cad3f3320 100644 --- a/samples/client/petstore/java/native/docs/Name.md +++ b/samples/client/petstore/java/native/docs/Name.md @@ -14,4 +14,3 @@ Model for testing model name same as property name |**_123number** | **Integer** | | [optional] [readonly] | - diff --git a/samples/client/petstore/java/native/docs/NullableClass.md b/samples/client/petstore/java/native/docs/NullableClass.md index fa98c5c6d984..3f6e8619c87e 100644 --- a/samples/client/petstore/java/native/docs/NullableClass.md +++ b/samples/client/petstore/java/native/docs/NullableClass.md @@ -21,4 +21,3 @@ |**objectItemsNullable** | **Map<String, Object>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/NullableShape.md b/samples/client/petstore/java/native/docs/NullableShape.md index 60c45b268406..ae217f582b2e 100644 --- a/samples/client/petstore/java/native/docs/NullableShape.md +++ b/samples/client/petstore/java/native/docs/NullableShape.md @@ -38,4 +38,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/NumberOnly.md b/samples/client/petstore/java/native/docs/NumberOnly.md index b8ed1a4cfae1..ca181cdaf816 100644 --- a/samples/client/petstore/java/native/docs/NumberOnly.md +++ b/samples/client/petstore/java/native/docs/NumberOnly.md @@ -10,4 +10,3 @@ |**justNumber** | **BigDecimal** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/java/native/docs/ObjectWithDeprecatedFields.md index f1cf571f4c09..37a3aad5547b 100644 --- a/samples/client/petstore/java/native/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/java/native/docs/ObjectWithDeprecatedFields.md @@ -13,4 +13,3 @@ |**bars** | **List<String>** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Order.md b/samples/client/petstore/java/native/docs/Order.md index 27af32855c5c..21c4c8efc7ba 100644 --- a/samples/client/petstore/java/native/docs/Order.md +++ b/samples/client/petstore/java/native/docs/Order.md @@ -25,4 +25,3 @@ | DELIVERED | "delivered" | - diff --git a/samples/client/petstore/java/native/docs/OuterComposite.md b/samples/client/petstore/java/native/docs/OuterComposite.md index 98b56e0763ff..19601002fd28 100644 --- a/samples/client/petstore/java/native/docs/OuterComposite.md +++ b/samples/client/petstore/java/native/docs/OuterComposite.md @@ -12,4 +12,3 @@ |**myBoolean** | **Boolean** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/OuterEnum.md b/samples/client/petstore/java/native/docs/OuterEnum.md index 1f9b723eb8e7..97cfc1e9a952 100644 --- a/samples/client/petstore/java/native/docs/OuterEnum.md +++ b/samples/client/petstore/java/native/docs/OuterEnum.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/native/docs/OuterEnumDefaultValue.md b/samples/client/petstore/java/native/docs/OuterEnumDefaultValue.md index cbc7f4ba54d2..16c6da73893a 100644 --- a/samples/client/petstore/java/native/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/java/native/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ * `DELIVERED` (value: `"delivered"`) - diff --git a/samples/client/petstore/java/native/docs/OuterEnumInteger.md b/samples/client/petstore/java/native/docs/OuterEnumInteger.md index f71dea30ad00..1691ce771b36 100644 --- a/samples/client/petstore/java/native/docs/OuterEnumInteger.md +++ b/samples/client/petstore/java/native/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/native/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/java/native/docs/OuterEnumIntegerDefaultValue.md index 99e6389f4278..e57bc124e364 100644 --- a/samples/client/petstore/java/native/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/java/native/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ * `NUMBER_2` (value: `2`) - diff --git a/samples/client/petstore/java/native/docs/ParentPet.md b/samples/client/petstore/java/native/docs/ParentPet.md index 4992b88a6710..27b37b9d1d26 100644 --- a/samples/client/petstore/java/native/docs/ParentPet.md +++ b/samples/client/petstore/java/native/docs/ParentPet.md @@ -9,4 +9,3 @@ |------------ | ------------- | ------------- | -------------| - diff --git a/samples/client/petstore/java/native/docs/Pet.md b/samples/client/petstore/java/native/docs/Pet.md index 08dfd8623602..d7a1d925604c 100644 --- a/samples/client/petstore/java/native/docs/Pet.md +++ b/samples/client/petstore/java/native/docs/Pet.md @@ -25,4 +25,3 @@ | SOLD | "sold" | - diff --git a/samples/client/petstore/java/native/docs/Pig.md b/samples/client/petstore/java/native/docs/Pig.md index f0a92bbe61b8..568f7f4d4074 100644 --- a/samples/client/petstore/java/native/docs/Pig.md +++ b/samples/client/petstore/java/native/docs/Pig.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/Quadrilateral.md b/samples/client/petstore/java/native/docs/Quadrilateral.md index 83ffea0c742f..724e89359230 100644 --- a/samples/client/petstore/java/native/docs/Quadrilateral.md +++ b/samples/client/petstore/java/native/docs/Quadrilateral.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/QuadrilateralInterface.md b/samples/client/petstore/java/native/docs/QuadrilateralInterface.md index 99451f3bd020..1817e338ff70 100644 --- a/samples/client/petstore/java/native/docs/QuadrilateralInterface.md +++ b/samples/client/petstore/java/native/docs/QuadrilateralInterface.md @@ -10,4 +10,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/ReadOnlyFirst.md b/samples/client/petstore/java/native/docs/ReadOnlyFirst.md index ad6af7ee155f..138406406d37 100644 --- a/samples/client/petstore/java/native/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/java/native/docs/ReadOnlyFirst.md @@ -11,4 +11,3 @@ |**baz** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/ScaleneTriangle.md b/samples/client/petstore/java/native/docs/ScaleneTriangle.md index c578f6cbfaab..fb2f1e798e74 100644 --- a/samples/client/petstore/java/native/docs/ScaleneTriangle.md +++ b/samples/client/petstore/java/native/docs/ScaleneTriangle.md @@ -11,4 +11,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/Shape.md b/samples/client/petstore/java/native/docs/Shape.md index 9c237eefb048..57895ef4e1ba 100644 --- a/samples/client/petstore/java/native/docs/Shape.md +++ b/samples/client/petstore/java/native/docs/Shape.md @@ -34,4 +34,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/ShapeInterface.md b/samples/client/petstore/java/native/docs/ShapeInterface.md index b4f981e3b566..e1d285bda6e6 100644 --- a/samples/client/petstore/java/native/docs/ShapeInterface.md +++ b/samples/client/petstore/java/native/docs/ShapeInterface.md @@ -10,4 +10,3 @@ |**shapeType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/ShapeOrNull.md b/samples/client/petstore/java/native/docs/ShapeOrNull.md index 0bb9b8b9025f..f0b05f9317d2 100644 --- a/samples/client/petstore/java/native/docs/ShapeOrNull.md +++ b/samples/client/petstore/java/native/docs/ShapeOrNull.md @@ -36,4 +36,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/SimpleQuadrilateral.md b/samples/client/petstore/java/native/docs/SimpleQuadrilateral.md index 52fb7d1a6a49..c4e88c259564 100644 --- a/samples/client/petstore/java/native/docs/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/native/docs/SimpleQuadrilateral.md @@ -11,4 +11,3 @@ |**quadrilateralType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/SpecialModelName.md b/samples/client/petstore/java/native/docs/SpecialModelName.md index e17d0d797b7f..5336911fcf74 100644 --- a/samples/client/petstore/java/native/docs/SpecialModelName.md +++ b/samples/client/petstore/java/native/docs/SpecialModelName.md @@ -11,4 +11,3 @@ |**specialModelName** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Tag.md b/samples/client/petstore/java/native/docs/Tag.md index 5088b2dd1c31..169ff376a5af 100644 --- a/samples/client/petstore/java/native/docs/Tag.md +++ b/samples/client/petstore/java/native/docs/Tag.md @@ -11,4 +11,3 @@ |**name** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/java/native/docs/TestInlineFreeformAdditionalPropertiesRequest.md index dc066e6c7dac..31f9e4136789 100644 --- a/samples/client/petstore/java/native/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/java/native/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -10,4 +10,3 @@ |**someProperty** | **String** | | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Triangle.md b/samples/client/petstore/java/native/docs/Triangle.md index daf9d153ff61..8ca98989d719 100644 --- a/samples/client/petstore/java/native/docs/Triangle.md +++ b/samples/client/petstore/java/native/docs/Triangle.md @@ -43,4 +43,3 @@ public class Example { } ``` - diff --git a/samples/client/petstore/java/native/docs/TriangleInterface.md b/samples/client/petstore/java/native/docs/TriangleInterface.md index ef5fc7575f34..c684f27e8582 100644 --- a/samples/client/petstore/java/native/docs/TriangleInterface.md +++ b/samples/client/petstore/java/native/docs/TriangleInterface.md @@ -10,4 +10,3 @@ |**triangleType** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/User.md b/samples/client/petstore/java/native/docs/User.md index 9e97dc35485f..0923cdf0c33f 100644 --- a/samples/client/petstore/java/native/docs/User.md +++ b/samples/client/petstore/java/native/docs/User.md @@ -21,4 +21,3 @@ |**anyTypePropNullable** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. | [optional] | - diff --git a/samples/client/petstore/java/native/docs/Whale.md b/samples/client/petstore/java/native/docs/Whale.md index 30ce4bb82151..bec0b35bd000 100644 --- a/samples/client/petstore/java/native/docs/Whale.md +++ b/samples/client/petstore/java/native/docs/Whale.md @@ -12,4 +12,3 @@ |**className** | **String** | | | - diff --git a/samples/client/petstore/java/native/docs/Zebra.md b/samples/client/petstore/java/native/docs/Zebra.md index f7c4389b6456..3b9786866e50 100644 --- a/samples/client/petstore/java/native/docs/Zebra.md +++ b/samples/client/petstore/java/native/docs/Zebra.md @@ -21,4 +21,3 @@ | GREVYS | "grevys" | - diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 29df00aa086e..4d9c4bef1d3f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -143,5 +143,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 76dc10c07a8b..0a00b9a60f48 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -51,35 +51,28 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; private JsonNullable anytype1 = JsonNullable.of(null); public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype1; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype2; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map"; - @javax.annotation.Nullable - private Object emptyMap; + @javax.annotation.Nullable private Object emptyMap; public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesString = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -101,8 +94,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { return mapProperty; @@ -133,8 +125,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; @@ -157,15 +148,13 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnytype1() { return anytype1.orElse(null); } @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnytype1_JsonNullable() { return anytype1; } @@ -189,8 +178,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * Get mapWithUndeclaredPropertiesAnytype1 * @return mapWithUndeclaredPropertiesAnytype1 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; @@ -213,8 +201,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * Get mapWithUndeclaredPropertiesAnytype2 * @return mapWithUndeclaredPropertiesAnytype2 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; @@ -245,8 +232,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * Get mapWithUndeclaredPropertiesAnytype3 * @return mapWithUndeclaredPropertiesAnytype3 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; @@ -269,8 +255,7 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * an object with no declared properties and no undeclared properties, hence it's an empty map. * @return emptyMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMPTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { return emptyMap; @@ -301,8 +286,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * Get mapWithUndeclaredPropertiesString * @return mapWithUndeclaredPropertiesString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; @@ -315,7 +299,6 @@ public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map< this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } - /** * Return true if this AdditionalPropertiesClass object is equal to o. */ @@ -563,6 +546,5 @@ public AdditionalPropertiesClass.Builder toBuilder() { .emptyMap(getEmptyMap()) .mapWithUndeclaredPropertiesString(getMapWithUndeclaredPropertiesString()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java index d1f3c98076fb..8212867af523 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java @@ -50,15 +50,12 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog"), }) - public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { } @@ -72,8 +69,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -96,8 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; @@ -110,7 +105,6 @@ public void setColor(@javax.annotation.Nullable String color) { this.color = color; } - /** * Return true if this Animal object is equal to o. */ @@ -263,6 +257,5 @@ public Animal.Builder toBuilder() { .className(getClassName()) .color(getColor()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java index 1c61171ebe6c..bba922865513 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Apple { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; - @javax.annotation.Nullable - private String cultivar; + @javax.annotation.Nullable private String cultivar; public static final String JSON_PROPERTY_ORIGIN = "origin"; - @javax.annotation.Nullable - private String origin; + @javax.annotation.Nullable private String origin; public Apple() { } @@ -58,8 +56,7 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { return cultivar; @@ -82,8 +79,7 @@ public Apple origin(@javax.annotation.Nullable String origin) { * Get origin * @return origin */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { return origin; @@ -96,7 +92,6 @@ public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; } - /** * Return true if this apple object is equal to o. */ @@ -241,6 +236,5 @@ public Apple.Builder toBuilder() { .cultivar(getCultivar()) .origin(getOrigin()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java index a34652b3c109..403f74dc81e2 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AppleReq { public static final String JSON_PROPERTY_CULTIVAR = "cultivar"; - @javax.annotation.Nonnull - private String cultivar; + @javax.annotation.Nonnull private String cultivar; public static final String JSON_PROPERTY_MEALY = "mealy"; - @javax.annotation.Nullable - private Boolean mealy; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } @@ -58,8 +56,7 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CULTIVAR) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { return cultivar; @@ -82,8 +79,7 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * Get mealy * @return mealy */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MEALY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { return mealy; @@ -96,7 +92,6 @@ public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; } - /** * Return true if this appleReq object is equal to o. */ @@ -241,6 +236,5 @@ public AppleReq.Builder toBuilder() { .cultivar(getCultivar()) .mealy(getMealy()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9028a95c7d42..bbe01b4cd18d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -41,8 +41,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -64,8 +63,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { return arrayArrayNumber; @@ -78,7 +76,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List this.arrayArrayNumber = arrayArrayNumber; } - /** * Return true if this ArrayOfArrayOfNumberOnly object is equal to o. */ @@ -217,6 +214,5 @@ public ArrayOfArrayOfNumberOnly.Builder toBuilder() { return new ArrayOfArrayOfNumberOnly.Builder() .arrayArrayNumber(getArrayArrayNumber()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 03e2f228771c..645a3e7d711f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -41,8 +41,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -64,8 +63,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { return arrayNumber; @@ -78,7 +76,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb this.arrayNumber = arrayNumber; } - /** * Return true if this ArrayOfNumberOnly object is equal to o. */ @@ -217,6 +214,5 @@ public ArrayOfNumberOnly.Builder toBuilder() { return new ArrayOfNumberOnly.Builder() .arrayNumber(getArrayNumber()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java index 234361daf01a..9c960d2198b6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -43,16 +43,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -74,8 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { return arrayOfString; @@ -106,8 +102,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; @@ -138,8 +133,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { return arrayArrayOfModel; @@ -152,7 +146,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List { public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape"; - @javax.annotation.Nullable - private Shape mainShape; + @javax.annotation.Nullable private Shape mainShape; public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull"; - @javax.annotation.Nullable - private ShapeOrNull shapeOrNull; + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String JSON_PROPERTY_NULLABLE_SHAPE = "nullableShape"; private JsonNullable nullableShape = JsonNullable.undefined(); public static final String JSON_PROPERTY_SHAPES = "shapes"; - @javax.annotation.Nullable - private List shapes = new ArrayList<>(); + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } @@ -83,8 +80,7 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * Get mainShape * @return mainShape */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { return mainShape; @@ -107,8 +103,7 @@ public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { * Get shapeOrNull * @return shapeOrNull */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ShapeOrNull getShapeOrNull() { return shapeOrNull; @@ -131,15 +126,13 @@ public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableSh * Get nullableShape * @return nullableShape */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public NullableShape getNullableShape() { return nullableShape.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableShape_JsonNullable() { return nullableShape; } @@ -171,8 +164,7 @@ public Drawing addShapesItem(Shape shapesItem) { * Get shapes * @return shapes */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHAPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { return shapes; @@ -228,7 +220,6 @@ public Fruit getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this Drawing object is equal to o. */ @@ -421,6 +412,5 @@ public Drawing.Builder toBuilder() { .nullableShape(getNullableShape()) .shapes(getShapes()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index 91d031f2d384..21dbe399f2e6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -76,8 +76,7 @@ public static JustSymbolEnum fromValue(String value) { } public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -115,8 +114,7 @@ public static ArrayEnumEnum fromValue(String value) { } public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -130,8 +128,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { return justSymbol; @@ -162,8 +159,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { return arrayEnum; @@ -176,7 +172,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu this.arrayEnum = arrayEnum; } - /** * Return true if this EnumArrays object is equal to o. */ @@ -325,6 +320,5 @@ public EnumArrays.Builder toBuilder() { .justSymbol(getJustSymbol()) .arrayEnum(getArrayEnum()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index a5b629557a10..36976df39d12 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -91,8 +91,7 @@ public static EnumStringEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -132,8 +131,7 @@ public static EnumStringRequiredEnum fromValue(String value) { } public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -171,8 +169,7 @@ public static EnumIntegerEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumIntegerOnly @@ -210,8 +207,7 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { } public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only"; - @javax.annotation.Nullable - private EnumIntegerOnlyEnum enumIntegerOnly; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** * Gets or Sets enumNumber @@ -249,23 +245,19 @@ public static EnumNumberEnum fromValue(Double value) { } public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -279,8 +271,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { return enumString; @@ -303,8 +294,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; @@ -327,8 +317,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { return enumInteger; @@ -351,8 +340,7 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * Get enumIntegerOnly * @return enumIntegerOnly */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; @@ -375,8 +363,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { return enumNumber; @@ -399,15 +386,13 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -431,8 +416,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; @@ -455,8 +439,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; @@ -479,8 +462,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; @@ -493,7 +475,6 @@ public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnum this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } - /** * Return true if this Enum_Test object is equal to o. */ @@ -737,6 +718,5 @@ public EnumTest.Builder toBuilder() { .outerEnumDefaultValue(getOuterEnumDefaultValue()) .outerEnumIntegerDefaultValue(getOuterEnumIntegerDefaultValue()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 2033162fd120..ed6f07524183 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class EquilateralTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } @@ -58,8 +56,7 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +79,7 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +92,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this EquilateralTriangle object is equal to o. */ @@ -241,6 +236,5 @@ public EquilateralTriangle.Builder toBuilder() { .shapeType(getShapeType()) .triangleType(getTriangleType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 24888be137f3..45fdde0c1747 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -42,12 +42,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap = new HashMap<>(); + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -61,8 +59,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { return someId; @@ -93,8 +90,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { return someMap; @@ -107,7 +103,6 @@ public void setSomeMap(@javax.annotation.Nullable Map someMa this.someMap = someMap; } - /** * Return true if this fakeBigDecimalMap_200_response object is equal to o. */ @@ -256,6 +251,5 @@ public FakeBigDecimalMap200Response.Builder toBuilder() { .someId(getSomeId()) .someMap(getSomeMap()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 5a0e40370724..6b26e44db350 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -42,12 +42,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -61,8 +59,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { return _file; @@ -93,8 +90,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; @@ -107,7 +103,6 @@ public void setFiles(@javax.annotation.Nullable List files) { this.files = files; } - /** * Return true if this FileSchemaTestClass object is equal to o. */ @@ -257,6 +252,5 @@ public FileSchemaTestClass.Builder toBuilder() { ._file(getFile()) .files(getFiles()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java index baf2ad201972..637e1951fedf 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -53,8 +52,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -67,7 +65,6 @@ public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; } - /** * Return true if this Foo object is equal to o. */ @@ -200,6 +197,5 @@ public Foo.Builder toBuilder() { return new Foo.Builder() .bar(getBar()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 63ff6395a1e5..593283594d1b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -39,8 +39,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -54,8 +53,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { return string; @@ -68,7 +66,6 @@ public void setString(@javax.annotation.Nullable Foo string) { this.string = string; } - /** * Return true if this _foo_get_default_response object is equal to o. */ @@ -201,6 +198,5 @@ public FooGetDefaultResponse.Builder toBuilder() { return new FooGetDefaultResponse.Builder() .string(getString()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java index 3bb358c894a1..3f765abfd278 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java @@ -58,68 +58,52 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -135,8 +119,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { return integer; @@ -161,8 +144,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { return int32; @@ -185,8 +167,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { return int64; @@ -211,8 +192,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { return number; @@ -237,8 +217,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; @@ -263,8 +242,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; @@ -287,8 +265,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { return decimal; @@ -311,8 +288,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { return string; @@ -335,8 +311,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { return _byte; @@ -359,8 +334,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { return binary; @@ -383,8 +357,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { return date; @@ -407,8 +380,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; @@ -431,8 +403,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -455,8 +426,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { return password; @@ -479,8 +449,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { return patternWithDigits; @@ -503,8 +472,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; @@ -517,7 +485,6 @@ public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String p this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } - /** * Return true if this format_test object is equal to o. */ @@ -830,6 +797,5 @@ public FormatTest.Builder toBuilder() { .patternWithDigits(getPatternWithDigits()) .patternWithDigitsAndDelimiter(getPatternWithDigitsAndDelimiter()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Fruit.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Fruit.java index 657dfc19c850..6acf58194f9a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Fruit.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Fruit.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Fruit.FruitDeserializer.class) @JsonSerialize(using = Fruit.FruitSerializer.class) public class Fruit extends AbstractOpenApiSchema { @@ -166,7 +167,6 @@ public Fruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcepti public Fruit() { super("oneOf", Boolean.FALSE); } - public Fruit(Apple o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FruitReq.java index 66a63ec9eb0f..cee3506218e0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FruitReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FruitReq.java @@ -55,6 +55,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = FruitReq.FruitReqDeserializer.class) @JsonSerialize(using = FruitReq.FruitReqSerializer.class) public class FruitReq extends AbstractOpenApiSchema { @@ -166,7 +167,6 @@ public FruitReq getNullValue(DeserializationContext ctxt) throws JsonMappingExce public FruitReq() { super("oneOf", Boolean.FALSE); } - public FruitReq(AppleReq o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GmFruit.java index 6b3ba6739e35..6b4dd62906d8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GmFruit.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GmFruit.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using=GmFruit.GmFruitDeserializer.class) @JsonSerialize(using = GmFruit.GmFruitSerializer.class) public class GmFruit extends AbstractOpenApiSchema { @@ -126,7 +127,6 @@ public GmFruit getNullValue(DeserializationContext ctxt) throws JsonMappingExcep public GmFruit() { super("anyOf", Boolean.FALSE); } - public GmFruit(Apple o) { super("anyOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 4d5c1dcadf07..9cc89a3904fa 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -49,11 +49,9 @@ @JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"), @JsonSubTypes.Type(value = ParentPet.class, name = "ParentPet"), }) - public class GrandparentAnimal { public static final String JSON_PROPERTY_PET_TYPE = "pet_type"; - @javax.annotation.Nonnull - private String petType; + @javax.annotation.Nonnull private String petType; public GrandparentAnimal() { } @@ -67,8 +65,7 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * Get petType * @return petType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PET_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { return petType; @@ -81,7 +78,6 @@ public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; } - /** * Return true if this GrandparentAnimal object is equal to o. */ @@ -222,6 +218,5 @@ public GrandparentAnimal.Builder toBuilder() { return new GrandparentAnimal.Builder() .petType(getPetType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 26ce80f3fc92..a03c62001043 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -63,8 +61,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -77,8 +74,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { return foo; @@ -86,7 +82,6 @@ public String getFoo() { - /** * Return true if this hasOnlyReadOnly object is equal to o. */ @@ -231,6 +226,5 @@ public HasOnlyReadOnly.Builder toBuilder() { .bar(getBar()) .foo(getFoo()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 128a16915fbb..d7c26866b1a6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -56,15 +56,13 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); } @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } @@ -78,7 +76,6 @@ public void setNullableMessage(@javax.annotation.Nullable String nullableMessage this.nullableMessage = JsonNullable.of(nullableMessage); } - /** * Return true if this HealthCheckResult object is equal to o. */ @@ -226,6 +223,5 @@ public HealthCheckResult.Builder toBuilder() { return new HealthCheckResult.Builder() .nullableMessage(getNullableMessage()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 640a0091b9aa..d4945b13934b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class IsoscelesTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } @@ -58,8 +56,7 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +79,7 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +92,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this IsoscelesTriangle object is equal to o. */ @@ -241,6 +236,5 @@ public IsoscelesTriangle.Builder toBuilder() { .shapeType(getShapeType()) .triangleType(getTriangleType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Mammal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Mammal.java index 727d75d58098..dd856b4d7c39 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Mammal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Mammal.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Mammal.MammalDeserializer.class) @JsonSerialize(using = Mammal.MammalSerializer.class) public class Mammal extends AbstractOpenApiSchema { @@ -195,7 +196,6 @@ public Mammal getNullValue(DeserializationContext ctxt) throws JsonMappingExcept public Mammal() { super("oneOf", Boolean.FALSE); } - public Mammal(Pig o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index e8ab4903c9f7..2358973a9015 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,8 +43,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -82,16 +81,13 @@ public static InnerEnum fromValue(String value) { } public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -113,8 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { return mapMapOfString; @@ -145,8 +140,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { return mapOfEnumString; @@ -177,8 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { return directMap; @@ -209,8 +202,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { return indirectMap; @@ -223,7 +215,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir this.indirectMap = indirectMap; } - /** * Return true if this MapTest object is equal to o. */ @@ -408,6 +399,5 @@ public MapTest.Builder toBuilder() { .directMap(getDirectMap()) .indirectMap(getIndirectMap()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 9b8ea43fb256..8cd1a84ab472 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -45,16 +45,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -68,8 +65,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -92,8 +88,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; @@ -124,8 +119,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { return map; @@ -138,7 +132,6 @@ public void setMap(@javax.annotation.Nullable Map map) { this.map = map; } - /** * Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o. */ @@ -300,6 +293,5 @@ public MixedPropertiesAndAdditionalPropertiesClass.Builder toBuilder() { .dateTime(getDateTime()) .map(getMap()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java index a587abd842bb..8e773f717d5b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -58,8 +56,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { return name; @@ -82,8 +79,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; @@ -96,7 +92,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; } - /** * Return true if this 200_response object is equal to o. */ @@ -241,6 +236,5 @@ public Model200Response.Builder toBuilder() { .name(getName()) .propertyClass(getPropertyClass()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f1a305ac8130..619e84141713 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -40,16 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -63,8 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; @@ -87,8 +83,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; @@ -111,8 +106,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; @@ -125,7 +119,6 @@ public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - /** * Return true if this ApiResponse object is equal to o. */ @@ -282,6 +275,5 @@ public ModelApiResponse.Builder toBuilder() { .type(getType()) .message(getMessage()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java index 2cbb873e1bbc..dccbf1c0d161 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -53,8 +52,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { return sourceURI; @@ -67,7 +65,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; } - /** * Return true if this File object is equal to o. */ @@ -200,6 +197,5 @@ public ModelFile.Builder toBuilder() { return new ModelFile.Builder() .sourceURI(getSourceURI()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java index 688bd3a492bd..b16ce6365082 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -53,8 +52,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { return _123list; @@ -67,7 +65,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; } - /** * Return true if this List object is equal to o. */ @@ -200,6 +197,5 @@ public ModelList.Builder toBuilder() { return new ModelList.Builder() ._123list(get123list()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java index 8afe2aa291cb..becb2bb4ef87 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -53,8 +52,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { return _return; @@ -67,7 +65,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; } - /** * Return true if this Return object is equal to o. */ @@ -200,6 +197,5 @@ public ModelReturn.Builder toBuilder() { return new ModelReturn.Builder() ._return(getReturn()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java index 254eb93783dc..9a373d817f73 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java @@ -41,20 +41,16 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -78,8 +74,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { return name; @@ -97,8 +92,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { return snakeCase; @@ -116,8 +110,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { return property; @@ -135,8 +128,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { return _123number; @@ -144,7 +136,6 @@ public Integer get123number() { - /** * Return true if this Name object is equal to o. */ @@ -313,6 +304,5 @@ public Name.Builder toBuilder() { .property(getProperty()) ._123number(get123number()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java index 9cc1aec009d9..5a192800072e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java @@ -88,8 +88,7 @@ public class NullableClass extends HashMap { private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; private JsonNullable> objectNullableProp = JsonNullable.>undefined(); @@ -98,8 +97,7 @@ public class NullableClass extends HashMap { private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } @@ -113,15 +111,13 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); } @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -145,15 +141,13 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); } @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -177,15 +171,13 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); } @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -209,15 +201,13 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); } @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -241,15 +231,13 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -273,15 +261,13 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -317,15 +303,13 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -361,15 +345,13 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -401,8 +383,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { return arrayItemsNullable; @@ -437,15 +418,13 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -481,15 +460,13 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -521,8 +498,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { return objectItemsNullable; @@ -578,7 +554,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this NullableClass object is equal to o. */ @@ -922,6 +897,5 @@ public NullableClass.Builder toBuilder() { .objectAndItemsNullableProp(getObjectAndItemsNullableProp()) .objectItemsNullable(getObjectItemsNullable()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java index 69337631f598..a3e283dbe78a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = NullableShape.NullableShapeDeserializer.class) @JsonSerialize(using = NullableShape.NullableShapeSerializer.class) public class NullableShape extends AbstractOpenApiSchema { @@ -170,7 +171,6 @@ public NullableShape getNullValue(DeserializationContext ctxt) throws JsonMappin public NullableShape() { super("oneOf", Boolean.TRUE); } - public NullableShape(Quadrilateral o) { super("oneOf", Boolean.TRUE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java index 311bddd0737b..18dfb5cc03cb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -39,8 +39,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -54,8 +53,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { return justNumber; @@ -68,7 +66,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; } - /** * Return true if this NumberOnly object is equal to o. */ @@ -201,6 +198,5 @@ public NumberOnly.Builder toBuilder() { return new NumberOnly.Builder() .justNumber(getJustNumber()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 9f22ac33b402..c572f5ff53cf 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -45,20 +45,16 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -72,8 +68,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { return uuid; @@ -98,8 +93,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { return id; @@ -124,8 +118,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { return deprecatedRef; @@ -158,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { return bars; @@ -172,7 +164,6 @@ public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; } - /** * Return true if this ObjectWithDeprecatedFields object is equal to o. */ @@ -345,6 +336,5 @@ public ObjectWithDeprecatedFields.Builder toBuilder() { .deprecatedRef(getDeprecatedRef()) .bars(getBars()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index 3ba6eeb6d87c..1bfad7397ac0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -44,20 +44,16 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -97,12 +93,10 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -116,8 +110,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -140,8 +133,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; @@ -164,8 +156,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; @@ -188,8 +179,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; @@ -212,8 +202,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; @@ -250,7 +238,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; } - /** * Return true if this Order object is equal to o. */ @@ -443,6 +430,5 @@ public Order.Builder toBuilder() { .status(getStatus()) .complete(getComplete()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java index da51395e38f7..6746f173d33a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -41,16 +41,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -64,8 +61,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { return myNumber; @@ -88,8 +84,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { return myString; @@ -112,8 +107,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { return myBoolean; @@ -126,7 +120,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; } - /** * Return true if this OuterComposite object is equal to o. */ @@ -283,6 +276,5 @@ public OuterComposite.Builder toBuilder() { .myString(getMyString()) .myBoolean(getMyBoolean()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java index 93528aa7d7d2..09731f8a413a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ParentPet.java @@ -48,11 +48,9 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildCat.class, name = "ChildCat"), }) - public class ParentPet extends GrandparentAnimal { public ParentPet() { } - @Override public ParentPet petType(@javax.annotation.Nonnull String petType) { this.setPetType(petType); @@ -200,6 +198,5 @@ public ParentPet.Builder toBuilder() { return new ParentPet.Builder() .petType(getPetType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index d5b671856b55..3bb185d81033 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -47,24 +47,19 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -104,8 +99,7 @@ public static StatusEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -167,8 +159,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -199,8 +190,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; @@ -231,8 +221,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -255,8 +244,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -269,7 +257,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; } - /** * Return true if this Pet object is equal to o. */ @@ -471,6 +458,5 @@ public Pet.Builder toBuilder() { .tags(getTags()) .status(getStatus()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pig.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pig.java index 4ee5c3fc43c8..8ef668ef4b38 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pig.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pig.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Pig.PigDeserializer.class) @JsonSerialize(using = Pig.PigSerializer.class) public class Pig extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Pig getNullValue(DeserializationContext ctxt) throws JsonMappingException public Pig() { super("oneOf", Boolean.FALSE); } - public Pig(BasquePig o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Quadrilateral.java index b2a851b351fb..8d1b4bf9f314 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Quadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Quadrilateral.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Quadrilateral.QuadrilateralDeserializer.class) @JsonSerialize(using = Quadrilateral.QuadrilateralSerializer.class) public class Quadrilateral extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Quadrilateral getNullValue(DeserializationContext ctxt) throws JsonMappin public Quadrilateral() { super("oneOf", Boolean.FALSE); } - public Quadrilateral(ComplexQuadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index ca89b2c6f144..bcef774a721a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class QuadrilateralInterface { public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } @@ -53,8 +52,7 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; @@ -67,7 +65,6 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT this.quadrilateralType = quadrilateralType; } - /** * Return true if this QuadrilateralInterface object is equal to o. */ @@ -200,6 +197,5 @@ public QuadrilateralInterface.Builder toBuilder() { return new QuadrilateralInterface.Builder() .quadrilateralType(getQuadrilateralType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index c3c0fff1d5c8..810aa54dcdd0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -61,8 +59,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -80,8 +77,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { return baz; @@ -94,7 +90,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; } - /** * Return true if this ReadOnlyFirst object is equal to o. */ @@ -239,6 +234,5 @@ public ReadOnlyFirst.Builder toBuilder() { .bar(getBar()) .baz(getBaz()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index d72f51aecf74..3d844361375c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ScaleneTriangle { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } @@ -58,8 +56,7 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +79,7 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -96,7 +92,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this ScaleneTriangle object is equal to o. */ @@ -241,6 +236,5 @@ public ScaleneTriangle.Builder toBuilder() { .shapeType(getShapeType()) .triangleType(getTriangleType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java index 6a44b5a721ea..682fc0af0ad0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Shape.ShapeDeserializer.class) @JsonSerialize(using = Shape.ShapeSerializer.class) public class Shape extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public Shape getNullValue(DeserializationContext ctxt) throws JsonMappingExcepti public Shape() { super("oneOf", Boolean.FALSE); } - public Shape(Quadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java index 41fcfc600691..5dd29ac75b47 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ShapeInterface { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } @@ -53,8 +52,7 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -67,7 +65,6 @@ public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; } - /** * Return true if this ShapeInterface object is equal to o. */ @@ -200,6 +197,5 @@ public ShapeInterface.Builder toBuilder() { return new ShapeInterface.Builder() .shapeType(getShapeType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 07f9a1bd3aa5..c8f2c76315d8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -57,6 +57,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = ShapeOrNull.ShapeOrNullDeserializer.class) @JsonSerialize(using = ShapeOrNull.ShapeOrNullSerializer.class) public class ShapeOrNull extends AbstractOpenApiSchema { @@ -168,7 +169,6 @@ public ShapeOrNull getNullValue(DeserializationContext ctxt) throws JsonMappingE public ShapeOrNull() { super("oneOf", Boolean.FALSE); } - public ShapeOrNull(Quadrilateral o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 98b7071d41fc..a3b2f7366830 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class SimpleQuadrilateral { public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType"; - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType"; - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } @@ -58,8 +56,7 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; @@ -82,8 +79,7 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; @@ -96,7 +92,6 @@ public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralT this.quadrilateralType = quadrilateralType; } - /** * Return true if this SimpleQuadrilateral object is equal to o. */ @@ -241,6 +236,5 @@ public SimpleQuadrilateral.Builder toBuilder() { .shapeType(getShapeType()) .quadrilateralType(getQuadrilateralType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java index 12a839c0a153..1ade1cdd6848 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_"; - @javax.annotation.Nullable - private String specialModelName; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } @@ -58,8 +56,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { return $specialPropertyName; @@ -82,8 +79,7 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * Get specialModelName * @return specialModelName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { return specialModelName; @@ -96,7 +92,6 @@ public void setSpecialModelName(@javax.annotation.Nullable String specialModelNa this.specialModelName = specialModelName; } - /** * Return true if this _special_model.name_ object is equal to o. */ @@ -241,6 +236,5 @@ public SpecialModelName.Builder toBuilder() { .$specialPropertyName(get$SpecialPropertyName()) .specialModelName(getSpecialModelName()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java index 5f7135324b9d..05567b02ad60 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -39,12 +39,10 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -58,8 +56,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -82,8 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -96,7 +92,6 @@ public void setName(@javax.annotation.Nullable String name) { this.name = name; } - /** * Return true if this Tag object is equal to o. */ @@ -241,6 +236,5 @@ public Tag.Builder toBuilder() { .id(getId()) .name(getName()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 0fd01ccbd17e..e520fc71af1c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -44,8 +44,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } @@ -59,8 +58,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { return someProperty; @@ -116,7 +114,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this testInlineFreeformAdditionalProperties_request object is equal to o. */ @@ -253,6 +250,5 @@ public TestInlineFreeformAdditionalPropertiesRequest.Builder toBuilder() { return new TestInlineFreeformAdditionalPropertiesRequest.Builder() .someProperty(getSomeProperty()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Triangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Triangle.java index d97ae14675f0..67ef9c631112 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Triangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Triangle.java @@ -58,6 +58,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonDeserialize(using = Triangle.TriangleDeserializer.class) @JsonSerialize(using = Triangle.TriangleSerializer.class) public class Triangle extends AbstractOpenApiSchema { @@ -195,7 +196,6 @@ public Triangle getNullValue(DeserializationContext ctxt) throws JsonMappingExce public Triangle() { super("oneOf", Boolean.FALSE); } - public Triangle(EquilateralTriangle o) { super("oneOf", Boolean.FALSE); setActualInstance(o); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java index b8c67a63ab6f..36f08d8c03e8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -38,8 +38,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TriangleInterface { public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType"; - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } @@ -53,8 +52,7 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; @@ -67,7 +65,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; } - /** * Return true if this TriangleInterface object is equal to o. */ @@ -200,6 +197,5 @@ public TriangleInterface.Builder toBuilder() { return new TriangleInterface.Builder() .triangleType(getTriangleType()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index 12e3f8ce519f..37e87c7c8cde 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -53,40 +53,31 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; - @javax.annotation.Nullable - private Object objectWithNoDeclaredProps; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; private JsonNullable objectWithNoDeclaredPropsNullable = JsonNullable.undefined(); @@ -109,8 +100,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -133,8 +123,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; @@ -157,8 +146,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -181,8 +169,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -205,8 +192,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -229,8 +215,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -253,8 +238,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -277,8 +261,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; @@ -301,8 +284,7 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. * @return objectWithNoDeclaredProps */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; @@ -325,15 +307,13 @@ public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object * test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. * @return objectWithNoDeclaredPropsNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { return objectWithNoDeclaredPropsNullable; } @@ -357,15 +337,13 @@ public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 * @return anyTypeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypeProp_JsonNullable() { return anyTypeProp; } @@ -389,15 +367,13 @@ public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNul * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. * @return anyTypePropNullable */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getAnyTypePropNullable_JsonNullable() { return anyTypePropNullable; } @@ -411,7 +387,6 @@ public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypeProp this.anyTypePropNullable = JsonNullable.of(anyTypePropNullable); } - /** * Return true if this User object is equal to o. */ @@ -699,6 +674,5 @@ public User.Builder toBuilder() { .anyTypeProp(getAnyTypeProp()) .anyTypePropNullable(getAnyTypePropNullable()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java index be60877fab8c..8bd41cd95313 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java @@ -40,16 +40,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Whale { public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen"; - @javax.annotation.Nullable - private Boolean hasBaleen; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth"; - @javax.annotation.Nullable - private Boolean hasTeeth; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Whale() { } @@ -63,8 +60,7 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * Get hasBaleen * @return hasBaleen */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_BALEEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { return hasBaleen; @@ -87,8 +83,7 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * Get hasTeeth * @return hasTeeth */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_TEETH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { return hasTeeth; @@ -111,8 +106,7 @@ public Whale className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -125,7 +119,6 @@ public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; } - /** * Return true if this whale object is equal to o. */ @@ -282,6 +275,5 @@ public Whale.Builder toBuilder() { .hasTeeth(getHasTeeth()) .className(getClassName()); } - } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java index 9e1fbf95636f..ebe6280cee23 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java @@ -82,12 +82,10 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private TypeEnum type; + @javax.annotation.Nullable private TypeEnum type; public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Zebra() { } @@ -101,8 +99,7 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; @@ -125,8 +122,7 @@ public Zebra className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -182,7 +178,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - /** * Return true if this zebra object is equal to o. */ @@ -331,6 +326,5 @@ public Zebra.Builder toBuilder() { .type(getType()) .className(getClassName()); } - } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java index 3fbafc4845b0..7c5f36ba0f2e 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AllOfSimpleModel.java @@ -51,11 +51,11 @@ * AllOfSimpleModel */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfSimpleModel { public static final String SERIALIZED_NAME_ARRAY_OF_STRINGS = "arrayOfStrings"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRINGS) - @javax.annotation.Nonnull - private List arrayOfStrings = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayOfStrings = new ArrayList<>(); public AllOfSimpleModel() { } @@ -77,8 +77,7 @@ public AllOfSimpleModel addArrayOfStringsItem(String arrayOfStringsItem) { * Get arrayOfStrings * @return arrayOfStrings */ - @javax.annotation.Nonnull - public List getArrayOfStrings() { + @javax.annotation.Nonnull public List getArrayOfStrings() { return arrayOfStrings; } @@ -131,7 +130,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java index e57747b134a9..92f2b5ed6a2b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Animal.java @@ -49,16 +49,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); @@ -73,8 +72,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -92,8 +90,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -146,7 +143,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java index 0bc12f3f4f3d..042b1d90e8b7 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/AnyTypeTest.java @@ -52,21 +52,19 @@ * AnyTypeTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AnyTypeTest { public static final String SERIALIZED_NAME_ANY_TYPE_PROPERTY = "any_type_property"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROPERTY) - @javax.annotation.Nullable - private Object anyTypeProperty = null; + @javax.annotation.Nullable private Object anyTypeProperty = null; public static final String SERIALIZED_NAME_ARRAY_PROP = "array_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_PROP) - @javax.annotation.Nullable - private List arrayProp = new ArrayList<>(); + @javax.annotation.Nullable private List arrayProp = new ArrayList<>(); public static final String SERIALIZED_NAME_REF_ARRAY_PREFIX_ITEMS = "ref_array_prefix_items"; @SerializedName(SERIALIZED_NAME_REF_ARRAY_PREFIX_ITEMS) - @javax.annotation.Nullable - private List refArrayPrefixItems = new ArrayList<>(); + @javax.annotation.Nullable private List refArrayPrefixItems = new ArrayList<>(); public AnyTypeTest() { } @@ -80,8 +78,7 @@ public AnyTypeTest anyTypeProperty(@javax.annotation.Nullable Object anyTypeProp * Get anyTypeProperty * @return anyTypeProperty */ - @javax.annotation.Nullable - public Object getAnyTypeProperty() { + @javax.annotation.Nullable public Object getAnyTypeProperty() { return anyTypeProperty; } @@ -107,8 +104,7 @@ public AnyTypeTest addArrayPropItem(String arrayPropItem) { * test array in 3.1 spec * @return arrayProp */ - @javax.annotation.Nullable - public List getArrayProp() { + @javax.annotation.Nullable public List getArrayProp() { return arrayProp; } @@ -134,8 +130,7 @@ public AnyTypeTest addRefArrayPrefixItemsItem(Object refArrayPrefixItemsItem) { * An item that was added to the queue. * @return refArrayPrefixItems */ - @javax.annotation.Nullable - public List getRefArrayPrefixItems() { + @javax.annotation.Nullable public List getRefArrayPrefixItems() { return refArrayPrefixItems; } @@ -188,7 +183,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java index 4ca37475e25b..390155951cae 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ArrayOfSameRef.java @@ -52,21 +52,19 @@ * ArrayOfSameRef */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfSameRef { public static final String SERIALIZED_NAME_ARRAY_FOO_ONE = "arrayFooOne"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_ONE) - @javax.annotation.Nullable - private List arrayFooOne = new ArrayList<>(); + @javax.annotation.Nullable private List arrayFooOne = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_FOO_TWO = "arrayFooTwo"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_TWO) - @javax.annotation.Nullable - private List arrayFooTwo = new ArrayList<>(); + @javax.annotation.Nullable private List arrayFooTwo = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_FOO_THREE = "arrayFooThree"; @SerializedName(SERIALIZED_NAME_ARRAY_FOO_THREE) - @javax.annotation.Nullable - private List arrayFooThree = new ArrayList<>(); + @javax.annotation.Nullable private List arrayFooThree = new ArrayList<>(); public ArrayOfSameRef() { } @@ -88,8 +86,7 @@ public ArrayOfSameRef addArrayFooOneItem(Tag arrayFooOneItem) { * Get arrayFooOne * @return arrayFooOne */ - @javax.annotation.Nullable - public List getArrayFooOne() { + @javax.annotation.Nullable public List getArrayFooOne() { return arrayFooOne; } @@ -115,8 +112,7 @@ public ArrayOfSameRef addArrayFooTwoItem(Tag arrayFooTwoItem) { * Get arrayFooTwo * @return arrayFooTwo */ - @javax.annotation.Nullable - public List getArrayFooTwo() { + @javax.annotation.Nullable public List getArrayFooTwo() { return arrayFooTwo; } @@ -142,8 +138,7 @@ public ArrayOfSameRef addArrayFooThreeItem(Tag arrayFooThreeItem) { * Get arrayFooThree * @return arrayFooThree */ - @javax.annotation.Nullable - public List getArrayFooThree() { + @javax.annotation.Nullable public List getArrayFooThree() { return arrayFooThree; } @@ -196,7 +191,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java index e22c005616d8..10692bc37826 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Cat.java @@ -50,11 +50,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { this.className = this.getClass().getSimpleName(); @@ -69,8 +69,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - public Boolean getDeclawed() { + @javax.annotation.Nullable public Boolean getDeclawed() { return declawed; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java index ff68b1fbcefb..483a990339e4 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * A category for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java index 3b20cafa61e3..1b1b6ba30490 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference1.java @@ -50,11 +50,11 @@ * CircularReference1 */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class CircularReference1 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) - @javax.annotation.Nullable - private CircularReference2 prop1; + @javax.annotation.Nullable private CircularReference2 prop1; public CircularReference1() { } @@ -68,8 +68,7 @@ public CircularReference1 prop1(@javax.annotation.Nullable CircularReference2 pr * Get prop1 * @return prop1 */ - @javax.annotation.Nullable - public CircularReference2 getProp1() { + @javax.annotation.Nullable public CircularReference2 getProp1() { return prop1; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java index 7b9c6cbe399e..979f0dcbb956 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference2.java @@ -50,11 +50,11 @@ * CircularReference2 */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class CircularReference2 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) - @javax.annotation.Nullable - private CircularReference3 prop1; + @javax.annotation.Nullable private CircularReference3 prop1; public CircularReference2() { } @@ -68,8 +68,7 @@ public CircularReference2 prop1(@javax.annotation.Nullable CircularReference3 pr * Get prop1 * @return prop1 */ - @javax.annotation.Nullable - public CircularReference3 getProp1() { + @javax.annotation.Nullable public CircularReference3 getProp1() { return prop1; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java index 9b15f332c696..e8f5cf91d5f6 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/CircularReference3.java @@ -50,11 +50,11 @@ * CircularReference3 */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class CircularReference3 { public static final String SERIALIZED_NAME_PROP1 = "prop1"; @SerializedName(SERIALIZED_NAME_PROP1) - @javax.annotation.Nullable - private CircularReference1 prop1; + @javax.annotation.Nullable private CircularReference1 prop1; public CircularReference3() { } @@ -68,8 +68,7 @@ public CircularReference3 prop1(@javax.annotation.Nullable CircularReference1 pr * Get prop1 * @return prop1 */ - @javax.annotation.Nullable - public CircularReference1 getProp1() { + @javax.annotation.Nullable public CircularReference1 getProp1() { return prop1; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java index 84cb4643a435..7c8653e151af 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Dog.java @@ -50,11 +50,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { this.className = this.getClass().getSimpleName(); @@ -69,8 +69,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - public String getBreed() { + @javax.annotation.Nullable public String getBreed() { return breed; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0c222131c8a5..9fd51733d9fd 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * Describes the result of uploading an image resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/OneOfStringOrInt.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/OneOfStringOrInt.java index 34220f42b41b..82e9b87b7989 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/OneOfStringOrInt.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/OneOfStringOrInt.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OneOfStringOrInt extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(OneOfStringOrInt.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java index 9eabd17d9b2b..9cb85424846b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * An order for a pets from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -296,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java index 400e711ef3ea..c39c38ca8204 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -151,8 +145,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -320,7 +308,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefRefToPathLevelParameterOneofRefToOneofParameter.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefRefToPathLevelParameterOneofRefToOneofParameter.java index 98b21427116f..3d553c598a99 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefRefToPathLevelParameterOneofRefToOneofParameter.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefRefToPathLevelParameterOneofRefToOneofParameter.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class RefRefToPathLevelParameterOneofRefToOneofParameter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RefRefToPathLevelParameterOneofRefToOneofParameter.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefToRefParameterAnyofRefToAnyofParameter.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefToRefParameterAnyofRefToAnyofParameter.java index fea50b173125..ca8acd547692 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefToRefParameterAnyofRefToAnyofParameter.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/RefToRefParameterAnyofRefToAnyofParameter.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class RefToRefParameterAnyofRefToAnyofParameter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(RefToRefParameterAnyofRefToAnyofParameter.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java index bc902fbaee09..e903931e00a1 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAdditionalProperties.java @@ -49,11 +49,11 @@ * SelfReferenceAdditionalProperties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SelfReferenceAdditionalProperties { public static final String SERIALIZED_NAME_DUMMY = "dummy"; @SerializedName(SERIALIZED_NAME_DUMMY) - @javax.annotation.Nullable - private String dummy; + @javax.annotation.Nullable private String dummy; public SelfReferenceAdditionalProperties() { } @@ -67,8 +67,7 @@ public SelfReferenceAdditionalProperties dummy(@javax.annotation.Nullable String * Get dummy * @return dummy */ - @javax.annotation.Nullable - public String getDummy() { + @javax.annotation.Nullable public String getDummy() { return dummy; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAnyOf.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAnyOf.java index 30179c22231c..1a56a1cb181a 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceAnyOf.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SelfReferenceAnyOf extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(SelfReferenceAnyOf.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceOneOf.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceOneOf.java index c0780e851e91..0c17f235e680 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceOneOf.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SelfReferenceOneOf.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SelfReferenceOneOf extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(SelfReferenceOneOf.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java index f5a7e23aabbf..87a74f9c013b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/SimpleModelWithArrayProperty.java @@ -51,11 +51,11 @@ * SimpleModelWithArrayProperty */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SimpleModelWithArrayProperty { public static final String SERIALIZED_NAME_ARRAY_OF_STRINGS = "arrayOfStrings"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRINGS) - @javax.annotation.Nonnull - private List arrayOfStrings = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayOfStrings = new ArrayList<>(); public SimpleModelWithArrayProperty() { } @@ -77,8 +77,7 @@ public SimpleModelWithArrayProperty addArrayOfStringsItem(String arrayOfStringsI * Get arrayOfStrings * @return arrayOfStrings */ - @javax.annotation.Nonnull - public List getArrayOfStrings() { + @javax.annotation.Nonnull public List getArrayOfStrings() { return arrayOfStrings; } @@ -131,7 +130,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/StringOrInt.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/StringOrInt.java index 02647aa1e57a..cd7631f1b8cd 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/StringOrInt.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/StringOrInt.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class StringOrInt extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(StringOrInt.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java index 0c1ca3175d36..3ee39c5cc8c5 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * A tag for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java index 2fabf55abeea..ab87cb28001b 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-3.1/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * A User who is purchasing from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -289,7 +274,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java index ff68b1fbcefb..483a990339e4 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * A category for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0c222131c8a5..9fd51733d9fd 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * Describes the result of uploading an image resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java index 9eabd17d9b2b..9cb85424846b 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * An order for a pets from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -296,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java index 400e711ef3ea..c39c38ca8204 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -151,8 +145,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -320,7 +308,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java index 0c1ca3175d36..3ee39c5cc8c5 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * A tag for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java index 2fabf55abeea..ab87cb28001b 100644 --- a/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-awsv4signature/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * A User who is purchasing from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -289,7 +274,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index cd079bdc58bf..d31a784d93fc 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 27ad8af285a5..0ad308807daf 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -49,11 +49,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } @@ -67,8 +67,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 9a73473e3401..bb0ebb0ddf45 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -50,11 +50,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } @@ -68,8 +68,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index bc383b18d630..79374be3e35b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -49,11 +49,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } @@ -67,8 +67,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index d5fe2706272b..8b25a2ebf87d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -53,61 +53,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -129,8 +119,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - public Map getMapString() { + @javax.annotation.Nullable public Map getMapString() { return mapString; } @@ -156,8 +145,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - public Map getMapNumber() { + @javax.annotation.Nullable public Map getMapNumber() { return mapNumber; } @@ -183,8 +171,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - public Map getMapInteger() { + @javax.annotation.Nullable public Map getMapInteger() { return mapInteger; } @@ -210,8 +197,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - public Map getMapBoolean() { + @javax.annotation.Nullable public Map getMapBoolean() { return mapBoolean; } @@ -237,8 +223,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { + @javax.annotation.Nullable public Map> getMapArrayInteger() { return mapArrayInteger; } @@ -264,8 +249,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - public Map> getMapArrayAnytype() { + @javax.annotation.Nullable public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -291,8 +275,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { + @javax.annotation.Nullable public Map> getMapMapString() { return mapMapString; } @@ -318,8 +301,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { + @javax.annotation.Nullable public Map> getMapMapAnytype() { return mapMapAnytype; } @@ -337,8 +319,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - public Object getAnytype1() { + @javax.annotation.Nullable public Object getAnytype1() { return anytype1; } @@ -356,8 +337,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * Get anytype2 * @return anytype2 */ - @javax.annotation.Nullable - public Object getAnytype2() { + @javax.annotation.Nullable public Object getAnytype2() { return anytype2; } @@ -375,8 +355,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * Get anytype3 * @return anytype3 */ - @javax.annotation.Nullable - public Object getAnytype3() { + @javax.annotation.Nullable public Object getAnytype3() { return anytype3; } @@ -385,7 +364,6 @@ public void setAnytype3(@javax.annotation.Nullable Object anytype3) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index bef43e8cfaa6..90f73342683c 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -49,11 +49,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } @@ -67,8 +67,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index e8288d98ffaa..b8ef868c357e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -50,11 +50,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } @@ -68,8 +68,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 026dc8e87de5..7db28f0f9bff 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -50,11 +50,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } @@ -68,8 +68,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 159fc499da71..7a342fc4e670 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -49,11 +49,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } @@ -67,8 +67,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java index 3b0341a3f115..09a0a9d3f09e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Animal.java @@ -49,16 +49,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); @@ -73,8 +72,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -92,8 +90,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -102,7 +99,6 @@ public void setColor(@javax.annotation.Nullable String color) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 34b465cfb18c..26797475c499 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -52,11 +52,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -78,8 +78,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - public List> getArrayArrayNumber() { + @javax.annotation.Nullable public List> getArrayArrayNumber() { return arrayArrayNumber; } @@ -88,7 +87,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 3723d0301c6c..0873f764a38b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -52,11 +52,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -78,8 +78,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - public List getArrayNumber() { + @javax.annotation.Nullable public List getArrayNumber() { return arrayNumber; } @@ -88,7 +87,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java index 59e4181c2f19..3e8374dd35da 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -52,21 +52,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -88,8 +86,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - public List getArrayOfString() { + @javax.annotation.Nullable public List getArrayOfString() { return arrayOfString; } @@ -115,8 +112,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { + @javax.annotation.Nullable public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -142,8 +138,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - public List> getArrayArrayOfModel() { + @javax.annotation.Nullable public List> getArrayArrayOfModel() { return arrayArrayOfModel; } @@ -152,7 +147,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -178,8 +175,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { + @javax.annotation.Nullable public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -205,8 +201,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - public List getArrayEnum() { + @javax.annotation.Nullable public List getArrayEnum() { return arrayEnum; } @@ -215,7 +210,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java index fab5e63c24b5..a472bb1c8286 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/EnumTest.java @@ -50,6 +50,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -104,11 +105,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -163,11 +162,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringRequiredEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -220,11 +217,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumIntegerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -277,16 +272,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumNumberEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -300,8 +292,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - public EnumStringEnum getEnumString() { + @javax.annotation.Nullable public EnumStringEnum getEnumString() { return enumString; } @@ -319,8 +310,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { + @javax.annotation.Nonnull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -338,8 +328,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { + @javax.annotation.Nullable public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -357,8 +346,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { + @javax.annotation.Nullable public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -376,8 +364,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - public OuterEnum getOuterEnum() { + @javax.annotation.Nullable public OuterEnum getOuterEnum() { return outerEnum; } @@ -386,7 +373,6 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 88ded19bbd61..f394c0f2345f 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -52,16 +52,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -75,8 +74,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - public ModelFile getFile() { + @javax.annotation.Nullable public ModelFile getFile() { return _file; } @@ -102,8 +100,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - public List getFiles() { + @javax.annotation.Nullable public List getFiles() { return files; } @@ -112,7 +109,6 @@ public void setFiles(@javax.annotation.Nullable List files) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java index 0ec5e78ab4d8..f47300b0e29e 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,76 +54,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -139,8 +126,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - public Integer getInteger() { + @javax.annotation.Nullable public Integer getInteger() { return integer; } @@ -160,8 +146,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - public Integer getInt32() { + @javax.annotation.Nullable public Integer getInt32() { return int32; } @@ -179,8 +164,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - public Long getInt64() { + @javax.annotation.Nullable public Long getInt64() { return int64; } @@ -200,8 +184,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - public BigDecimal getNumber() { + @javax.annotation.Nonnull public BigDecimal getNumber() { return number; } @@ -221,8 +204,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - public Float getFloat() { + @javax.annotation.Nullable public Float getFloat() { return _float; } @@ -242,8 +224,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - public Double getDouble() { + @javax.annotation.Nullable public Double getDouble() { return _double; } @@ -261,8 +242,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - public String getString() { + @javax.annotation.Nullable public String getString() { return string; } @@ -280,8 +260,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - public byte[] getByte() { + @javax.annotation.Nonnull public byte[] getByte() { return _byte; } @@ -299,8 +278,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - public File getBinary() { + @javax.annotation.Nullable public File getBinary() { return binary; } @@ -318,8 +296,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - public LocalDate getDate() { + @javax.annotation.Nonnull public LocalDate getDate() { return date; } @@ -337,8 +314,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -356,8 +332,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -375,8 +350,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - public String getPassword() { + @javax.annotation.Nonnull public String getPassword() { return password; } @@ -394,8 +368,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - public BigDecimal getBigDecimal() { + @javax.annotation.Nullable public BigDecimal getBigDecimal() { return bigDecimal; } @@ -404,7 +377,6 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 63408815ceb9..9057ee161122 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -49,16 +49,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -76,8 +75,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -87,14 +85,12 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - public String getFoo() { + @javax.annotation.Nullable public String getFoo() { return foo; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java index 139380bbbeff..dbd2d09306c3 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MapTest.java @@ -51,11 +51,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -108,21 +108,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti InnerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -144,8 +140,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - public Map> getMapMapOfString() { + @javax.annotation.Nullable public Map> getMapMapOfString() { return mapMapOfString; } @@ -171,8 +166,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - public Map getMapOfEnumString() { + @javax.annotation.Nullable public Map getMapOfEnumString() { return mapOfEnumString; } @@ -198,8 +192,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - public Map getDirectMap() { + @javax.annotation.Nullable public Map getDirectMap() { return directMap; } @@ -225,8 +218,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - public Map getIndirectMap() { + @javax.annotation.Nullable public Map getIndirectMap() { return indirectMap; } @@ -235,7 +227,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 2a412a2c95ad..eb3aac89e4d3 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -54,21 +54,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -82,8 +80,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -101,8 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -128,8 +124,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - public Map getMap() { + @javax.annotation.Nullable public Map getMap() { return map; } @@ -138,7 +133,6 @@ public void setMap(@javax.annotation.Nullable Map map) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java index d109b3b71702..3add163006b8 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Model200Response.java @@ -49,16 +49,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -72,8 +71,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - public Integer getName() { + @javax.annotation.Nullable public Integer getName() { return name; } @@ -91,8 +89,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - public String getPropertyClass() { + @javax.annotation.Nullable public String getPropertyClass() { return propertyClass; } @@ -101,7 +98,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java index fd7c4cf6fd25..7e305fb60618 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -125,7 +120,6 @@ public void setMessage(@javax.annotation.Nullable String message) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java index e0715164d2d9..e0cf61e4784b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelFile.java @@ -49,11 +49,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -67,8 +67,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - public String getSourceURI() { + @javax.annotation.Nullable public String getSourceURI() { return sourceURI; } @@ -77,7 +76,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java index 01236521328e..4d7f818df13a 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelList.java @@ -49,11 +49,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -67,8 +67,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - public String get123list() { + @javax.annotation.Nullable public String get123list() { return _123list; } @@ -77,7 +76,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java index 13ed2f4071c1..d6c34064a414 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -49,11 +49,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -67,8 +67,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - public Integer getReturn() { + @javax.annotation.Nullable public Integer getReturn() { return _return; } @@ -77,7 +76,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java index 7981af040615..c9e7737a336a 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Name.java @@ -49,26 +49,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -91,8 +88,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - public Integer getName() { + @javax.annotation.Nonnull public Integer getName() { return name; } @@ -105,8 +101,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - public Integer getSnakeCase() { + @javax.annotation.Nullable public Integer getSnakeCase() { return snakeCase; } @@ -121,8 +116,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - public String getProperty() { + @javax.annotation.Nullable public String getProperty() { return property; } @@ -135,14 +129,12 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - public Integer get123number() { + @javax.annotation.Nullable public Integer get123number() { return _123number; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java index b799d1c625fb..72bd9d91447b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,11 +50,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -68,8 +68,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - public BigDecimal getJustNumber() { + @javax.annotation.Nullable public BigDecimal getJustNumber() { return justNumber; } @@ -78,7 +77,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java index 8968dbb20c28..1c1fb267686b 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -252,7 +240,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java index ab9772c530da..c0beb1e4e48d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -50,21 +50,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -78,8 +76,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - public BigDecimal getMyNumber() { + @javax.annotation.Nullable public BigDecimal getMyNumber() { return myNumber; } @@ -97,8 +94,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - public String getMyString() { + @javax.annotation.Nullable public String getMyString() { return myString; } @@ -116,8 +112,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - public Boolean getMyBoolean() { + @javax.annotation.Nullable public Boolean getMyBoolean() { return myBoolean; } @@ -126,7 +121,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java index e7436e0eae4b..692f90c847f6 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Pet.java @@ -55,31 +55,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -134,11 +130,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -152,8 +146,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -171,8 +164,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -190,8 +182,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -217,8 +208,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public Set getPhotoUrls() { + @javax.annotation.Nonnull public Set getPhotoUrls() { return photoUrls; } @@ -244,8 +234,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -263,8 +252,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -273,7 +261,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 3b772446b368..2c47fed02364 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -49,16 +49,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -74,8 +73,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -90,8 +88,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - public String getBaz() { + @javax.annotation.Nullable public String getBaz() { return baz; } @@ -100,7 +97,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java index faadfa7ebe3d..a24536422506 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -49,11 +49,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -67,8 +67,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - public Long get$SpecialPropertyName() { + @javax.annotation.Nullable public Long get$SpecialPropertyName() { return $specialPropertyName; } @@ -77,7 +76,6 @@ public SpecialModelName() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java index 7d3729f6339d..af0a31f5b3a1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -101,7 +98,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 7f07d19161af..20f5915d84ad 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -52,31 +52,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -90,8 +86,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - public String getStringItem() { + @javax.annotation.Nonnull public String getStringItem() { return stringItem; } @@ -109,8 +104,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - public BigDecimal getNumberItem() { + @javax.annotation.Nonnull public BigDecimal getNumberItem() { return numberItem; } @@ -128,8 +122,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - public Integer getIntegerItem() { + @javax.annotation.Nonnull public Integer getIntegerItem() { return integerItem; } @@ -147,8 +140,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - public Boolean getBoolItem() { + @javax.annotation.Nonnull public Boolean getBoolItem() { return boolItem; } @@ -174,8 +166,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - public List getArrayItem() { + @javax.annotation.Nonnull public List getArrayItem() { return arrayItem; } @@ -184,7 +175,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 8dd6ee46fe11..30a75807dba0 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -52,36 +52,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -95,8 +90,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - public String getStringItem() { + @javax.annotation.Nonnull public String getStringItem() { return stringItem; } @@ -114,8 +108,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - public BigDecimal getNumberItem() { + @javax.annotation.Nonnull public BigDecimal getNumberItem() { return numberItem; } @@ -133,8 +126,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - public Float getFloatItem() { + @javax.annotation.Nonnull public Float getFloatItem() { return floatItem; } @@ -152,8 +144,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - public Integer getIntegerItem() { + @javax.annotation.Nonnull public Integer getIntegerItem() { return integerItem; } @@ -171,8 +162,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - public Boolean getBoolItem() { + @javax.annotation.Nonnull public Boolean getBoolItem() { return boolItem; } @@ -198,8 +188,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - public List getArrayItem() { + @javax.annotation.Nonnull public List getArrayItem() { return arrayItem; } @@ -208,7 +197,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java index 74089db5703d..09b08f31e772 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -245,7 +230,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java index c88e684b699f..ce5aef9151a1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/model/XmlItem.java @@ -52,151 +52,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -210,8 +182,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - public String getAttributeString() { + @javax.annotation.Nullable public String getAttributeString() { return attributeString; } @@ -229,8 +200,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - public BigDecimal getAttributeNumber() { + @javax.annotation.Nullable public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -248,8 +218,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - public Integer getAttributeInteger() { + @javax.annotation.Nullable public Integer getAttributeInteger() { return attributeInteger; } @@ -267,8 +236,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - public Boolean getAttributeBoolean() { + @javax.annotation.Nullable public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -294,8 +262,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - public List getWrappedArray() { + @javax.annotation.Nullable public List getWrappedArray() { return wrappedArray; } @@ -313,8 +280,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - public String getNameString() { + @javax.annotation.Nullable public String getNameString() { return nameString; } @@ -332,8 +298,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - public BigDecimal getNameNumber() { + @javax.annotation.Nullable public BigDecimal getNameNumber() { return nameNumber; } @@ -351,8 +316,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - public Integer getNameInteger() { + @javax.annotation.Nullable public Integer getNameInteger() { return nameInteger; } @@ -370,8 +334,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - public Boolean getNameBoolean() { + @javax.annotation.Nullable public Boolean getNameBoolean() { return nameBoolean; } @@ -397,8 +360,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - public List getNameArray() { + @javax.annotation.Nullable public List getNameArray() { return nameArray; } @@ -424,8 +386,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - public List getNameWrappedArray() { + @javax.annotation.Nullable public List getNameWrappedArray() { return nameWrappedArray; } @@ -443,8 +404,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - public String getPrefixString() { + @javax.annotation.Nullable public String getPrefixString() { return prefixString; } @@ -462,8 +422,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - public BigDecimal getPrefixNumber() { + @javax.annotation.Nullable public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -481,8 +440,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - public Integer getPrefixInteger() { + @javax.annotation.Nullable public Integer getPrefixInteger() { return prefixInteger; } @@ -500,8 +458,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - public Boolean getPrefixBoolean() { + @javax.annotation.Nullable public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -527,8 +484,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - public List getPrefixArray() { + @javax.annotation.Nullable public List getPrefixArray() { return prefixArray; } @@ -554,8 +510,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - public List getPrefixWrappedArray() { + @javax.annotation.Nullable public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -573,8 +528,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - public String getNamespaceString() { + @javax.annotation.Nullable public String getNamespaceString() { return namespaceString; } @@ -592,8 +546,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - public BigDecimal getNamespaceNumber() { + @javax.annotation.Nullable public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -611,8 +564,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - public Integer getNamespaceInteger() { + @javax.annotation.Nullable public Integer getNamespaceInteger() { return namespaceInteger; } @@ -630,8 +582,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - public Boolean getNamespaceBoolean() { + @javax.annotation.Nullable public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -657,8 +608,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - public List getNamespaceArray() { + @javax.annotation.Nullable public List getNamespaceArray() { return namespaceArray; } @@ -684,8 +634,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - public List getNamespaceWrappedArray() { + @javax.annotation.Nullable public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -703,8 +652,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - public String getPrefixNsString() { + @javax.annotation.Nullable public String getPrefixNsString() { return prefixNsString; } @@ -722,8 +670,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - public BigDecimal getPrefixNsNumber() { + @javax.annotation.Nullable public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -741,8 +688,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - public Integer getPrefixNsInteger() { + @javax.annotation.Nullable public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -760,8 +706,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - public Boolean getPrefixNsBoolean() { + @javax.annotation.Nullable public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -787,8 +732,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - public List getPrefixNsArray() { + @javax.annotation.Nullable public List getPrefixNsArray() { return prefixNsArray; } @@ -814,8 +758,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - public List getPrefixNsWrappedArray() { + @javax.annotation.Nullable public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } @@ -824,7 +767,6 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java index ff68b1fbcefb..483a990339e4 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * A category for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0c222131c8a5..9fd51733d9fd 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * Describes the result of uploading an image resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java index 9eabd17d9b2b..9cb85424846b 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * An order for a pets from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -296,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java index 400e711ef3ea..c39c38ca8204 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -151,8 +145,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -320,7 +308,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java index 0c1ca3175d36..3ee39c5cc8c5 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * A tag for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java index 2fabf55abeea..ab87cb28001b 100644 --- a/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-group-parameter/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * A User who is purchasing from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -289,7 +274,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java index ff68b1fbcefb..483a990339e4 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * A category for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0c222131c8a5..9fd51733d9fd 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * Describes the result of uploading an image resource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java index 9eabd17d9b2b..9cb85424846b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * An order for a pets from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -296,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java index 400e711ef3ea..c39c38ca8204 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -151,8 +145,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -320,7 +308,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java index c611fb32556f..16504ef78db6 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases1.java @@ -54,31 +54,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetWithRequiredNullableCases1 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nullable - private List photoUrls; + @javax.annotation.Nullable private List photoUrls; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags; + @javax.annotation.Nullable private List tags; /** * pet status in the store @@ -133,12 +129,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredNullableCases1() { } @@ -152,8 +146,7 @@ public PetWithRequiredNullableCases1 id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -171,8 +164,7 @@ public PetWithRequiredNullableCases1 category(@javax.annotation.Nullable Categor * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -190,8 +182,7 @@ public PetWithRequiredNullableCases1 name(@javax.annotation.Nullable String name * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -217,8 +208,7 @@ public PetWithRequiredNullableCases1 addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nullable - public List getPhotoUrls() { + @javax.annotation.Nullable public List getPhotoUrls() { return photoUrls; } @@ -244,8 +234,7 @@ public PetWithRequiredNullableCases1 addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -266,8 +255,7 @@ public PetWithRequiredNullableCases1 status(@javax.annotation.Nullable StatusEnu * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -321,7 +309,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java index e515cf4566b3..91e64c7dfdd5 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/PetWithRequiredNullableCases2.java @@ -53,31 +53,27 @@ * A pet for sale in the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetWithRequiredNullableCases2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,12 +128,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredNullableCases2() { } @@ -151,8 +145,7 @@ public PetWithRequiredNullableCases2 id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -170,8 +163,7 @@ public PetWithRequiredNullableCases2 category(@javax.annotation.Nullable Categor * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -189,8 +181,7 @@ public PetWithRequiredNullableCases2 name(@javax.annotation.Nonnull String name) * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -216,8 +207,7 @@ public PetWithRequiredNullableCases2 addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -243,8 +233,7 @@ public PetWithRequiredNullableCases2 addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public PetWithRequiredNullableCases2 status(@javax.annotation.Nullable StatusEnu * @deprecated */ @Deprecated - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -320,7 +308,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java index 0c1ca3175d36..3ee39c5cc8c5 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * A tag for a pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java index 2fabf55abeea..ab87cb28001b 100644 --- a/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-nullable-required/src/main/java/org/openapitools/client/model/User.java @@ -49,46 +49,39 @@ * A User who is purchasing from the pet store */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -102,8 +95,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -121,8 +113,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -140,8 +131,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -159,8 +149,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -178,8 +167,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -197,8 +185,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -216,8 +203,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -235,8 +221,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -289,7 +274,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index cd079bdc58bf..d31a784d93fc 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 977aa947b630..511a7e7698ae 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -51,11 +51,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { } @@ -69,8 +69,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index ccd77caea553..285c1957bcc9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -52,11 +52,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { } @@ -70,8 +70,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -124,7 +123,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 59ce65a39bfb..1ed8749ac1d5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -51,11 +51,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { } @@ -69,8 +69,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a5ee45e1d1d4..787022910864 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -55,61 +55,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass implements Parcelable { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -131,8 +121,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - public Map getMapString() { + @javax.annotation.Nullable public Map getMapString() { return mapString; } @@ -158,8 +147,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - public Map getMapNumber() { + @javax.annotation.Nullable public Map getMapNumber() { return mapNumber; } @@ -185,8 +173,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - public Map getMapInteger() { + @javax.annotation.Nullable public Map getMapInteger() { return mapInteger; } @@ -212,8 +199,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - public Map getMapBoolean() { + @javax.annotation.Nullable public Map getMapBoolean() { return mapBoolean; } @@ -239,8 +225,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { + @javax.annotation.Nullable public Map> getMapArrayInteger() { return mapArrayInteger; } @@ -266,8 +251,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - public Map> getMapArrayAnytype() { + @javax.annotation.Nullable public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -293,8 +277,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { + @javax.annotation.Nullable public Map> getMapMapString() { return mapMapString; } @@ -320,8 +303,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { + @javax.annotation.Nullable public Map> getMapMapAnytype() { return mapMapAnytype; } @@ -339,8 +321,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - public Object getAnytype1() { + @javax.annotation.Nullable public Object getAnytype1() { return anytype1; } @@ -358,8 +339,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * Get anytype2 * @return anytype2 */ - @javax.annotation.Nullable - public Object getAnytype2() { + @javax.annotation.Nullable public Object getAnytype2() { return anytype2; } @@ -377,8 +357,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * Get anytype3 * @return anytype3 */ - @javax.annotation.Nullable - public Object getAnytype3() { + @javax.annotation.Nullable public Object getAnytype3() { return anytype3; } @@ -387,7 +366,6 @@ public void setAnytype3(@javax.annotation.Nullable Object anytype3) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index e92e09ffb6da..ac7a6f251acc 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -51,11 +51,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { } @@ -69,8 +69,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 434ca7b5842d..5cefc750e7fd 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -52,11 +52,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { } @@ -70,8 +70,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -124,7 +123,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 1e0bcf777ad1..ab9a1d63b253 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -52,11 +52,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { } @@ -70,8 +70,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -124,7 +123,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 57a772a2a820..c1c0d1f9c360 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -51,11 +51,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { } @@ -69,8 +69,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java index 55815dbec810..031c6570e74a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java @@ -51,16 +51,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal implements Parcelable { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); @@ -75,8 +74,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -94,8 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -104,7 +101,6 @@ public void setColor(@javax.annotation.Nullable String color) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 7024a80f4515..28a3afd1d95e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -54,11 +54,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -80,8 +80,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - public List> getArrayArrayNumber() { + @javax.annotation.Nullable public List> getArrayArrayNumber() { return arrayArrayNumber; } @@ -90,7 +89,6 @@ public void setArrayArrayNumber(@javax.annotation.Nullable List } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 7cb5e36e0685..7981c6e44658 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -54,11 +54,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -80,8 +80,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - public List getArrayNumber() { + @javax.annotation.Nullable public List getArrayNumber() { return arrayNumber; } @@ -90,7 +89,6 @@ public void setArrayNumber(@javax.annotation.Nullable List arrayNumb } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java index 138b680a05b8..9bb180cdd602 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -54,21 +54,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest implements Parcelable { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -90,8 +88,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - public List getArrayOfString() { + @javax.annotation.Nullable public List getArrayOfString() { return arrayOfString; } @@ -117,8 +114,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { + @javax.annotation.Nullable public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -144,8 +140,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - public List> getArrayArrayOfModel() { + @javax.annotation.Nullable public List> getArrayArrayOfModel() { return arrayArrayOfModel; } @@ -154,7 +149,6 @@ public void setArrayArrayOfModel(@javax.annotation.Nullable List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -180,8 +177,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { + @javax.annotation.Nullable public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -207,8 +203,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - public List getArrayEnum() { + @javax.annotation.Nullable public List getArrayEnum() { return arrayEnum; } @@ -217,7 +212,6 @@ public void setArrayEnum(@javax.annotation.Nullable List arrayEnu } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java index 8e5f26782adb..a0ee36ae0ccc 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java @@ -52,6 +52,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest implements Parcelable { /** * Gets or Sets enumString @@ -106,11 +107,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -165,11 +164,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringRequiredEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -222,11 +219,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumIntegerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -279,16 +274,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumNumberEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -302,8 +294,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - public EnumStringEnum getEnumString() { + @javax.annotation.Nullable public EnumStringEnum getEnumString() { return enumString; } @@ -321,8 +312,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { + @javax.annotation.Nonnull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -340,8 +330,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { + @javax.annotation.Nullable public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -359,8 +348,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { + @javax.annotation.Nullable public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -378,8 +366,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - public OuterEnum getOuterEnum() { + @javax.annotation.Nullable public OuterEnum getOuterEnum() { return outerEnum; } @@ -388,7 +375,6 @@ public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 18eac6176f5c..afef764191f9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -54,16 +54,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass implements Parcelable { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -77,8 +76,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - public ModelFile getFile() { + @javax.annotation.Nullable public ModelFile getFile() { return _file; } @@ -104,8 +102,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - public List getFiles() { + @javax.annotation.Nullable public List getFiles() { return files; } @@ -114,7 +111,6 @@ public void setFiles(@javax.annotation.Nullable List files) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java index 337bf9dbdc3a..c5112e28d53f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java @@ -56,76 +56,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest implements Parcelable { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -141,8 +128,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - public Integer getInteger() { + @javax.annotation.Nullable public Integer getInteger() { return integer; } @@ -162,8 +148,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - public Integer getInt32() { + @javax.annotation.Nullable public Integer getInt32() { return int32; } @@ -181,8 +166,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - public Long getInt64() { + @javax.annotation.Nullable public Long getInt64() { return int64; } @@ -202,8 +186,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - public BigDecimal getNumber() { + @javax.annotation.Nonnull public BigDecimal getNumber() { return number; } @@ -223,8 +206,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - public Float getFloat() { + @javax.annotation.Nullable public Float getFloat() { return _float; } @@ -244,8 +226,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - public Double getDouble() { + @javax.annotation.Nullable public Double getDouble() { return _double; } @@ -263,8 +244,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - public String getString() { + @javax.annotation.Nullable public String getString() { return string; } @@ -282,8 +262,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - public byte[] getByte() { + @javax.annotation.Nonnull public byte[] getByte() { return _byte; } @@ -301,8 +280,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - public File getBinary() { + @javax.annotation.Nullable public File getBinary() { return binary; } @@ -320,8 +298,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - public LocalDate getDate() { + @javax.annotation.Nonnull public LocalDate getDate() { return date; } @@ -339,8 +316,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -358,8 +334,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -377,8 +352,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - public String getPassword() { + @javax.annotation.Nonnull public String getPassword() { return password; } @@ -396,8 +370,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - public BigDecimal getBigDecimal() { + @javax.annotation.Nullable public BigDecimal getBigDecimal() { return bigDecimal; } @@ -406,7 +379,6 @@ public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 456ccab2ab44..49ee4c25e7ba 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -51,16 +51,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly implements Parcelable { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -78,8 +77,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -89,14 +87,12 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - public String getFoo() { + @javax.annotation.Nullable public String getFoo() { return foo; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java index 38ad4ebb3e5b..fc19f20fc565 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java @@ -53,11 +53,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest implements Parcelable { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -110,21 +110,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti InnerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -146,8 +142,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - public Map> getMapMapOfString() { + @javax.annotation.Nullable public Map> getMapMapOfString() { return mapMapOfString; } @@ -173,8 +168,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - public Map getMapOfEnumString() { + @javax.annotation.Nullable public Map getMapOfEnumString() { return mapOfEnumString; } @@ -200,8 +194,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - public Map getDirectMap() { + @javax.annotation.Nullable public Map getDirectMap() { return directMap; } @@ -227,8 +220,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - public Map getIndirectMap() { + @javax.annotation.Nullable public Map getIndirectMap() { return indirectMap; } @@ -237,7 +229,6 @@ public void setIndirectMap(@javax.annotation.Nullable Map indir } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 8473c16eb9ab..1c252b7b8c57 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -56,21 +56,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -84,8 +82,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -103,8 +100,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -130,8 +126,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - public Map getMap() { + @javax.annotation.Nullable public Map getMap() { return map; } @@ -140,7 +135,6 @@ public void setMap(@javax.annotation.Nullable Map map) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java index d21c66877bce..5d54b187c420 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java @@ -51,16 +51,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -74,8 +73,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - public Integer getName() { + @javax.annotation.Nullable public Integer getName() { return name; } @@ -93,8 +91,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - public String getPropertyClass() { + @javax.annotation.Nullable public String getPropertyClass() { return propertyClass; } @@ -103,7 +100,6 @@ public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 1ef06f5ecdb0..ad4fd501d92f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -51,21 +51,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse implements Parcelable { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -79,8 +77,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -98,8 +95,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -117,8 +113,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -127,7 +122,6 @@ public void setMessage(@javax.annotation.Nullable String message) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java index 315634ff850c..2f7565d0c928 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelFile.java @@ -51,11 +51,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile implements Parcelable { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -69,8 +69,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - public String getSourceURI() { + @javax.annotation.Nullable public String getSourceURI() { return sourceURI; } @@ -79,7 +78,6 @@ public void setSourceURI(@javax.annotation.Nullable String sourceURI) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java index 9ca62c3cd4e3..0a0de29e71f8 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelList.java @@ -51,11 +51,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList implements Parcelable { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -69,8 +69,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - public String get123list() { + @javax.annotation.Nullable public String get123list() { return _123list; } @@ -79,7 +78,6 @@ public void set123list(@javax.annotation.Nullable String _123list) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java index 3c26ebb9c9d3..94605f73e078 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -51,11 +51,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn implements Parcelable { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -69,8 +69,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - public Integer getReturn() { + @javax.annotation.Nullable public Integer getReturn() { return _return; } @@ -79,7 +78,6 @@ public void setReturn(@javax.annotation.Nullable Integer _return) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java index f93cbf4452a2..b144f76b4323 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java @@ -51,26 +51,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name implements Parcelable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -93,8 +90,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - public Integer getName() { + @javax.annotation.Nonnull public Integer getName() { return name; } @@ -107,8 +103,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - public Integer getSnakeCase() { + @javax.annotation.Nullable public Integer getSnakeCase() { return snakeCase; } @@ -123,8 +118,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - public String getProperty() { + @javax.annotation.Nullable public String getProperty() { return property; } @@ -137,14 +131,12 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - public Integer get123number() { + @javax.annotation.Nullable public Integer get123number() { return _123number; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java index 7a1aabeae9b3..e78a2e58bf93 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -52,11 +52,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly implements Parcelable { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -70,8 +70,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - public BigDecimal getJustNumber() { + @javax.annotation.Nullable public BigDecimal getJustNumber() { return justNumber; } @@ -80,7 +79,6 @@ public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java index 56d533a88a71..4eee4f9da768 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java @@ -52,26 +52,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -126,16 +123,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -149,8 +143,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -168,8 +161,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -187,8 +179,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -206,8 +197,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -225,8 +215,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -244,8 +233,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -254,7 +242,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java index 9805f1ac57d8..0fd4ee1e906c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -52,21 +52,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite implements Parcelable { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -80,8 +78,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - public BigDecimal getMyNumber() { + @javax.annotation.Nullable public BigDecimal getMyNumber() { return myNumber; } @@ -99,8 +96,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - public String getMyString() { + @javax.annotation.Nullable public String getMyString() { return myString; } @@ -118,8 +114,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - public Boolean getMyBoolean() { + @javax.annotation.Nullable public Boolean getMyBoolean() { return myBoolean; } @@ -128,7 +123,6 @@ public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java index b7c4b12323cf..fa4917fabc98 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java @@ -57,31 +57,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -136,11 +132,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -154,8 +148,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -173,8 +166,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -192,8 +184,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -219,8 +210,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public Set getPhotoUrls() { + @javax.annotation.Nonnull public Set getPhotoUrls() { return photoUrls; } @@ -246,8 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -275,7 +263,6 @@ public void setStatus(@javax.annotation.Nullable StatusEnum status) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 9dad0b3ebc4e..37ff408c353b 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -51,16 +51,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst implements Parcelable { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -76,8 +75,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -92,8 +90,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - public String getBaz() { + @javax.annotation.Nullable public String getBaz() { return baz; } @@ -102,7 +99,6 @@ public void setBaz(@javax.annotation.Nullable String baz) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java index d33e808147af..1a4e2bb959fb 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -51,11 +51,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName implements Parcelable { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -69,8 +69,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - public Long get$SpecialPropertyName() { + @javax.annotation.Nullable public Long get$SpecialPropertyName() { return $specialPropertyName; } @@ -79,7 +78,6 @@ public SpecialModelName() { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java index af792f48e973..9cb1ba04e5d0 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java @@ -51,16 +51,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -74,8 +73,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -93,8 +91,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -103,7 +100,6 @@ public void setName(@javax.annotation.Nullable String name) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index a75a03f36cb2..e87e9716e3c2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -54,31 +54,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault implements Parcelable { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -92,8 +88,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - public String getStringItem() { + @javax.annotation.Nonnull public String getStringItem() { return stringItem; } @@ -111,8 +106,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - public BigDecimal getNumberItem() { + @javax.annotation.Nonnull public BigDecimal getNumberItem() { return numberItem; } @@ -130,8 +124,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - public Integer getIntegerItem() { + @javax.annotation.Nonnull public Integer getIntegerItem() { return integerItem; } @@ -149,8 +142,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - public Boolean getBoolItem() { + @javax.annotation.Nonnull public Boolean getBoolItem() { return boolItem; } @@ -176,8 +168,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - public List getArrayItem() { + @javax.annotation.Nonnull public List getArrayItem() { return arrayItem; } @@ -186,7 +177,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 71e4368bfc02..5e5f281bec14 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -54,36 +54,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample implements Parcelable { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -97,8 +92,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - public String getStringItem() { + @javax.annotation.Nonnull public String getStringItem() { return stringItem; } @@ -116,8 +110,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - public BigDecimal getNumberItem() { + @javax.annotation.Nonnull public BigDecimal getNumberItem() { return numberItem; } @@ -135,8 +128,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - public Float getFloatItem() { + @javax.annotation.Nonnull public Float getFloatItem() { return floatItem; } @@ -154,8 +146,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - public Integer getIntegerItem() { + @javax.annotation.Nonnull public Integer getIntegerItem() { return integerItem; } @@ -173,8 +164,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - public Boolean getBoolItem() { + @javax.annotation.Nonnull public Boolean getBoolItem() { return boolItem; } @@ -200,8 +190,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - public List getArrayItem() { + @javax.annotation.Nonnull public List getArrayItem() { return arrayItem; } @@ -210,7 +199,6 @@ public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java index b7c5c323b83b..589c2987e0b6 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java @@ -51,46 +51,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User implements Parcelable { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -104,8 +97,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -123,8 +115,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -142,8 +133,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -161,8 +151,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -180,8 +169,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -199,8 +187,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -218,8 +205,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -237,8 +223,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -247,7 +232,6 @@ public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java index 0f1f6ceaf118..6651d2ddf073 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/XmlItem.java @@ -54,151 +54,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem implements Parcelable { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -212,8 +184,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - public String getAttributeString() { + @javax.annotation.Nullable public String getAttributeString() { return attributeString; } @@ -231,8 +202,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - public BigDecimal getAttributeNumber() { + @javax.annotation.Nullable public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -250,8 +220,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - public Integer getAttributeInteger() { + @javax.annotation.Nullable public Integer getAttributeInteger() { return attributeInteger; } @@ -269,8 +238,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - public Boolean getAttributeBoolean() { + @javax.annotation.Nullable public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -296,8 +264,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - public List getWrappedArray() { + @javax.annotation.Nullable public List getWrappedArray() { return wrappedArray; } @@ -315,8 +282,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - public String getNameString() { + @javax.annotation.Nullable public String getNameString() { return nameString; } @@ -334,8 +300,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - public BigDecimal getNameNumber() { + @javax.annotation.Nullable public BigDecimal getNameNumber() { return nameNumber; } @@ -353,8 +318,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - public Integer getNameInteger() { + @javax.annotation.Nullable public Integer getNameInteger() { return nameInteger; } @@ -372,8 +336,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - public Boolean getNameBoolean() { + @javax.annotation.Nullable public Boolean getNameBoolean() { return nameBoolean; } @@ -399,8 +362,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - public List getNameArray() { + @javax.annotation.Nullable public List getNameArray() { return nameArray; } @@ -426,8 +388,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - public List getNameWrappedArray() { + @javax.annotation.Nullable public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,8 +406,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - public String getPrefixString() { + @javax.annotation.Nullable public String getPrefixString() { return prefixString; } @@ -464,8 +424,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - public BigDecimal getPrefixNumber() { + @javax.annotation.Nullable public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -483,8 +442,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - public Integer getPrefixInteger() { + @javax.annotation.Nullable public Integer getPrefixInteger() { return prefixInteger; } @@ -502,8 +460,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - public Boolean getPrefixBoolean() { + @javax.annotation.Nullable public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -529,8 +486,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - public List getPrefixArray() { + @javax.annotation.Nullable public List getPrefixArray() { return prefixArray; } @@ -556,8 +512,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - public List getPrefixWrappedArray() { + @javax.annotation.Nullable public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -575,8 +530,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - public String getNamespaceString() { + @javax.annotation.Nullable public String getNamespaceString() { return namespaceString; } @@ -594,8 +548,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - public BigDecimal getNamespaceNumber() { + @javax.annotation.Nullable public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -613,8 +566,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - public Integer getNamespaceInteger() { + @javax.annotation.Nullable public Integer getNamespaceInteger() { return namespaceInteger; } @@ -632,8 +584,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - public Boolean getNamespaceBoolean() { + @javax.annotation.Nullable public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -659,8 +610,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - public List getNamespaceArray() { + @javax.annotation.Nullable public List getNamespaceArray() { return namespaceArray; } @@ -686,8 +636,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - public List getNamespaceWrappedArray() { + @javax.annotation.Nullable public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -705,8 +654,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - public String getPrefixNsString() { + @javax.annotation.Nullable public String getPrefixNsString() { return prefixNsString; } @@ -724,8 +672,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - public BigDecimal getPrefixNsNumber() { + @javax.annotation.Nullable public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -743,8 +690,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - public Integer getPrefixNsInteger() { + @javax.annotation.Nullable public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -762,8 +708,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - public Boolean getPrefixNsBoolean() { + @javax.annotation.Nullable public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -789,8 +734,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - public List getPrefixNsArray() { + @javax.annotation.Nullable public List getPrefixNsArray() { return prefixNsArray; } @@ -816,8 +760,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - public List getPrefixNsWrappedArray() { + @javax.annotation.Nullable public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } @@ -826,7 +769,6 @@ public void setPrefixNsWrappedArray(@javax.annotation.Nullable List pre } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java index 39b9a8ebaa72..fedbdd9bc088 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -52,16 +52,15 @@ */ @ApiModel(description = "A category for a pet") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -75,8 +74,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getId() { return id; } @@ -95,8 +93,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getName() { return name; } @@ -150,7 +147,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index dcefda59a0d9..bb1077bc06df 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -52,21 +52,19 @@ */ @ApiModel(description = "Describes the result of uploading an image resource") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -80,8 +78,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Integer getCode() { return code; } @@ -100,8 +97,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getType() { return type; } @@ -120,8 +116,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getMessage() { return message; } @@ -175,7 +170,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java index 3ea190198935..ebc8d5eaff38 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -53,26 +53,23 @@ */ @ApiModel(description = "An order for a pets from the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -127,16 +124,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -150,8 +144,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getId() { return id; } @@ -170,8 +163,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getPetId() { return petId; } @@ -190,8 +182,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Integer getQuantity() { return quantity; } @@ -210,8 +201,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public OffsetDateTime getShipDate() { return shipDate; } @@ -230,8 +220,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @ApiModelProperty(value = "Order Status") + @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") public StatusEnum getStatus() { return status; } @@ -250,8 +239,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Boolean getComplete() { return complete; } @@ -305,7 +293,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 7dd5ffad472f..40b2053aa065 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -56,31 +56,27 @@ */ @ApiModel(description = "A pet for sale in the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -135,12 +131,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -154,8 +148,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getId() { return id; } @@ -174,8 +167,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Category getCategory() { return category; } @@ -194,8 +186,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @ApiModelProperty(example = "doggie", required = true, value = "") + @javax.annotation.Nonnull @ApiModelProperty(example = "doggie", required = true, value = "") public String getName() { return name; } @@ -222,8 +213,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getPhotoUrls() { return photoUrls; } @@ -250,8 +240,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public List getTags() { return tags; } @@ -273,8 +262,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "pet status in the store") + @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") public StatusEnum getStatus() { return status; } @@ -329,7 +317,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 8f5257f9eee3..c91a7ab858d3 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -52,16 +52,15 @@ */ @ApiModel(description = "A tag for a pet") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -75,8 +74,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getId() { return id; } @@ -95,8 +93,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getName() { return name; } @@ -150,7 +147,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java index 3ae44ced8786..4f58c3f259ad 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -52,46 +52,39 @@ */ @ApiModel(description = "A User who is purchasing from the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -105,8 +98,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public Long getId() { return id; } @@ -125,8 +117,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getUsername() { return username; } @@ -145,8 +136,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getFirstName() { return firstName; } @@ -165,8 +155,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getLastName() { return lastName; } @@ -185,8 +174,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getEmail() { return email; } @@ -205,8 +193,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getPassword() { return password; } @@ -225,8 +212,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") public String getPhone() { return phone; } @@ -245,8 +231,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @ApiModelProperty(value = "User Status") + @javax.annotation.Nullable @ApiModelProperty(value = "User Status") public Integer getUserStatus() { return userStatus; } @@ -300,7 +285,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index a577316c802b..3cbe8cdc6eac 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java index f73e02d0236e..3004de925d86 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -51,16 +51,15 @@ */ @Schema(description = "A category for a pet") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -74,8 +73,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getId() { return id; } @@ -94,8 +92,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getName() { return name; } @@ -149,7 +146,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8ace8ccfd726..c01f7dc94650 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -51,21 +51,19 @@ */ @Schema(description = "Describes the result of uploading an image resource") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -79,8 +77,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Integer getCode() { return code; } @@ -99,8 +96,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getType() { return type; } @@ -119,8 +115,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getMessage() { return message; } @@ -174,7 +169,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java index f171e2ee3f4c..cb01f9905df2 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -52,26 +52,23 @@ */ @Schema(description = "An order for a pets from the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -126,16 +123,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -149,8 +143,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getId() { return id; } @@ -169,8 +162,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getPetId() { return petId; } @@ -189,8 +181,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Integer getQuantity() { return quantity; } @@ -209,8 +200,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public OffsetDateTime getShipDate() { return shipDate; } @@ -229,8 +219,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") public StatusEnum getStatus() { return status; } @@ -249,8 +238,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Boolean getComplete() { return complete; } @@ -304,7 +292,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 9b3bba4f6299..47e9c9719d64 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -55,31 +55,27 @@ */ @Schema(description = "A pet for sale in the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -134,12 +130,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @Deprecated @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -153,8 +147,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getId() { return id; } @@ -173,8 +166,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Category getCategory() { return category; } @@ -193,8 +185,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") public String getName() { return name; } @@ -221,8 +212,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") public List getPhotoUrls() { return photoUrls; } @@ -249,8 +239,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public List getTags() { return tags; } @@ -272,8 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") public StatusEnum getStatus() { return status; } @@ -328,7 +316,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 1ab4fb7fe657..c4399032d03a 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -51,16 +51,15 @@ */ @Schema(description = "A tag for a pet") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -74,8 +73,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getId() { return id; } @@ -94,8 +92,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getName() { return name; } @@ -149,7 +146,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java index 622d71015ec9..3932f5bd265f 100644 --- a/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -51,46 +51,39 @@ */ @Schema(description = "A User who is purchasing from the pet store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -104,8 +97,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public Long getId() { return id; } @@ -124,8 +116,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getUsername() { return username; } @@ -144,8 +135,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getFirstName() { return firstName; } @@ -164,8 +154,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getLastName() { return lastName; } @@ -184,8 +173,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getEmail() { return email; } @@ -204,8 +192,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getPassword() { return password; } @@ -224,8 +211,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") public String getPhone() { return phone; } @@ -244,8 +230,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") public Integer getUserStatus() { return userStatus; } @@ -299,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index cd079bdc58bf..d31a784d93fc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -142,5 +142,4 @@ public Boolean isNullable() { } - } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 16593bdd415f..8c0f9cbb0ddf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -52,46 +52,39 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1 = null; + @javax.annotation.Nullable private Object anytype1 = null; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype1; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype1; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) - @javax.annotation.Nullable - private Object mapWithUndeclaredPropertiesAnytype2; + @javax.annotation.Nullable private Object mapWithUndeclaredPropertiesAnytype2; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesAnytype3 = new HashMap<>(); public static final String SERIALIZED_NAME_EMPTY_MAP = "empty_map"; @SerializedName(SERIALIZED_NAME_EMPTY_MAP) - @javax.annotation.Nullable - private Object emptyMap; + @javax.annotation.Nullable private Object emptyMap; public static final String SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string"; @SerializedName(SERIALIZED_NAME_MAP_WITH_UNDECLARED_PROPERTIES_STRING) - @javax.annotation.Nullable - private Map mapWithUndeclaredPropertiesString = new HashMap<>(); + @javax.annotation.Nullable private Map mapWithUndeclaredPropertiesString = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -113,8 +106,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - public Map getMapProperty() { + @javax.annotation.Nullable public Map getMapProperty() { return mapProperty; } @@ -140,8 +132,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { + @javax.annotation.Nullable public Map> getMapOfMapProperty() { return mapOfMapProperty; } @@ -159,8 +150,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - public Object getAnytype1() { + @javax.annotation.Nullable public Object getAnytype1() { return anytype1; } @@ -178,8 +168,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * Get mapWithUndeclaredPropertiesAnytype1 * @return mapWithUndeclaredPropertiesAnytype1 */ - @javax.annotation.Nullable - public Object getMapWithUndeclaredPropertiesAnytype1() { + @javax.annotation.Nullable public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; } @@ -197,8 +186,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * Get mapWithUndeclaredPropertiesAnytype2 * @return mapWithUndeclaredPropertiesAnytype2 */ - @javax.annotation.Nullable - public Object getMapWithUndeclaredPropertiesAnytype2() { + @javax.annotation.Nullable public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; } @@ -224,8 +212,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * Get mapWithUndeclaredPropertiesAnytype3 * @return mapWithUndeclaredPropertiesAnytype3 */ - @javax.annotation.Nullable - public Map getMapWithUndeclaredPropertiesAnytype3() { + @javax.annotation.Nullable public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; } @@ -243,8 +230,7 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * an object with no declared properties and no undeclared properties, hence it's an empty map. * @return emptyMap */ - @javax.annotation.Nullable - public Object getEmptyMap() { + @javax.annotation.Nullable public Object getEmptyMap() { return emptyMap; } @@ -270,8 +256,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * Get mapWithUndeclaredPropertiesString * @return mapWithUndeclaredPropertiesString */ - @javax.annotation.Nullable - public Map getMapWithUndeclaredPropertiesString() { + @javax.annotation.Nullable public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; } @@ -324,7 +309,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java index 75d05d78b3a8..f55e6415209b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOf.java @@ -51,26 +51,23 @@ * AllOfModelArrayAnyOf */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfModelArrayAnyOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public static final String SERIALIZED_NAME_LINK_LIST_COLUMN1 = "linkListColumn1"; @SerializedName(SERIALIZED_NAME_LINK_LIST_COLUMN1) - @javax.annotation.Nullable - private AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1; + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfLinkListColumn1 linkListColumn1; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - @javax.annotation.Nullable - private AllOfModelArrayAnyOfAllOfAttributes attributes; + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfAttributes attributes; public AllOfModelArrayAnyOf() { } @@ -84,8 +81,7 @@ public AllOfModelArrayAnyOf id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -103,8 +99,7 @@ public AllOfModelArrayAnyOf name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -122,8 +117,7 @@ public AllOfModelArrayAnyOf linkListColumn1(@javax.annotation.Nullable AllOfMode * Get linkListColumn1 * @return linkListColumn1 */ - @javax.annotation.Nullable - public AllOfModelArrayAnyOfAllOfLinkListColumn1 getLinkListColumn1() { + @javax.annotation.Nullable public AllOfModelArrayAnyOfAllOfLinkListColumn1 getLinkListColumn1() { return linkListColumn1; } @@ -141,8 +135,7 @@ public AllOfModelArrayAnyOf attributes(@javax.annotation.Nullable AllOfModelArra * Get attributes * @return attributes */ - @javax.annotation.Nullable - public AllOfModelArrayAnyOfAllOfAttributes getAttributes() { + @javax.annotation.Nullable public AllOfModelArrayAnyOfAllOfAttributes getAttributes() { return attributes; } @@ -195,7 +188,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java index 5f756714f756..4e48fb9ad9cd 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributes.java @@ -50,11 +50,11 @@ * AllOfModelArrayAnyOfAllOfAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfModelArrayAnyOfAllOfAttributes { public static final String SERIALIZED_NAME_C = "C"; @SerializedName(SERIALIZED_NAME_C) - @javax.annotation.Nullable - private AllOfModelArrayAnyOfAllOfAttributesC C; + @javax.annotation.Nullable private AllOfModelArrayAnyOfAllOfAttributesC C; public AllOfModelArrayAnyOfAllOfAttributes() { } @@ -68,8 +68,7 @@ public AllOfModelArrayAnyOfAllOfAttributes C(@javax.annotation.Nullable AllOfMod * Get C * @return C */ - @javax.annotation.Nullable - public AllOfModelArrayAnyOfAllOfAttributesC getC() { + @javax.annotation.Nullable public AllOfModelArrayAnyOfAllOfAttributesC getC() { return C; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributesC.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributesC.java index efdde39493f7..121c4fbce9eb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributesC.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfAttributesC.java @@ -65,6 +65,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfModelArrayAnyOfAllOfAttributesC extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AllOfModelArrayAnyOfAllOfAttributesC.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java index 90333d54c673..5e27f2c29053 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1.java @@ -52,11 +52,11 @@ * AllOfModelArrayAnyOfAllOfLinkListColumn1 */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfModelArrayAnyOfAllOfLinkListColumn1 { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nonnull - private List value = new ArrayList<>(); + @javax.annotation.Nonnull private List value = new ArrayList<>(); public AllOfModelArrayAnyOfAllOfLinkListColumn1() { } @@ -78,8 +78,7 @@ public AllOfModelArrayAnyOfAllOfLinkListColumn1 addValueItem(AllOfModelArrayAnyO * Get value * @return value */ - @javax.annotation.Nonnull - public List getValue() { + @javax.annotation.Nonnull public List getValue() { return value; } @@ -132,7 +131,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1Value.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1Value.java index f0f8425949e8..96372aa2eb69 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1Value.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AllOfModelArrayAnyOfAllOfLinkListColumn1Value.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfModelArrayAnyOfAllOfLinkListColumn1Value extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AllOfModelArrayAnyOfAllOfLinkListColumn1Value.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index 6ca3d6967ed6..6b18f07a8b03 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -49,16 +49,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color = "red"; + @javax.annotation.Nullable private String color = "red"; public Animal() { this.className = this.getClass().getSimpleName(); @@ -73,8 +72,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -92,8 +90,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -146,7 +143,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java index ceefe69ba286..ef1fc1ba2a77 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Apple.java @@ -49,16 +49,15 @@ * Apple */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Apple { public static final String SERIALIZED_NAME_CULTIVAR = "cultivar"; @SerializedName(SERIALIZED_NAME_CULTIVAR) - @javax.annotation.Nullable - private String cultivar; + @javax.annotation.Nullable private String cultivar; public static final String SERIALIZED_NAME_ORIGIN = "origin"; @SerializedName(SERIALIZED_NAME_ORIGIN) - @javax.annotation.Nullable - private String origin; + @javax.annotation.Nullable private String origin; public Apple() { } @@ -72,8 +71,7 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nullable - public String getCultivar() { + @javax.annotation.Nullable public String getCultivar() { return cultivar; } @@ -91,8 +89,7 @@ public Apple origin(@javax.annotation.Nullable String origin) { * Get origin * @return origin */ - @javax.annotation.Nullable - public String getOrigin() { + @javax.annotation.Nullable public String getOrigin() { return origin; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java index c068fbff7829..bf8c0a6d7207 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AppleReq.java @@ -49,16 +49,15 @@ * AppleReq */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AppleReq { public static final String SERIALIZED_NAME_CULTIVAR = "cultivar"; @SerializedName(SERIALIZED_NAME_CULTIVAR) - @javax.annotation.Nonnull - private String cultivar; + @javax.annotation.Nonnull private String cultivar; public static final String SERIALIZED_NAME_MEALY = "mealy"; @SerializedName(SERIALIZED_NAME_MEALY) - @javax.annotation.Nullable - private Boolean mealy; + @javax.annotation.Nullable private Boolean mealy; public AppleReq() { } @@ -72,8 +71,7 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * Get cultivar * @return cultivar */ - @javax.annotation.Nonnull - public String getCultivar() { + @javax.annotation.Nonnull public String getCultivar() { return cultivar; } @@ -91,8 +89,7 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * Get mealy * @return mealy */ - @javax.annotation.Nullable - public Boolean getMealy() { + @javax.annotation.Nullable public Boolean getMealy() { return mealy; } @@ -101,7 +98,6 @@ public void setMealy(@javax.annotation.Nullable Boolean mealy) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayAnyOf.java index 53e0bcf4a03a..e823426844a5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayAnyOf.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayAnyOf extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ArrayAnyOf.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java index 8d41d7a73414..39695135bfa8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayDefault.java @@ -51,16 +51,15 @@ * ArrayDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayDefault { public static final String SERIALIZED_NAME_WITH_DEFAULT_EMPTY_BRACKET = "WithDefaultEmptyBracket"; @SerializedName(SERIALIZED_NAME_WITH_DEFAULT_EMPTY_BRACKET) - @javax.annotation.Nullable - private List withDefaultEmptyBracket = new ArrayList<>(); + @javax.annotation.Nullable private List withDefaultEmptyBracket = new ArrayList<>(); public static final String SERIALIZED_NAME_WITHOUT_DEFAULT = "WithoutDefault"; @SerializedName(SERIALIZED_NAME_WITHOUT_DEFAULT) - @javax.annotation.Nullable - private List withoutDefault = new ArrayList<>(); + @javax.annotation.Nullable private List withoutDefault = new ArrayList<>(); public ArrayDefault() { } @@ -82,8 +81,7 @@ public ArrayDefault addWithDefaultEmptyBracketItem(String withDefaultEmptyBracke * Get withDefaultEmptyBracket * @return withDefaultEmptyBracket */ - @javax.annotation.Nullable - public List getWithDefaultEmptyBracket() { + @javax.annotation.Nullable public List getWithDefaultEmptyBracket() { return withDefaultEmptyBracket; } @@ -109,8 +107,7 @@ public ArrayDefault addWithoutDefaultItem(String withoutDefaultItem) { * Get withoutDefault * @return withoutDefault */ - @javax.annotation.Nullable - public List getWithoutDefault() { + @javax.annotation.Nullable public List getWithoutDefault() { return withoutDefault; } @@ -163,7 +160,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 8a3fb4ab0d1d..5e088a1c4672 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -52,11 +52,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -78,8 +78,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - public List> getArrayArrayNumber() { + @javax.annotation.Nullable public List> getArrayArrayNumber() { return arrayArrayNumber; } @@ -132,7 +131,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java index aa3479b1f4f0..bb638ad4b2e6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOf.java @@ -52,21 +52,19 @@ * ArrayOfInlineAllOf */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfInlineAllOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_ARRAY_ALLOF_DOG_PROPERTY = "array_allof_dog_property"; @SerializedName(SERIALIZED_NAME_ARRAY_ALLOF_DOG_PROPERTY) - @javax.annotation.Nullable - private List arrayAllofDogProperty = new ArrayList<>(); + @javax.annotation.Nullable private List arrayAllofDogProperty = new ArrayList<>(); public ArrayOfInlineAllOf() { } @@ -80,8 +78,7 @@ public ArrayOfInlineAllOf id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -99,8 +96,7 @@ public ArrayOfInlineAllOf name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -126,8 +122,7 @@ public ArrayOfInlineAllOf addArrayAllofDogPropertyItem(ArrayOfInlineAllOfArrayAl * Get arrayAllofDogProperty * @return arrayAllofDogProperty */ - @javax.annotation.Nullable - public List getArrayAllofDogProperty() { + @javax.annotation.Nullable public List getArrayAllofDogProperty() { return arrayAllofDogProperty; } @@ -180,7 +175,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java index 8c8eefd36a2c..de81f9e4c4eb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfInlineAllOfArrayAllofDogPropertyInner.java @@ -49,16 +49,15 @@ * ArrayOfInlineAllOfArrayAllofDogPropertyInner */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfInlineAllOfArrayAllofDogPropertyInner { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - private String color; + @javax.annotation.Nullable private String color; public ArrayOfInlineAllOfArrayAllofDogPropertyInner() { } @@ -72,8 +71,7 @@ public ArrayOfInlineAllOfArrayAllofDogPropertyInner breed(@javax.annotation.Null * Get breed * @return breed */ - @javax.annotation.Nullable - public String getBreed() { + @javax.annotation.Nullable public String getBreed() { return breed; } @@ -91,8 +89,7 @@ public ArrayOfInlineAllOfArrayAllofDogPropertyInner color(@javax.annotation.Null * Get color * @return color */ - @javax.annotation.Nullable - public String getColor() { + @javax.annotation.Nullable public String getColor() { return color; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index cf21b4ac9a1d..29b4ec10fb89 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -52,11 +52,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -78,8 +78,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - public List getArrayNumber() { + @javax.annotation.Nullable public List getArrayNumber() { return arrayNumber; } @@ -132,7 +131,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOneOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOneOf.java index 1db858b0f3f6..d4bf667c624a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOneOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOneOf.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOneOf extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ArrayOneOf.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index ce61db498af0..b0b3d2836918 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -52,21 +52,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -88,8 +86,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - public List getArrayOfString() { + @javax.annotation.Nullable public List getArrayOfString() { return arrayOfString; } @@ -115,8 +112,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { + @javax.annotation.Nullable public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -142,8 +138,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - public List> getArrayArrayOfModel() { + @javax.annotation.Nullable public List> getArrayArrayOfModel() { return arrayArrayOfModel; } @@ -196,7 +191,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java index e6112ba13474..159fdf888596 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Banana.java @@ -50,11 +50,11 @@ * Banana */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Banana { public static final String SERIALIZED_NAME_LENGTH_CM = "lengthCm"; @SerializedName(SERIALIZED_NAME_LENGTH_CM) - @javax.annotation.Nullable - private BigDecimal lengthCm; + @javax.annotation.Nullable private BigDecimal lengthCm; public Banana() { } @@ -68,8 +68,7 @@ public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * Get lengthCm * @return lengthCm */ - @javax.annotation.Nullable - public BigDecimal getLengthCm() { + @javax.annotation.Nullable public BigDecimal getLengthCm() { return lengthCm; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java index 32e3759d635f..50a2ba09f98f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BananaReq.java @@ -50,16 +50,15 @@ * BananaReq */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BananaReq { public static final String SERIALIZED_NAME_LENGTH_CM = "lengthCm"; @SerializedName(SERIALIZED_NAME_LENGTH_CM) - @javax.annotation.Nonnull - private BigDecimal lengthCm; + @javax.annotation.Nonnull private BigDecimal lengthCm; public static final String SERIALIZED_NAME_SWEET = "sweet"; @SerializedName(SERIALIZED_NAME_SWEET) - @javax.annotation.Nullable - private Boolean sweet; + @javax.annotation.Nullable private Boolean sweet; public BananaReq() { } @@ -73,8 +72,7 @@ public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { * Get lengthCm * @return lengthCm */ - @javax.annotation.Nonnull - public BigDecimal getLengthCm() { + @javax.annotation.Nonnull public BigDecimal getLengthCm() { return lengthCm; } @@ -92,8 +90,7 @@ public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { * Get sweet * @return sweet */ - @javax.annotation.Nullable - public Boolean getSweet() { + @javax.annotation.Nullable public Boolean getSweet() { return sweet; } @@ -102,7 +99,6 @@ public void setSweet(@javax.annotation.Nullable Boolean sweet) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java index 6ded2877d02a..641f6cbfca0e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/BasquePig.java @@ -49,11 +49,11 @@ * BasquePig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BasquePig { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public BasquePig() { } @@ -67,8 +67,7 @@ public BasquePig className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index d786023e334b..fb7c0fb25af8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -49,36 +49,31 @@ * Capitalization */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -92,8 +87,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - public String getSmallCamel() { + @javax.annotation.Nullable public String getSmallCamel() { return smallCamel; } @@ -111,8 +105,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - public String getCapitalCamel() { + @javax.annotation.Nullable public String getCapitalCamel() { return capitalCamel; } @@ -130,8 +123,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - public String getSmallSnake() { + @javax.annotation.Nullable public String getSmallSnake() { return smallSnake; } @@ -149,8 +141,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - public String getCapitalSnake() { + @javax.annotation.Nullable public String getCapitalSnake() { return capitalSnake; } @@ -168,8 +159,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - public String getScAETHFlowPoints() { + @javax.annotation.Nullable public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -187,8 +177,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - public String getATTNAME() { + @javax.annotation.Nullable public String getATTNAME() { return ATT_NAME; } @@ -241,7 +230,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index 7b8ee58288fc..050c787871c8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -51,11 +51,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { this.className = this.getClass().getSimpleName(); @@ -70,8 +70,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - public Boolean getDeclawed() { + @javax.annotation.Nullable public Boolean getDeclawed() { return declawed; } @@ -124,7 +123,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 69f14ba2eadd..caccad2c327c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -49,16 +49,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -72,8 +71,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index 31fca4541868..a1641886b764 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,11 +49,11 @@ * Model for testing model with \"_class\" property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -67,8 +67,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - public String getPropertyClass() { + @javax.annotation.Nullable public String getPropertyClass() { return propertyClass; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index 023a7958a7cf..edcf0ad855fb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -49,11 +49,11 @@ * Client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -67,8 +67,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - public String getClient() { + @javax.annotation.Nullable public String getClient() { return client; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index f35c22c0d7d4..85e68ff2ce5d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -49,16 +49,15 @@ * ComplexQuadrilateral */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ComplexQuadrilateral { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public ComplexQuadrilateral() { } @@ -72,8 +71,7 @@ public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -91,8 +89,7 @@ public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String q * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - public String getQuadrilateralType() { + @javax.annotation.Nonnull public String getQuadrilateralType() { return quadrilateralType; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java index f63fe0001525..ff78e44146c9 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DanishPig.java @@ -49,11 +49,11 @@ * DanishPig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DanishPig { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public DanishPig() { } @@ -67,8 +67,7 @@ public DanishPig className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index f156105af0f5..53fe55dee23c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,11 +51,11 @@ */ @Deprecated @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -69,8 +69,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index dfef6252229c..14ec0c042c02 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -50,11 +50,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { this.className = this.getClass().getSimpleName(); @@ -69,8 +69,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - public String getBreed() { + @javax.annotation.Nullable public String getBreed() { return breed; } @@ -123,7 +122,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java index 24934ad12e18..9a4bf0578d1d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Drawing.java @@ -56,26 +56,23 @@ * Drawing */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Drawing { public static final String SERIALIZED_NAME_MAIN_SHAPE = "mainShape"; @SerializedName(SERIALIZED_NAME_MAIN_SHAPE) - @javax.annotation.Nullable - private Shape mainShape; + @javax.annotation.Nullable private Shape mainShape; public static final String SERIALIZED_NAME_SHAPE_OR_NULL = "shapeOrNull"; @SerializedName(SERIALIZED_NAME_SHAPE_OR_NULL) - @javax.annotation.Nullable - private ShapeOrNull shapeOrNull; + @javax.annotation.Nullable private ShapeOrNull shapeOrNull; public static final String SERIALIZED_NAME_NULLABLE_SHAPE = "nullableShape"; @SerializedName(SERIALIZED_NAME_NULLABLE_SHAPE) - @javax.annotation.Nullable - private NullableShape nullableShape; + @javax.annotation.Nullable private NullableShape nullableShape; public static final String SERIALIZED_NAME_SHAPES = "shapes"; @SerializedName(SERIALIZED_NAME_SHAPES) - @javax.annotation.Nullable - private List shapes = new ArrayList<>(); + @javax.annotation.Nullable private List shapes = new ArrayList<>(); public Drawing() { } @@ -89,8 +86,7 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * Get mainShape * @return mainShape */ - @javax.annotation.Nullable - public Shape getMainShape() { + @javax.annotation.Nullable public Shape getMainShape() { return mainShape; } @@ -108,8 +104,7 @@ public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { * Get shapeOrNull * @return shapeOrNull */ - @javax.annotation.Nullable - public ShapeOrNull getShapeOrNull() { + @javax.annotation.Nullable public ShapeOrNull getShapeOrNull() { return shapeOrNull; } @@ -127,8 +122,7 @@ public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableSh * Get nullableShape * @return nullableShape */ - @javax.annotation.Nullable - public NullableShape getNullableShape() { + @javax.annotation.Nullable public NullableShape getNullableShape() { return nullableShape; } @@ -154,8 +148,7 @@ public Drawing addShapesItem(Shape shapesItem) { * Get shapes * @return shapes */ - @javax.annotation.Nullable - public List getShapes() { + @javax.annotation.Nullable public List getShapes() { return shapes; } @@ -208,7 +201,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index 80ad1e7b9dd2..3d13d09c6fb4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -51,6 +51,7 @@ * EnumArrays */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -103,11 +104,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JustSymbolEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -160,11 +159,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ArrayEnumEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -178,8 +175,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { + @javax.annotation.Nullable public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -205,8 +201,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - public List getArrayEnum() { + @javax.annotation.Nullable public List getArrayEnum() { return arrayEnum; } @@ -259,7 +254,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java index b657538588de..32cf67f1631b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumStringDiscriminator.java @@ -49,6 +49,7 @@ * An object to test discriminator of enum string */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumStringDiscriminator { /** * enum string type @@ -101,11 +102,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStrTypeEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STR_TYPE = "enum_str_type"; @SerializedName(SERIALIZED_NAME_ENUM_STR_TYPE) - @javax.annotation.Nonnull - protected EnumStrTypeEnum enumStrType; + @javax.annotation.Nonnull protected EnumStrTypeEnum enumStrType; public EnumStringDiscriminator() { } @@ -119,8 +118,7 @@ public EnumStringDiscriminator enumStrType(@javax.annotation.Nonnull EnumStrType * enum string type * @return enumStrType */ - @javax.annotation.Nonnull - public EnumStrTypeEnum getEnumStrType() { + @javax.annotation.Nonnull public EnumStrTypeEnum getEnumStrType() { return enumStrType; } @@ -173,7 +171,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index b9f647c00064..4889a30599b0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -54,6 +54,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -108,11 +109,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -167,11 +166,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumStringRequiredEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -224,11 +221,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumIntegerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumIntegerOnly @@ -281,11 +276,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumIntegerOnlyEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_INTEGER_ONLY = "enum_integer_only"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER_ONLY) - @javax.annotation.Nullable - private EnumIntegerOnlyEnum enumIntegerOnly; + @javax.annotation.Nullable private EnumIntegerOnlyEnum enumIntegerOnly; /** * Gets or Sets enumNumber @@ -338,31 +331,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EnumNumberEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public static final String SERIALIZED_NAME_OUTER_ENUM_INTEGER = "outerEnumInteger"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_INTEGER) - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String SERIALIZED_NAME_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_DEFAULT_VALUE) - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String SERIALIZED_NAME_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM_INTEGER_DEFAULT_VALUE) - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -376,8 +363,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - public EnumStringEnum getEnumString() { + @javax.annotation.Nullable public EnumStringEnum getEnumString() { return enumString; } @@ -395,8 +381,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { + @javax.annotation.Nonnull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -414,8 +399,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { + @javax.annotation.Nullable public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -433,8 +417,7 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * Get enumIntegerOnly * @return enumIntegerOnly */ - @javax.annotation.Nullable - public EnumIntegerOnlyEnum getEnumIntegerOnly() { + @javax.annotation.Nullable public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; } @@ -452,8 +435,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { + @javax.annotation.Nullable public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -471,8 +453,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - public OuterEnum getOuterEnum() { + @javax.annotation.Nullable public OuterEnum getOuterEnum() { return outerEnum; } @@ -490,8 +471,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - public OuterEnumInteger getOuterEnumInteger() { + @javax.annotation.Nullable public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } @@ -509,8 +489,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - public OuterEnumDefaultValue getOuterEnumDefaultValue() { + @javax.annotation.Nullable public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } @@ -528,8 +507,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { + @javax.annotation.Nullable public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } @@ -582,7 +560,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index c664bb6a4fce..796e23d269a0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -49,16 +49,15 @@ * EquilateralTriangle */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EquilateralTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public EquilateralTriangle() { } @@ -72,8 +71,7 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -91,8 +89,7 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - public String getTriangleType() { + @javax.annotation.Nonnull public String getTriangleType() { return triangleType; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeAnyOfWIthSameErasureGet200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeAnyOfWIthSameErasureGet200Response.java index c7cd7e4e5650..817265a9819f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeAnyOfWIthSameErasureGet200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeAnyOfWIthSameErasureGet200Response.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeAnyOfWIthSameErasureGet200Response extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(FakeAnyOfWIthSameErasureGet200Response.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeOneOfWIthSameErasureGet200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeOneOfWIthSameErasureGet200Response.java index 62efc28cd29e..109d2c9f9fc5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeOneOfWIthSameErasureGet200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeOneOfWIthSameErasureGet200Response.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeOneOfWIthSameErasureGet200Response extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(FakeOneOfWIthSameErasureGet200Response.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeRefParameterPetIdParameter.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeRefParameterPetIdParameter.java index e36bf955abf6..cc042528d0c0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeRefParameterPetIdParameter.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FakeRefParameterPetIdParameter.java @@ -51,6 +51,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeRefParameterPetIdParameter extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(FakeRefParameterPetIdParameter.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index bb1075165989..5621e31516c4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -52,16 +52,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -75,8 +74,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - public ModelFile getFile() { + @javax.annotation.Nullable public ModelFile getFile() { return _file; } @@ -102,8 +100,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - public List getFiles() { + @javax.annotation.Nullable public List getFiles() { return files; } @@ -156,7 +153,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java index 718e074ee6e0..257850a296af 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Foo.java @@ -49,11 +49,11 @@ * Foo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -67,8 +67,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 023db16359a8..218dd6b8fb79 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -50,11 +50,11 @@ * FooGetDefaultResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -68,8 +68,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - public Foo getString() { + @javax.annotation.Nullable public Foo getString() { return string; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index 6afb7d793d61..8805d49675ff 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -54,91 +54,75 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_DECIMAL = "decimal"; @SerializedName(SERIALIZED_NAME_DECIMAL) - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_UUID_WITH_DEFAULT = "uuid_with_default"; @SerializedName(SERIALIZED_NAME_UUID_WITH_DEFAULT) - @javax.annotation.Nullable - private UUID uuidWithDefault = UUID.fromString("11111111-206d-4f12-9f12-3d1e525a8e84"); + @javax.annotation.Nullable private UUID uuidWithDefault = UUID.fromString("11111111-206d-4f12-9f12-3d1e525a8e84"); public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_PATTERN_WITH_DIGITS = "pattern_with_digits"; @SerializedName(SERIALIZED_NAME_PATTERN_WITH_DIGITS) - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String SERIALIZED_NAME_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; @SerializedName(SERIALIZED_NAME_PATTERN_WITH_DIGITS_AND_DELIMITER) - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -154,8 +138,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - public Integer getInteger() { + @javax.annotation.Nullable public Integer getInteger() { return integer; } @@ -175,8 +158,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - public Integer getInt32() { + @javax.annotation.Nullable public Integer getInt32() { return int32; } @@ -194,8 +176,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - public Long getInt64() { + @javax.annotation.Nullable public Long getInt64() { return int64; } @@ -215,8 +196,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - public BigDecimal getNumber() { + @javax.annotation.Nonnull public BigDecimal getNumber() { return number; } @@ -236,8 +216,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - public Float getFloat() { + @javax.annotation.Nullable public Float getFloat() { return _float; } @@ -257,8 +236,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - public Double getDouble() { + @javax.annotation.Nullable public Double getDouble() { return _double; } @@ -276,8 +254,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - public BigDecimal getDecimal() { + @javax.annotation.Nullable public BigDecimal getDecimal() { return decimal; } @@ -295,8 +272,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - public String getString() { + @javax.annotation.Nullable public String getString() { return string; } @@ -314,8 +290,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - public byte[] getByte() { + @javax.annotation.Nonnull public byte[] getByte() { return _byte; } @@ -333,8 +308,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - public File getBinary() { + @javax.annotation.Nullable public File getBinary() { return binary; } @@ -352,8 +326,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - public LocalDate getDate() { + @javax.annotation.Nonnull public LocalDate getDate() { return date; } @@ -371,8 +344,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -390,8 +362,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -409,8 +380,7 @@ public FormatTest uuidWithDefault(@javax.annotation.Nullable UUID uuidWithDefaul * Get uuidWithDefault * @return uuidWithDefault */ - @javax.annotation.Nullable - public UUID getUuidWithDefault() { + @javax.annotation.Nullable public UUID getUuidWithDefault() { return uuidWithDefault; } @@ -428,8 +398,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - public String getPassword() { + @javax.annotation.Nonnull public String getPassword() { return password; } @@ -447,8 +416,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - public String getPatternWithDigits() { + @javax.annotation.Nullable public String getPatternWithDigits() { return patternWithDigits; } @@ -466,8 +434,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - public String getPatternWithDigitsAndDelimiter() { + @javax.annotation.Nullable public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } @@ -520,7 +487,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java index d68db8609146..c495cd282c6a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClass.java @@ -50,16 +50,15 @@ * FreeFormObjectTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FreeFormObjectTestClass { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_PROPERTIES = "properties"; @SerializedName(SERIALIZED_NAME_PROPERTIES) - @javax.annotation.Nullable - private FreeFormObjectTestClassProperties properties; + @javax.annotation.Nullable private FreeFormObjectTestClassProperties properties; public FreeFormObjectTestClass() { } @@ -73,8 +72,7 @@ public FreeFormObjectTestClass name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -92,8 +90,7 @@ public FreeFormObjectTestClass properties(@javax.annotation.Nullable FreeFormObj * Get properties * @return properties */ - @javax.annotation.Nullable - public FreeFormObjectTestClassProperties getProperties() { + @javax.annotation.Nullable public FreeFormObjectTestClassProperties getProperties() { return properties; } @@ -146,7 +143,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClassProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClassProperties.java index 72fc90613cad..4da564828fae 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClassProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FreeFormObjectTestClassProperties.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FreeFormObjectTestClassProperties extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(FreeFormObjectTestClassProperties.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Fruit.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Fruit.java index 0781f56ac736..c4a6973e411a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Fruit.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Fruit.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Fruit extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Fruit.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FruitReq.java index 94b492994f96..813e540b73d1 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FruitReq.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FruitReq.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FruitReq extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(FruitReq.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GmFruit.java index a79b0fcfdfa0..08dfaef524d3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GmFruit.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GmFruit.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class GmFruit extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(GmFruit.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 4d17b3959f68..e016eb8bf121 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -49,11 +49,11 @@ * GrandparentAnimal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class GrandparentAnimal { public static final String SERIALIZED_NAME_PET_TYPE = "pet_type"; @SerializedName(SERIALIZED_NAME_PET_TYPE) - @javax.annotation.Nonnull - protected String petType; + @javax.annotation.Nonnull protected String petType; public GrandparentAnimal() { this.petType = this.getClass().getSimpleName(); @@ -68,8 +68,7 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * Get petType * @return petType */ - @javax.annotation.Nonnull - public String getPetType() { + @javax.annotation.Nonnull public String getPetType() { return petType; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 2ef25e153530..2168f2c35ee8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -49,16 +49,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -76,8 +75,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -87,8 +85,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - public String getFoo() { + @javax.annotation.Nullable public String getFoo() { return foo; } @@ -138,7 +135,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 91cd55bc38d1..f856c14e91d4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -50,11 +50,11 @@ * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String SERIALIZED_NAME_NULLABLE_MESSAGE = "NullableMessage"; @SerializedName(SERIALIZED_NAME_NULLABLE_MESSAGE) - @javax.annotation.Nullable - private String nullableMessage; + @javax.annotation.Nullable private String nullableMessage; public HealthCheckResult() { } @@ -68,8 +68,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - public String getNullableMessage() { + @javax.annotation.Nullable public String getNullableMessage() { return nullableMessage; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 714fe4a527e2..fed04996fe62 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -49,16 +49,15 @@ * IsoscelesTriangle */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class IsoscelesTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public IsoscelesTriangle() { } @@ -72,8 +71,7 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -91,8 +89,7 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - public String getTriangleType() { + @javax.annotation.Nonnull public String getTriangleType() { return triangleType; } @@ -101,7 +98,6 @@ public void setTriangleType(@javax.annotation.Nonnull String triangleType) { } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Mammal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Mammal.java index d6973af43c1f..51ccd27c32b8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Mammal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Mammal.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Mammal extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Mammal.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MammalAnyof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MammalAnyof.java index 57f5c90a931e..2a32e9e6447e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MammalAnyof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MammalAnyof.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MammalAnyof extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(MammalAnyof.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index ec9af3d71897..429386cda796 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -51,11 +51,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -108,21 +108,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti InnerEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -144,8 +140,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - public Map> getMapMapOfString() { + @javax.annotation.Nullable public Map> getMapMapOfString() { return mapMapOfString; } @@ -171,8 +166,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - public Map getMapOfEnumString() { + @javax.annotation.Nullable public Map getMapOfEnumString() { return mapOfEnumString; } @@ -198,8 +192,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - public Map getDirectMap() { + @javax.annotation.Nullable public Map getDirectMap() { return directMap; } @@ -225,8 +218,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - public Map getIndirectMap() { + @javax.annotation.Nullable public Map getIndirectMap() { return indirectMap; } @@ -279,7 +271,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 524250a90fb4..9aef5d8eb816 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -54,21 +54,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -82,8 +80,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - public UUID getUuid() { + @javax.annotation.Nullable public UUID getUuid() { return uuid; } @@ -101,8 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - public OffsetDateTime getDateTime() { + @javax.annotation.Nullable public OffsetDateTime getDateTime() { return dateTime; } @@ -128,8 +124,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - public Map getMap() { + @javax.annotation.Nullable public Map getMap() { return map; } @@ -182,7 +177,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index 9e6f09be30c9..4baac9ea5e4f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -49,16 +49,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -72,8 +71,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - public Integer getName() { + @javax.annotation.Nullable public Integer getName() { return name; } @@ -91,8 +89,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - public String getPropertyClass() { + @javax.annotation.Nullable public String getPropertyClass() { return propertyClass; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 68b75cc06b6b..01dfde37d014 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,21 +49,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -77,8 +75,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - public Integer getCode() { + @javax.annotation.Nullable public Integer getCode() { return code; } @@ -96,8 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - public String getMessage() { + @javax.annotation.Nullable public String getMessage() { return message; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java index 6c4d329b1cf5..0c6a9e5d521c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -49,11 +49,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -67,8 +67,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - public String getSourceURI() { + @javax.annotation.Nullable public String getSourceURI() { return sourceURI; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java index 07c55e9c778b..cc62efe04416 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelList.java @@ -49,11 +49,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -67,8 +67,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - public String get123list() { + @javax.annotation.Nullable public String get123list() { return _123list; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index fa671ab3fbd7..83bac15edd3b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -49,11 +49,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -67,8 +67,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - public Integer getReturn() { + @javax.annotation.Nullable public Integer getReturn() { return _return; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java index 2f0212f35e6d..85860a667251 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelWithOneOfAnyOfProperties.java @@ -51,16 +51,15 @@ * ModelWithOneOfAnyOfProperties */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelWithOneOfAnyOfProperties { public static final String SERIALIZED_NAME_ONEOF_PROP = "oneof_prop"; @SerializedName(SERIALIZED_NAME_ONEOF_PROP) - @javax.annotation.Nullable - private ArrayOneOf oneofProp; + @javax.annotation.Nullable private ArrayOneOf oneofProp; public static final String SERIALIZED_NAME_ANYOF_PROP = "anyof_prop"; @SerializedName(SERIALIZED_NAME_ANYOF_PROP) - @javax.annotation.Nullable - private ArrayAnyOf anyofProp; + @javax.annotation.Nullable private ArrayAnyOf anyofProp; public ModelWithOneOfAnyOfProperties() { } @@ -74,8 +73,7 @@ public ModelWithOneOfAnyOfProperties oneofProp(@javax.annotation.Nullable ArrayO * Get oneofProp * @return oneofProp */ - @javax.annotation.Nullable - public ArrayOneOf getOneofProp() { + @javax.annotation.Nullable public ArrayOneOf getOneofProp() { return oneofProp; } @@ -93,8 +91,7 @@ public ModelWithOneOfAnyOfProperties anyofProp(@javax.annotation.Nullable ArrayA * Get anyofProp * @return anyofProp */ - @javax.annotation.Nullable - public ArrayAnyOf getAnyofProp() { + @javax.annotation.Nullable public ArrayAnyOf getAnyofProp() { return anyofProp; } @@ -147,7 +144,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index b12177c99c60..8f5e6367bd0e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -49,26 +49,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -91,8 +88,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - public Integer getName() { + @javax.annotation.Nonnull public Integer getName() { return name; } @@ -105,8 +101,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - public Integer getSnakeCase() { + @javax.annotation.Nullable public Integer getSnakeCase() { return snakeCase; } @@ -121,8 +116,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - public String getProperty() { + @javax.annotation.Nullable public String getProperty() { return property; } @@ -135,8 +129,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - public Integer get123number() { + @javax.annotation.Nullable public Integer get123number() { return _123number; } @@ -186,7 +179,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java index 7a9b9f0c0774..b2b5f494862e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPet.java @@ -54,46 +54,39 @@ * NewPet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NewPet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF = "category_inline_allof"; @SerializedName(SERIALIZED_NAME_CATEGORY_INLINE_ALLOF) - @javax.annotation.Nullable - private NewPetCategoryInlineAllof categoryInlineAllof; + @javax.annotation.Nullable private NewPetCategoryInlineAllof categoryInlineAllof; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF = "category_allOf_ref"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF) - @javax.annotation.Nullable - private Category categoryAllOfRef; + @javax.annotation.Nullable private Category categoryAllOfRef; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION = "category_allOf_ref_description"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION) - @javax.annotation.Nullable - private Category categoryAllOfRefDescription; + @javax.annotation.Nullable private Category categoryAllOfRefDescription; public static final String SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION_READONLY = "category_allOf_ref_description_readonly"; @SerializedName(SERIALIZED_NAME_CATEGORY_ALL_OF_REF_DESCRIPTION_READONLY) - @javax.annotation.Nullable - private Category categoryAllOfRefDescriptionReadonly; + @javax.annotation.Nullable private Category categoryAllOfRefDescriptionReadonly; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -148,11 +141,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public NewPet() { } @@ -173,8 +164,7 @@ public NewPet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -192,8 +182,7 @@ public NewPet categoryInlineAllof(@javax.annotation.Nullable NewPetCategoryInlin * Get categoryInlineAllof * @return categoryInlineAllof */ - @javax.annotation.Nullable - public NewPetCategoryInlineAllof getCategoryInlineAllof() { + @javax.annotation.Nullable public NewPetCategoryInlineAllof getCategoryInlineAllof() { return categoryInlineAllof; } @@ -211,8 +200,7 @@ public NewPet categoryAllOfRef(@javax.annotation.Nullable Category categoryAllOf * Get categoryAllOfRef * @return categoryAllOfRef */ - @javax.annotation.Nullable - public Category getCategoryAllOfRef() { + @javax.annotation.Nullable public Category getCategoryAllOfRef() { return categoryAllOfRef; } @@ -230,8 +218,7 @@ public NewPet categoryAllOfRefDescription(@javax.annotation.Nullable Category ca * Adding description to property using allOf * @return categoryAllOfRefDescription */ - @javax.annotation.Nullable - public Category getCategoryAllOfRefDescription() { + @javax.annotation.Nullable public Category getCategoryAllOfRefDescription() { return categoryAllOfRefDescription; } @@ -244,8 +231,7 @@ public void setCategoryAllOfRefDescription(@javax.annotation.Nullable Category c * Adding description to readonly property using allOf * @return categoryAllOfRefDescriptionReadonly */ - @javax.annotation.Nullable - public Category getCategoryAllOfRefDescriptionReadonly() { + @javax.annotation.Nullable public Category getCategoryAllOfRefDescriptionReadonly() { return categoryAllOfRefDescriptionReadonly; } @@ -260,8 +246,7 @@ public NewPet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -287,8 +272,7 @@ public NewPet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -314,8 +298,7 @@ public NewPet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -333,8 +316,7 @@ public NewPet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -387,7 +369,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java index 8ada9002bc77..3f7178972f52 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllof.java @@ -50,21 +50,19 @@ * NewPetCategoryInlineAllof */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NewPetCategoryInlineAllof { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public static final String SERIALIZED_NAME_CATEGORY_TAG = "category_tag"; @SerializedName(SERIALIZED_NAME_CATEGORY_TAG) - @javax.annotation.Nullable - private NewPetCategoryInlineAllofAllOfCategoryTag categoryTag; + @javax.annotation.Nullable private NewPetCategoryInlineAllofAllOfCategoryTag categoryTag; public NewPetCategoryInlineAllof() { } @@ -78,8 +76,7 @@ public NewPetCategoryInlineAllof id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -97,8 +94,7 @@ public NewPetCategoryInlineAllof name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -116,8 +112,7 @@ public NewPetCategoryInlineAllof categoryTag(@javax.annotation.Nullable NewPetCa * Get categoryTag * @return categoryTag */ - @javax.annotation.Nullable - public NewPetCategoryInlineAllofAllOfCategoryTag getCategoryTag() { + @javax.annotation.Nullable public NewPetCategoryInlineAllofAllOfCategoryTag getCategoryTag() { return categoryTag; } @@ -170,7 +165,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java index 1c8ab1023c7c..d3a1fbbd7461 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NewPetCategoryInlineAllofAllOfCategoryTag.java @@ -49,16 +49,15 @@ * NewPetCategoryInlineAllofAllOfCategoryTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NewPetCategoryInlineAllofAllOfCategoryTag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public NewPetCategoryInlineAllofAllOfCategoryTag() { } @@ -72,8 +71,7 @@ public NewPetCategoryInlineAllofAllOfCategoryTag id(@javax.annotation.Nullable L * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public NewPetCategoryInlineAllofAllOfCategoryTag name(@javax.annotation.Nullable * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java index 6919b6ddf049..f75181c1c52c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -57,66 +57,55 @@ * NullableClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass { public static final String SERIALIZED_NAME_INTEGER_PROP = "integer_prop"; @SerializedName(SERIALIZED_NAME_INTEGER_PROP) - @javax.annotation.Nullable - private Integer integerProp; + @javax.annotation.Nullable private Integer integerProp; public static final String SERIALIZED_NAME_NUMBER_PROP = "number_prop"; @SerializedName(SERIALIZED_NAME_NUMBER_PROP) - @javax.annotation.Nullable - private BigDecimal numberProp; + @javax.annotation.Nullable private BigDecimal numberProp; public static final String SERIALIZED_NAME_BOOLEAN_PROP = "boolean_prop"; @SerializedName(SERIALIZED_NAME_BOOLEAN_PROP) - @javax.annotation.Nullable - private Boolean booleanProp; + @javax.annotation.Nullable private Boolean booleanProp; public static final String SERIALIZED_NAME_STRING_PROP = "string_prop"; @SerializedName(SERIALIZED_NAME_STRING_PROP) - @javax.annotation.Nullable - private String stringProp; + @javax.annotation.Nullable private String stringProp; public static final String SERIALIZED_NAME_DATE_PROP = "date_prop"; @SerializedName(SERIALIZED_NAME_DATE_PROP) - @javax.annotation.Nullable - private LocalDate dateProp; + @javax.annotation.Nullable private LocalDate dateProp; public static final String SERIALIZED_NAME_DATETIME_PROP = "datetime_prop"; @SerializedName(SERIALIZED_NAME_DATETIME_PROP) - @javax.annotation.Nullable - private OffsetDateTime datetimeProp; + @javax.annotation.Nullable private OffsetDateTime datetimeProp; public static final String SERIALIZED_NAME_ARRAY_NULLABLE_PROP = "array_nullable_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_NULLABLE_PROP) - @javax.annotation.Nullable - private List arrayNullableProp; + @javax.annotation.Nullable private List arrayNullableProp; public static final String SERIALIZED_NAME_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; @SerializedName(SERIALIZED_NAME_ARRAY_AND_ITEMS_NULLABLE_PROP) - @javax.annotation.Nullable - private List arrayAndItemsNullableProp; + @javax.annotation.Nullable private List arrayAndItemsNullableProp; public static final String SERIALIZED_NAME_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEMS_NULLABLE) - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String SERIALIZED_NAME_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @SerializedName(SERIALIZED_NAME_OBJECT_NULLABLE_PROP) - @javax.annotation.Nullable - private Map objectNullableProp; + @javax.annotation.Nullable private Map objectNullableProp; public static final String SERIALIZED_NAME_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; @SerializedName(SERIALIZED_NAME_OBJECT_AND_ITEMS_NULLABLE_PROP) - @javax.annotation.Nullable - private Map objectAndItemsNullableProp; + @javax.annotation.Nullable private Map objectAndItemsNullableProp; public static final String SERIALIZED_NAME_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; @SerializedName(SERIALIZED_NAME_OBJECT_ITEMS_NULLABLE) - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { } @@ -130,8 +119,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - public Integer getIntegerProp() { + @javax.annotation.Nullable public Integer getIntegerProp() { return integerProp; } @@ -149,8 +137,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - public BigDecimal getNumberProp() { + @javax.annotation.Nullable public BigDecimal getNumberProp() { return numberProp; } @@ -168,8 +155,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - public Boolean getBooleanProp() { + @javax.annotation.Nullable public Boolean getBooleanProp() { return booleanProp; } @@ -187,8 +173,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - public String getStringProp() { + @javax.annotation.Nullable public String getStringProp() { return stringProp; } @@ -206,8 +191,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - public LocalDate getDateProp() { + @javax.annotation.Nullable public LocalDate getDateProp() { return dateProp; } @@ -225,8 +209,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - public OffsetDateTime getDatetimeProp() { + @javax.annotation.Nullable public OffsetDateTime getDatetimeProp() { return datetimeProp; } @@ -252,8 +235,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - public List getArrayNullableProp() { + @javax.annotation.Nullable public List getArrayNullableProp() { return arrayNullableProp; } @@ -279,8 +261,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - public List getArrayAndItemsNullableProp() { + @javax.annotation.Nullable public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; } @@ -306,8 +287,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - public List getArrayItemsNullable() { + @javax.annotation.Nullable public List getArrayItemsNullable() { return arrayItemsNullable; } @@ -333,8 +313,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - public Map getObjectNullableProp() { + @javax.annotation.Nullable public Map getObjectNullableProp() { return objectNullableProp; } @@ -360,8 +339,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - public Map getObjectAndItemsNullableProp() { + @javax.annotation.Nullable public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; } @@ -387,8 +365,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - public Map getObjectItemsNullable() { + @javax.annotation.Nullable public Map getObjectItemsNullable() { return objectItemsNullable; } @@ -441,7 +418,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java index 6dba4ecbde73..4849a29cdbfa 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java @@ -60,6 +60,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableShape extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(NullableShape.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index bc4825628c20..c78e2bec5f76 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,11 +50,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -68,8 +68,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - public BigDecimal getJustNumber() { + @javax.annotation.Nullable public BigDecimal getJustNumber() { return justNumber; } @@ -122,7 +121,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index eee0aa245b7c..cbb114be4d33 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -53,29 +53,26 @@ * ObjectWithDeprecatedFields */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String SERIALIZED_NAME_ID = "id"; @Deprecated @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String SERIALIZED_NAME_DEPRECATED_REF = "deprecatedRef"; @Deprecated @SerializedName(SERIALIZED_NAME_DEPRECATED_REF) - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String SERIALIZED_NAME_BARS = "bars"; @Deprecated @SerializedName(SERIALIZED_NAME_BARS) - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -89,8 +86,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - public String getUuid() { + @javax.annotation.Nullable public String getUuid() { return uuid; } @@ -111,8 +107,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public BigDecimal getId() { + @javax.annotation.Nullable public BigDecimal getId() { return id; } @@ -134,8 +129,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - public DeprecatedObject getDeprecatedRef() { + @javax.annotation.Nullable public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } @@ -165,8 +159,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - public List getBars() { + @javax.annotation.Nullable public List getBars() { return bars; } @@ -220,7 +213,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index 46ebb52916b2..e621d783a290 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -50,26 +50,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -124,16 +121,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -147,8 +141,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -166,8 +159,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - public Long getPetId() { + @javax.annotation.Nullable public Long getPetId() { return petId; } @@ -185,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - public Integer getQuantity() { + @javax.annotation.Nullable public Integer getQuantity() { return quantity; } @@ -204,8 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - public OffsetDateTime getShipDate() { + @javax.annotation.Nullable public OffsetDateTime getShipDate() { return shipDate; } @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - public Boolean getComplete() { + @javax.annotation.Nullable public Boolean getComplete() { return complete; } @@ -296,7 +284,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index f65ff6cfd3eb..020d3cc7bd54 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -50,21 +50,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -78,8 +76,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - public BigDecimal getMyNumber() { + @javax.annotation.Nullable public BigDecimal getMyNumber() { return myNumber; } @@ -97,8 +94,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - public String getMyString() { + @javax.annotation.Nullable public String getMyString() { return myString; } @@ -116,8 +112,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - public Boolean getMyBoolean() { + @javax.annotation.Nullable public Boolean getMyBoolean() { return myBoolean; } @@ -170,7 +165,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java index c67b6fcc6c36..a015f0ff5a7a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ParentPet.java @@ -50,6 +50,7 @@ * ParentPet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ParentPet extends GrandparentAnimal { public ParentPet() { this.petType = this.getClass().getSimpleName(); @@ -99,7 +100,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index c6054b244c4c..08eb3dd4c4b6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -53,31 +53,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -150,8 +144,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -188,8 +180,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -215,8 +206,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -261,8 +250,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -315,7 +303,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java index 912e6401aab9..8aef72892283 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetComposition.java @@ -53,31 +53,27 @@ * PetComposition */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetComposition { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetComposition() { } @@ -150,8 +144,7 @@ public PetComposition id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public PetComposition category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -188,8 +180,7 @@ public PetComposition name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -215,8 +206,7 @@ public PetComposition addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public PetComposition addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -261,8 +250,7 @@ public PetComposition status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -315,7 +303,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java index d8a430f7459e..45f8c9b0997e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetRef.java @@ -53,31 +53,27 @@ * PetRef */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetRef { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetRef() { } @@ -150,8 +144,7 @@ public PetRef id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public PetRef category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -188,8 +180,7 @@ public PetRef name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -215,8 +206,7 @@ public PetRef addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public PetRef addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -261,8 +250,7 @@ public PetRef status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -315,7 +303,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java index 348ad5d696ab..35c86bbb616b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetUsingAllOf.java @@ -53,31 +53,27 @@ * PetUsingAllOf */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetUsingAllOf { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetUsingAllOf() { } @@ -150,8 +144,7 @@ public PetUsingAllOf id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public PetUsingAllOf category(@javax.annotation.Nullable Category category) { * multi line description 2nd line last line * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -188,8 +180,7 @@ public PetUsingAllOf name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -215,8 +206,7 @@ public PetUsingAllOf addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public PetUsingAllOf addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - public List getTags() { + @javax.annotation.Nullable public List getTags() { return tags; } @@ -261,8 +250,7 @@ public PetUsingAllOf status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -315,7 +303,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java index bf6927f72ef6..f2023e94de75 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PetWithRequiredTags.java @@ -53,31 +53,27 @@ * PetWithRequiredTags */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PetWithRequiredTags { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nonnull - private List tags = new ArrayList<>(); + @javax.annotation.Nonnull private List tags = new ArrayList<>(); /** * pet status in the store @@ -132,11 +128,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti StatusEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public PetWithRequiredTags() { } @@ -150,8 +144,7 @@ public PetWithRequiredTags id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -169,8 +162,7 @@ public PetWithRequiredTags category(@javax.annotation.Nullable Category category * Get category * @return category */ - @javax.annotation.Nullable - public Category getCategory() { + @javax.annotation.Nullable public Category getCategory() { return category; } @@ -188,8 +180,7 @@ public PetWithRequiredTags name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -215,8 +206,7 @@ public PetWithRequiredTags addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - public List getPhotoUrls() { + @javax.annotation.Nonnull public List getPhotoUrls() { return photoUrls; } @@ -242,8 +232,7 @@ public PetWithRequiredTags addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nonnull - public List getTags() { + @javax.annotation.Nonnull public List getTags() { return tags; } @@ -261,8 +250,7 @@ public PetWithRequiredTags status(@javax.annotation.Nullable StatusEnum status) * pet status in the store * @return status */ - @javax.annotation.Nullable - public StatusEnum getStatus() { + @javax.annotation.Nullable public StatusEnum getStatus() { return status; } @@ -315,7 +303,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pig.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pig.java index 2b7f8a274a5a..7c76a388a4c7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pig.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pig.java @@ -60,6 +60,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pig extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Pig.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java index 4496c78d8f26..d79cc4e30976 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/PropertyNameCollision.java @@ -49,21 +49,19 @@ * PropertyNameCollision */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class PropertyNameCollision { public static final String SERIALIZED_NAME_UNDERSCORE_TYPE = "_type"; @SerializedName(SERIALIZED_NAME_UNDERSCORE_TYPE) - @javax.annotation.Nullable - private String underscoreType; + @javax.annotation.Nullable private String underscoreType; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_TYPE_WITH_UNDERSCORE = "type_"; @SerializedName(SERIALIZED_NAME_TYPE_WITH_UNDERSCORE) - @javax.annotation.Nullable - private String typeWithUnderscore; + @javax.annotation.Nullable private String typeWithUnderscore; public PropertyNameCollision() { } @@ -77,8 +75,7 @@ public PropertyNameCollision underscoreType(@javax.annotation.Nullable String un * Get underscoreType * @return underscoreType */ - @javax.annotation.Nullable - public String getUnderscoreType() { + @javax.annotation.Nullable public String getUnderscoreType() { return underscoreType; } @@ -96,8 +93,7 @@ public PropertyNameCollision type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - public String getType() { + @javax.annotation.Nullable public String getType() { return type; } @@ -115,8 +111,7 @@ public PropertyNameCollision typeWithUnderscore(@javax.annotation.Nullable Strin * Get typeWithUnderscore * @return typeWithUnderscore */ - @javax.annotation.Nullable - public String getTypeWithUnderscore() { + @javax.annotation.Nullable public String getTypeWithUnderscore() { return typeWithUnderscore; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Quadrilateral.java index 2b7d1f8135eb..c9457f7ce3d4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Quadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Quadrilateral.java @@ -60,6 +60,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Quadrilateral extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Quadrilateral.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index d22dea43eec7..c21ba1eefa3f 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -49,11 +49,11 @@ * QuadrilateralInterface */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class QuadrilateralInterface { public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public QuadrilateralInterface() { } @@ -67,8 +67,7 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - public String getQuadrilateralType() { + @javax.annotation.Nonnull public String getQuadrilateralType() { return quadrilateralType; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 7cd589a822ee..b491e5176beb 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -49,16 +49,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -74,8 +73,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - public String getBar() { + @javax.annotation.Nullable public String getBar() { return bar; } @@ -90,8 +88,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - public String getBaz() { + @javax.annotation.Nullable public String getBaz() { return baz; } @@ -144,7 +141,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Scalar.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Scalar.java index 35b85ceb4459..0e6ad1255e5c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Scalar.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Scalar.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Scalar extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Scalar.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScalarAnyOf.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScalarAnyOf.java index a5714cd2f33b..198c650b6c84 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScalarAnyOf.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScalarAnyOf.java @@ -52,6 +52,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ScalarAnyOf extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ScalarAnyOf.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index ffa101f26d5c..10262d05bc2a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -49,16 +49,15 @@ * ScaleneTriangle */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ScaleneTriangle { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public ScaleneTriangle() { } @@ -72,8 +71,7 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -91,8 +89,7 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - public String getTriangleType() { + @javax.annotation.Nonnull public String getTriangleType() { return triangleType; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java index 7b90e17c57cb..9b5a72518093 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java @@ -60,6 +60,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Shape extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Shape.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java index 749c94428e4a..eb649f0342a8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -49,11 +49,11 @@ * ShapeInterface */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ShapeInterface { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public ShapeInterface() { } @@ -67,8 +67,7 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 70d3e9278186..0ac74424d47b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -60,6 +60,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ShapeOrNull extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ShapeOrNull.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index dc3ce5d8241f..d3abef5d6249 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -49,16 +49,15 @@ * SimpleQuadrilateral */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SimpleQuadrilateral { public static final String SERIALIZED_NAME_SHAPE_TYPE = "shapeType"; @SerializedName(SERIALIZED_NAME_SHAPE_TYPE) - @javax.annotation.Nonnull - private String shapeType; + @javax.annotation.Nonnull private String shapeType; public static final String SERIALIZED_NAME_QUADRILATERAL_TYPE = "quadrilateralType"; @SerializedName(SERIALIZED_NAME_QUADRILATERAL_TYPE) - @javax.annotation.Nonnull - private String quadrilateralType; + @javax.annotation.Nonnull private String quadrilateralType; public SimpleQuadrilateral() { } @@ -72,8 +71,7 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * Get shapeType * @return shapeType */ - @javax.annotation.Nonnull - public String getShapeType() { + @javax.annotation.Nonnull public String getShapeType() { return shapeType; } @@ -91,8 +89,7 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * Get quadrilateralType * @return quadrilateralType */ - @javax.annotation.Nonnull - public String getQuadrilateralType() { + @javax.annotation.Nonnull public String getQuadrilateralType() { return quadrilateralType; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 4470a5d725b8..a7965c992cb0 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -49,16 +49,15 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public static final String SERIALIZED_NAME_SPECIAL_MODEL_NAME = "_special_model.name_"; @SerializedName(SERIALIZED_NAME_SPECIAL_MODEL_NAME) - @javax.annotation.Nullable - private String specialModelName; + @javax.annotation.Nullable private String specialModelName; public SpecialModelName() { } @@ -72,8 +71,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - public Long get$SpecialPropertyName() { + @javax.annotation.Nullable public Long get$SpecialPropertyName() { return $specialPropertyName; } @@ -91,8 +89,7 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * Get specialModelName * @return specialModelName */ - @javax.annotation.Nullable - public String getSpecialModelName() { + @javax.annotation.Nullable public String getSpecialModelName() { return specialModelName; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index 9f73911be665..a98d7c019910 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -49,16 +49,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -72,8 +71,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -91,8 +89,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - public String getName() { + @javax.annotation.Nullable public String getName() { return name; } @@ -145,7 +142,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index f48d068d6d31..5d4dc66a7dfe 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -49,11 +49,11 @@ * TestInlineFreeformAdditionalPropertiesRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest { public static final String SERIALIZED_NAME_SOME_PROPERTY = "someProperty"; @SerializedName(SERIALIZED_NAME_SOME_PROPERTY) - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { } @@ -67,8 +67,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - public String getSomeProperty() { + @javax.annotation.Nullable public String getSomeProperty() { return someProperty; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Triangle.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Triangle.java index 8ec05c5da8d4..e6c3024871a7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Triangle.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Triangle.java @@ -61,6 +61,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Triangle extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Triangle.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java index eee6e0dbe6e3..638805382ec3 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -49,11 +49,11 @@ * TriangleInterface */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TriangleInterface { public static final String SERIALIZED_NAME_TRIANGLE_TYPE = "triangleType"; @SerializedName(SERIALIZED_NAME_TRIANGLE_TYPE) - @javax.annotation.Nonnull - private String triangleType; + @javax.annotation.Nonnull private String triangleType; public TriangleInterface() { } @@ -67,8 +67,7 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * Get triangleType * @return triangleType */ - @javax.annotation.Nonnull - public String getTriangleType() { + @javax.annotation.Nonnull public String getTriangleType() { return triangleType; } @@ -121,7 +120,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 0015c82e90c1..63fa6cc1a79a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -50,66 +50,55 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public static final String SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps"; @SerializedName(SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS) - @javax.annotation.Nullable - private Object objectWithNoDeclaredProps; + @javax.annotation.Nullable private Object objectWithNoDeclaredProps; public static final String SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable"; @SerializedName(SERIALIZED_NAME_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) - @javax.annotation.Nullable - private Object objectWithNoDeclaredPropsNullable; + @javax.annotation.Nullable private Object objectWithNoDeclaredPropsNullable; public static final String SERIALIZED_NAME_ANY_TYPE_PROP = "anyTypeProp"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROP) - @javax.annotation.Nullable - private Object anyTypeProp = null; + @javax.annotation.Nullable private Object anyTypeProp = null; public static final String SERIALIZED_NAME_ANY_TYPE_PROP_NULLABLE = "anyTypePropNullable"; @SerializedName(SERIALIZED_NAME_ANY_TYPE_PROP_NULLABLE) - @javax.annotation.Nullable - private Object anyTypePropNullable = null; + @javax.annotation.Nullable private Object anyTypePropNullable = null; public User() { } @@ -123,8 +112,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - public Long getId() { + @javax.annotation.Nullable public Long getId() { return id; } @@ -142,8 +130,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - public String getUsername() { + @javax.annotation.Nullable public String getUsername() { return username; } @@ -161,8 +148,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - public String getFirstName() { + @javax.annotation.Nullable public String getFirstName() { return firstName; } @@ -180,8 +166,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - public String getLastName() { + @javax.annotation.Nullable public String getLastName() { return lastName; } @@ -199,8 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - public String getEmail() { + @javax.annotation.Nullable public String getEmail() { return email; } @@ -218,8 +202,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - public String getPassword() { + @javax.annotation.Nullable public String getPassword() { return password; } @@ -237,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - public String getPhone() { + @javax.annotation.Nullable public String getPhone() { return phone; } @@ -256,8 +238,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - public Integer getUserStatus() { + @javax.annotation.Nullable public Integer getUserStatus() { return userStatus; } @@ -275,8 +256,7 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. * @return objectWithNoDeclaredProps */ - @javax.annotation.Nullable - public Object getObjectWithNoDeclaredProps() { + @javax.annotation.Nullable public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; } @@ -294,8 +274,7 @@ public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object * test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. * @return objectWithNoDeclaredPropsNullable */ - @javax.annotation.Nullable - public Object getObjectWithNoDeclaredPropsNullable() { + @javax.annotation.Nullable public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable; } @@ -313,8 +292,7 @@ public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) { * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 * @return anyTypeProp */ - @javax.annotation.Nullable - public Object getAnyTypeProp() { + @javax.annotation.Nullable public Object getAnyTypeProp() { return anyTypeProp; } @@ -332,8 +310,7 @@ public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNul * test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values. * @return anyTypePropNullable */ - @javax.annotation.Nullable - public Object getAnyTypePropNullable() { + @javax.annotation.Nullable public Object getAnyTypePropNullable() { return anyTypePropNullable; } @@ -386,7 +363,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Value.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Value.java index 557466216869..a2d7bc615c75 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Value.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Value.java @@ -53,6 +53,7 @@ import org.openapitools.client.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Value extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Value.class.getName()); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java index 98dadc424e95..ca2312ebbd5c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Variable.java @@ -50,16 +50,15 @@ * Value object */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Variable { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nonnull - private Value value; + @javax.annotation.Nonnull private Value value; public Variable() { } @@ -73,8 +72,7 @@ public Variable name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - public String getName() { + @javax.annotation.Nonnull public String getName() { return name; } @@ -92,8 +90,7 @@ public Variable value(@javax.annotation.Nonnull Value value) { * Get value * @return value */ - @javax.annotation.Nonnull - public Value getValue() { + @javax.annotation.Nonnull public Value getValue() { return value; } @@ -146,7 +143,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java index 109906d5a011..9caeed8d1eea 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Whale.java @@ -49,21 +49,19 @@ * Whale */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Whale { public static final String SERIALIZED_NAME_HAS_BALEEN = "hasBaleen"; @SerializedName(SERIALIZED_NAME_HAS_BALEEN) - @javax.annotation.Nullable - private Boolean hasBaleen; + @javax.annotation.Nullable private Boolean hasBaleen; public static final String SERIALIZED_NAME_HAS_TEETH = "hasTeeth"; @SerializedName(SERIALIZED_NAME_HAS_TEETH) - @javax.annotation.Nullable - private Boolean hasTeeth; + @javax.annotation.Nullable private Boolean hasTeeth; public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Whale() { } @@ -77,8 +75,7 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * Get hasBaleen * @return hasBaleen */ - @javax.annotation.Nullable - public Boolean getHasBaleen() { + @javax.annotation.Nullable public Boolean getHasBaleen() { return hasBaleen; } @@ -96,8 +93,7 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * Get hasTeeth * @return hasTeeth */ - @javax.annotation.Nullable - public Boolean getHasTeeth() { + @javax.annotation.Nullable public Boolean getHasTeeth() { return hasTeeth; } @@ -115,8 +111,7 @@ public Whale className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -169,7 +164,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java index f3dfb5aad2cb..20835136df94 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Zebra.java @@ -49,6 +49,7 @@ * Zebra */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Zebra { /** * Gets or Sets type @@ -103,16 +104,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti TypeEnum.fromValue(value); } } - public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private TypeEnum type; + @javax.annotation.Nullable private TypeEnum type; public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - private String className; + @javax.annotation.Nonnull private String className; public Zebra() { } @@ -126,8 +124,7 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - public TypeEnum getType() { + @javax.annotation.Nullable public TypeEnum getType() { return type; } @@ -145,8 +142,7 @@ public Zebra className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - public String getClassName() { + @javax.annotation.Nonnull public String getClassName() { return className; } @@ -199,7 +195,6 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 39248c921d2e..43eb29f5f698 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -35,10 +35,10 @@ AdditionalPropertiesAnyType.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -54,9 +54,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0aaeb44f7904..a5a4e7a7d1c6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -36,10 +36,10 @@ AdditionalPropertiesArray.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -55,9 +55,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 900b396ef85a..ff0802ff5d8a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -35,10 +35,10 @@ AdditionalPropertiesBoolean.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -54,9 +54,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f6b0dd80cf58..faaaf5156bb6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -47,50 +47,40 @@ AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3 }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -113,9 +103,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -147,9 +135,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -182,9 +168,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -216,9 +200,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -250,9 +232,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -320,9 +298,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -54,9 +54,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index abd01ad623d7..0a5ecdf31437 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -36,10 +36,10 @@ AdditionalPropertiesNumber.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -55,9 +55,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 6be4637ed188..d1b35c1921ba 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -35,10 +35,10 @@ AdditionalPropertiesObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -54,9 +54,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 74ceb8d006ad..35c10c087473 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -35,10 +35,10 @@ AdditionalPropertiesString.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -54,9 +54,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java index 24e8e93396ed..d5370c9114b2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java @@ -37,6 +37,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -50,12 +51,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -70,9 +69,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -97,9 +94,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 127a00e35732..fa09d75e4b0c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -37,10 +37,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -63,9 +63,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 757c7a12f59a..f4d78a94c7d4 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -37,10 +37,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -63,9 +63,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java index a8af5f2a6b0d..e9c6bd844af1 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -39,18 +39,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -73,9 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -107,9 +103,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -142,9 +136,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java index d6944e017570..fe06e1d0d6bd 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java @@ -37,6 +37,7 @@ BigCat.JSON_PROPERTY_KIND }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -82,10 +83,8 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_KIND = "kind"; - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -101,9 +100,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * Get kind * @return kind */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_KIND) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java index 1305b9c1852c..bc8b93f5a65a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -38,30 +38,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -76,9 +71,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -102,9 +95,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -128,9 +119,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -154,9 +143,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -180,9 +167,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -206,9 +191,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java index aa6610f6f6ca..a7fc109bea63 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java @@ -37,6 +37,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -48,8 +49,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -65,9 +65,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isDeclawed() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java index 4fb7afd7ccd4..4e29c52ce602 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -34,14 +34,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -56,9 +55,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -82,9 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java index a57c01068834..a88121d50a9e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -33,10 +33,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -51,9 +51,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java index 74b7ac8cac0a..a235cc9fac05 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java @@ -33,10 +33,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -51,9 +51,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java index 33045cfca433..0d6dd07af26e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java @@ -37,6 +37,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -45,8 +46,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -62,9 +62,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index 01f0cfcf0ebc..ac1f59da256e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -37,6 +37,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -72,10 +73,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -111,10 +110,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -129,9 +126,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -163,9 +158,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index 6fd258985d5f..cf11b3cee942 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -39,6 +39,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -76,10 +77,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -117,10 +116,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -156,10 +153,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -195,14 +190,11 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -217,9 +209,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -243,9 +233,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -270,9 +258,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -296,9 +282,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -322,9 +306,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index e6f15d47f558..ba6568427340 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -38,14 +38,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List<@Valid ModelFile> files = new ArrayList<>(); + @javax.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -60,9 +59,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -95,9 +92,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java index 3abea3128f96..4f0f6e39ec07 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -52,62 +52,49 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -124,9 +111,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @Min(10) @Max(100) - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @Min(10) @Max(100) @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -152,9 +137,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @Min(20) @Max(200) - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @Min(20) @Max(200) @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -178,9 +161,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -206,11 +187,9 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(JSON_PROPERTY_NUMBER) + @DecimalMin("32.1") @DecimalMax("543.2") @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -236,9 +215,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,9 +241,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -290,9 +265,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @Pattern(regexp="/[a-z]/i") - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -316,9 +289,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -343,9 +314,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -370,10 +339,8 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -398,9 +365,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -425,9 +390,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,10 +415,8 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @NotNull - @Size(min=10,max=64) - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @NotNull + @Size(min=10,max=64) @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -479,9 +440,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 49078b747889..bbd3242cc33d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -35,14 +35,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -63,9 +62,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,9 +75,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java index a76e9693b269..950467f4ced2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -38,10 +38,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -77,18 +77,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -111,9 +107,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -146,9 +140,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -180,9 +172,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -214,9 +204,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 95418f676770..f9bb77dbb906 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -40,18 +40,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -66,9 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -93,9 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,9 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java index 879df59546ad..c528f65634f4 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -57,9 +56,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -83,9 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 886fa70c0c19..933281b68619 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -36,18 +36,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -62,9 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -88,9 +84,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -114,9 +108,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java index aca3044c7b86..e041c922d009 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -34,10 +34,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -52,9 +52,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java index 4328a5cb8383..8fcdcb370b63 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java @@ -34,10 +34,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -52,9 +52,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java index d55b6c92ba09..071494c78e74 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -34,10 +34,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -52,9 +52,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java index e0f72a2670e2..1ea7692ec26f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java @@ -36,22 +36,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -78,9 +75,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -99,9 +94,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -120,9 +113,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -140,9 +131,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java index 02a77010ae4e..51d4a6dd7402 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -34,10 +34,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -52,9 +52,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java index 00afa5dcb2fa..bb095107e748 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -39,22 +39,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -92,14 +89,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -114,9 +108,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -140,9 +132,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -166,9 +156,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -192,9 +180,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -219,9 +205,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -245,9 +229,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java index 468b4eddb3cb..47b5ac848918 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -36,18 +36,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -62,9 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -89,9 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -115,9 +109,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isMyBoolean() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java index dfaed337a310..2013fff34bb7 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -46,26 +46,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List<@Valid Tag> tags = new ArrayList<>(); + @javax.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** * pet status in the store @@ -103,10 +99,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -121,9 +115,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -147,9 +139,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -174,9 +164,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -209,9 +197,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -245,9 +231,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -272,9 +256,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 0efdf4e21551..6fe8d61afa61 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -34,14 +34,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -60,9 +59,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,9 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 840b67b99e19..a41ece4ea738 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -34,10 +34,10 @@ }) @JsonTypeName("$special[model.name]") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -52,9 +52,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java index 8b927ba4e28e..f9d204ff7f8e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -34,14 +34,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -56,9 +55,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -82,9 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5573e2a35c32..03220f979c09 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -41,26 +41,22 @@ TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -75,9 +71,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -102,10 +96,8 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -130,9 +122,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -157,9 +147,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -192,9 +180,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 59748c908232..3f63db377f21 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -42,30 +42,25 @@ TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -80,9 +75,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -107,10 +100,8 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -135,9 +126,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -162,9 +151,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -189,9 +176,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -224,9 +209,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java index 97c4b4a2fc4d..422cdbbd4933 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java @@ -40,38 +40,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -86,9 +79,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -112,9 +103,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -138,9 +127,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -164,9 +151,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -190,9 +175,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -216,9 +199,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -242,9 +223,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -268,9 +247,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java index b3bcc4c5f847..5e91941ae315 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java @@ -65,122 +65,94 @@ XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -195,9 +167,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -221,9 +191,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -248,9 +216,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -274,9 +240,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isAttributeBoolean() { @@ -308,9 +272,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -334,9 +296,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -360,9 +320,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -387,9 +345,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -413,9 +369,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNameBoolean() { @@ -447,9 +401,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -481,9 +433,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -507,9 +457,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -533,9 +481,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -560,9 +506,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -586,9 +530,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixBoolean() { @@ -620,9 +562,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -654,9 +594,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -680,9 +618,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -706,9 +642,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -733,9 +667,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -759,9 +691,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNamespaceBoolean() { @@ -793,9 +723,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -827,9 +755,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -853,9 +779,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -879,9 +803,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -906,9 +828,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -932,9 +852,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixNsBoolean() { @@ -966,9 +884,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -1000,9 +916,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 37b6a39f4609..7dba6b61779e 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -31,11 +31,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -52,8 +52,6 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 84d8818e3b29..1c62ffcb5bc0 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -32,11 +32,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -53,8 +53,6 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index e2f9e5a8ecc1..364572b1b92e 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -31,11 +31,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -52,8 +52,6 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 1cc6ca8a441a..8854a04c1213 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,61 +33,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -111,8 +101,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - - public Map getMapString() { return mapString; } @@ -140,9 +128,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public Map getMapNumber() { return mapNumber; @@ -172,8 +158,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - - public Map getMapInteger() { return mapInteger; } @@ -202,8 +186,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - - public Map getMapBoolean() { return mapBoolean; } @@ -231,9 +213,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; @@ -262,9 +242,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public Map> getMapArrayAnytype() { return mapArrayAnytype; @@ -293,9 +271,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; @@ -324,9 +300,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; @@ -348,8 +322,6 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - - public Object getAnytype1() { return anytype1; } @@ -370,8 +342,6 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - - public Object getAnytype2() { return anytype2; } @@ -392,8 +362,6 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - - public Object getAnytype3() { return anytype3; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 5c4c3b03704e..d306be307e36 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -31,11 +31,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -52,8 +52,6 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 577cb1a09dce..96dedcc770a6 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -32,11 +32,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -53,8 +53,6 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index ed885439f699..764e57ee3f10 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -31,11 +31,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -52,8 +52,6 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 2a117baa7b97..ea156d1550dc 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -31,11 +31,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -52,8 +52,6 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java index 0ed8747d60da..97c8b14499c9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java @@ -29,16 +29,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -53,9 +52,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public String getClassName() { return className; @@ -77,8 +74,6 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - - public String getColor() { return color; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e46afca9c35a..76ec0f214753 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -33,11 +33,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,9 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List> getArrayArrayNumber() { return arrayArrayNumber; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 68b9ca6b5466..9e2e7c9261a4 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -33,11 +33,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,9 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List getArrayNumber() { return arrayNumber; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java index ac359c0a0da2..e90b933e0513 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -33,21 +33,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -71,8 +69,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - - public List getArrayOfString() { return arrayOfString; } @@ -100,9 +96,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; @@ -131,9 +125,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List> getArrayArrayOfModel() { return arrayArrayOfModel; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java index fdc798846bb3..bb75908bffff 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java @@ -30,6 +30,7 @@ * BigCat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BigCat extends Cat { /** * Gets or Sets kind @@ -81,11 +82,9 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -102,8 +101,6 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - - public KindEnum getKind() { return kind; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java index 1a207cec6134..29f806090123 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,36 +29,31 @@ * Capitalization */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -74,8 +69,6 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - - public String getSmallCamel() { return smallCamel; } @@ -96,8 +89,6 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - - public String getCapitalCamel() { return capitalCamel; } @@ -118,8 +109,6 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - - public String getSmallSnake() { return smallSnake; } @@ -140,8 +129,6 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - - public String getCapitalSnake() { return capitalSnake; } @@ -162,8 +149,6 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -184,8 +169,6 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java index 1edc97a7c5ad..1f1caee6eced 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java @@ -30,11 +30,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -51,8 +51,6 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - - public Boolean isDeclawed() { return declawed; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java index 84f0e1a3aedf..f65225b06e6f 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java @@ -29,16 +29,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -54,8 +53,6 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - - public Long getId() { return id; } @@ -75,9 +72,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public String getName() { return name; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java index ca882ededc3b..9f5186ff602b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java @@ -29,11 +29,11 @@ * Model for testing model with \"_class\" property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -49,8 +49,6 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java index 76bd3f849c53..c120292056cb 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java @@ -29,11 +29,11 @@ * Client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -49,8 +49,6 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - - public String getClient() { return client; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java index 2c927a13e68c..5d2001c97c0d 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java @@ -30,11 +30,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -51,8 +51,6 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - - public String getBreed() { return breed; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java index 64aa1b2e169e..6e99f0383c07 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -32,6 +32,7 @@ * EnumArrays */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -79,11 +80,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -131,11 +130,9 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -151,8 +148,6 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -181,8 +176,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java index 73f12308c807..719168d69ac1 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java @@ -30,6 +30,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -79,11 +80,9 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -133,11 +132,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -185,11 +182,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -237,16 +232,13 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -262,8 +254,6 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - - public EnumStringEnum getEnumString() { return enumString; } @@ -283,9 +273,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; @@ -307,8 +295,6 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -329,8 +315,6 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -350,9 +334,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public OuterEnum getOuterEnum() { return outerEnum; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d73cc3b08dfd..d819edee2883 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -33,16 +33,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List<@Valid ModelFile> files = new ArrayList<>(); + @javax.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,9 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public ModelFile getFile() { return _file; @@ -88,9 +85,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List<@Valid ModelFile> getFiles() { return files; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java index 0232813a8e2a..bc1018eb45b9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,76 +34,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -120,9 +107,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @Min(10) @Max(100) - + @javax.annotation.Nullable @Min(10) @Max(100) public Integer getInteger() { return integer; } @@ -144,9 +129,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @Min(20) @Max(200) - + @javax.annotation.Nullable @Min(20) @Max(200) public Integer getInt32() { return int32; } @@ -167,8 +150,6 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - - public Long getInt64() { return int64; } @@ -190,11 +171,9 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") - public BigDecimal getNumber() { return number; } @@ -216,9 +195,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @DecimalMin("54.3") @DecimalMax("987.6") - + @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { return _float; } @@ -240,9 +217,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @DecimalMin("67.8") @DecimalMax("123.4") - + @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { return _double; } @@ -262,9 +237,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @Pattern(regexp="/[a-z]/i") - + @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") public String getString() { return string; } @@ -284,9 +257,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public byte[] getByte() { return _byte; @@ -307,9 +278,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public File getBinary() { return binary; @@ -330,11 +299,9 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - public LocalDate getDate() { return date; } @@ -354,9 +321,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public OffsetDateTime getDateTime() { return dateTime; @@ -377,9 +342,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public UUID getUuid() { return uuid; @@ -400,10 +363,8 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Size(min=10,max=64) - public String getPassword() { return password; } @@ -423,9 +384,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getBigDecimal() { return bigDecimal; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 0279aca7c876..f1d536dacd5c 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,16 +29,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,6 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - - public String getBar() { return bar; } @@ -73,8 +70,6 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - - public String getFoo() { return foo; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java index 24f6549924b4..18c7c3114e7a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java @@ -31,11 +31,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -83,21 +83,17 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -120,9 +116,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public Map> getMapMapOfString() { return mapMapOfString; @@ -152,8 +146,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -182,8 +174,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - - public Map getDirectMap() { return directMap; } @@ -212,8 +202,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b0587289c9db..17885fc5a21f 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -34,21 +34,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,9 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public UUID getUuid() { return uuid; @@ -86,9 +82,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public OffsetDateTime getDateTime() { return dateTime; @@ -117,9 +111,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public Map getMap() { return map; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java index 57b82e3e59f8..7db37f1b8955 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java @@ -29,16 +29,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,6 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - - public Integer getName() { return name; } @@ -76,8 +73,6 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 041eebf82025..0e8e0ac3db3e 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,21 +29,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,6 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - - public Integer getCode() { return code; } @@ -81,8 +77,6 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - - public String getType() { return type; } @@ -103,8 +97,6 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - - public String getMessage() { return message; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java index b3caf101d911..a8070d65f7b8 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelFile.java @@ -29,11 +29,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,6 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - - public String getSourceURI() { return sourceURI; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java index bc447936f226..bf129ae98405 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelList.java @@ -29,11 +29,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,6 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - - public String get123list() { return _123list; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java index 5ef3a698141c..a3c7002e07f0 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -29,11 +29,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,6 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - - public Integer getReturn() { return _return; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java index 114a9245e21a..5e0c4979ad71 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java @@ -29,26 +29,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,9 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Integer getName() { return name; @@ -93,8 +88,6 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - - public Integer getSnakeCase() { return snakeCase; } @@ -112,8 +105,6 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - - public String getProperty() { return property; } @@ -128,8 +119,6 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - - public Integer get123number() { return _123number; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java index 961e7797c771..33f3390c820d 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,11 +30,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,9 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getJustNumber() { return justNumber; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java index 02e8cf1a431a..b681000b41cd 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java @@ -30,26 +30,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -99,16 +96,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -124,8 +118,6 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - - public Long getId() { return id; } @@ -146,8 +138,6 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - - public Long getPetId() { return petId; } @@ -168,8 +158,6 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - - public Integer getQuantity() { return quantity; } @@ -189,9 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public OffsetDateTime getShipDate() { return shipDate; @@ -213,8 +199,6 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - - public StatusEnum getStatus() { return status; } @@ -235,8 +219,6 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - - public Boolean isComplete() { return complete; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java index 13e101cd8395..d5a193477452 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,21 +30,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,9 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getMyNumber() { return myNumber; @@ -83,8 +79,6 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - - public String getMyString() { return myString; } @@ -105,8 +99,6 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - - public Boolean isMyBoolean() { return myBoolean; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java index fc096a09f4b4..c023984742f9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java @@ -36,31 +36,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List<@Valid Tag> tags = new ArrayList<>(); + @javax.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** * pet status in the store @@ -110,11 +106,9 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -130,8 +124,6 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - - public Long getId() { return id; } @@ -151,9 +143,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public Category getCategory() { return category; @@ -174,9 +164,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public String getName() { return name; @@ -205,9 +193,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Set getPhotoUrls() { return photoUrls; @@ -236,9 +222,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public List<@Valid Tag> getTags() { return tags; @@ -260,8 +244,6 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - - public StatusEnum getStatus() { return status; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 3cb220d55ad5..0574e03af154 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,16 +29,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -58,8 +57,6 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - - public String getBar() { return bar; } @@ -77,8 +74,6 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - - public String getBaz() { return baz; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java index aebe355c58cf..2efd757877df 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,11 +29,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,6 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java index 24c72201a864..d60d550a2706 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java @@ -29,16 +29,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -54,8 +53,6 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - - public Long getId() { return id; } @@ -76,8 +73,6 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - - public String getName() { return name; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index aea18b10cbd6..45cf2c3cdf35 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -33,31 +33,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -72,9 +68,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public String getStringItem() { return stringItem; @@ -95,11 +89,9 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - public BigDecimal getNumberItem() { return numberItem; } @@ -119,9 +111,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Integer getIntegerItem() { return integerItem; @@ -142,9 +132,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Boolean isBoolItem() { return boolItem; @@ -173,9 +161,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public List getArrayItem() { return arrayItem; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java index d4b4654cd38c..2ac218aaeda6 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -33,36 +33,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -77,9 +72,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public String getStringItem() { return stringItem; @@ -100,11 +93,9 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @NotNull + @javax.annotation.Nonnull @NotNull @Valid - public BigDecimal getNumberItem() { return numberItem; } @@ -124,9 +115,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Float getFloatItem() { return floatItem; @@ -147,9 +136,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Integer getIntegerItem() { return integerItem; @@ -170,9 +157,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public Boolean isBoolItem() { return boolItem; @@ -201,9 +186,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @NotNull - + @javax.annotation.Nonnull @NotNull public List getArrayItem() { return arrayItem; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java index 18ab177e9df2..8c2d46f3d47a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java @@ -29,46 +29,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -84,8 +77,6 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - - public Long getId() { return id; } @@ -106,8 +97,6 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - - public String getUsername() { return username; } @@ -128,8 +117,6 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - - public String getFirstName() { return firstName; } @@ -150,8 +137,6 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - - public String getLastName() { return lastName; } @@ -172,8 +157,6 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - - public String getEmail() { return email; } @@ -194,8 +177,6 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - - public String getPassword() { return password; } @@ -216,8 +197,6 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - - public String getPhone() { return phone; } @@ -238,8 +217,6 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - - public Integer getUserStatus() { return userStatus; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java index 36b195673fe5..6efebbab5dfa 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/XmlItem.java @@ -33,151 +33,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -193,8 +165,6 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - - public String getAttributeString() { return attributeString; } @@ -214,9 +184,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getAttributeNumber() { return attributeNumber; @@ -238,8 +206,6 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - - public Integer getAttributeInteger() { return attributeInteger; } @@ -260,8 +226,6 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - - public Boolean isAttributeBoolean() { return attributeBoolean; } @@ -290,8 +254,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - - public List getWrappedArray() { return wrappedArray; } @@ -312,8 +274,6 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - - public String getNameString() { return nameString; } @@ -333,9 +293,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getNameNumber() { return nameNumber; @@ -357,8 +315,6 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - - public Integer getNameInteger() { return nameInteger; } @@ -379,8 +335,6 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - - public Boolean isNameBoolean() { return nameBoolean; } @@ -409,8 +363,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - - public List getNameArray() { return nameArray; } @@ -439,8 +391,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - - public List getNameWrappedArray() { return nameWrappedArray; } @@ -461,8 +411,6 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - - public String getPrefixString() { return prefixString; } @@ -482,9 +430,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getPrefixNumber() { return prefixNumber; @@ -506,8 +452,6 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - - public Integer getPrefixInteger() { return prefixInteger; } @@ -528,8 +472,6 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - - public Boolean isPrefixBoolean() { return prefixBoolean; } @@ -558,8 +500,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - - public List getPrefixArray() { return prefixArray; } @@ -588,8 +528,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -610,8 +548,6 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - - public String getNamespaceString() { return namespaceString; } @@ -631,9 +567,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getNamespaceNumber() { return namespaceNumber; @@ -655,8 +589,6 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -677,8 +609,6 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - - public Boolean isNamespaceBoolean() { return namespaceBoolean; } @@ -707,8 +637,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - - public List getNamespaceArray() { return namespaceArray; } @@ -737,8 +665,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -759,8 +685,6 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - - public String getPrefixNsString() { return prefixNsString; } @@ -780,9 +704,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - @Valid - + @javax.annotation.Nullable @Valid public BigDecimal getPrefixNsNumber() { return prefixNsNumber; @@ -804,8 +726,6 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -826,8 +746,6 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - - public Boolean isPrefixNsBoolean() { return prefixNsBoolean; } @@ -856,8 +774,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - - public List getPrefixNsArray() { return prefixNsArray; } @@ -886,8 +802,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index f071fdbca84b..f34b77e12b26 100644 --- a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -39,26 +39,22 @@ ByteArrayObject.JSON_PROPERTY_INT_FIELD }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ByteArrayObject { public static final String JSON_PROPERTY_NULLABLE_ARRAY = "nullableArray"; - @jakarta.annotation.Nullable - private JsonNullable nullableArray = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableArray = JsonNullable.undefined(); public static final String JSON_PROPERTY_NORMAL_ARRAY = "normalArray"; - @jakarta.annotation.Nullable - private byte[] normalArray; + @jakarta.annotation.Nullable private byte[] normalArray; public static final String JSON_PROPERTY_NULLABLE_STRING = "nullableString"; - @jakarta.annotation.Nullable - private JsonNullable nullableString = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableString = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_FIELD = "stringField"; - @jakarta.annotation.Nullable - private String stringField; + @jakarta.annotation.Nullable private String stringField; public static final String JSON_PROPERTY_INT_FIELD = "intField"; - @jakarta.annotation.Nullable - private BigDecimal intField; + @jakarta.annotation.Nullable private BigDecimal intField; public ByteArrayObject() { } @@ -73,8 +69,7 @@ public ByteArrayObject nullableArray(@jakarta.annotation.Nullable byte[] nullabl * byte array. * @return nullableArray */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public byte[] getNullableArray() { return nullableArray.orElse(null); @@ -82,7 +77,6 @@ public byte[] getNullableArray() { @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableArray_JsonNullable() { return nullableArray; } @@ -106,8 +100,7 @@ public ByteArrayObject normalArray(@jakarta.annotation.Nullable byte[] normalArr * byte array. * @return normalArray */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getNormalArray() { @@ -131,8 +124,7 @@ public ByteArrayObject nullableString(@jakarta.annotation.Nullable String nullab * Get nullableString * @return nullableString */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableString() { return nullableString.orElse(null); @@ -140,7 +132,6 @@ public String getNullableString() { @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableString_JsonNullable() { return nullableString; } @@ -164,8 +155,7 @@ public ByteArrayObject stringField(@jakarta.annotation.Nullable String stringFie * Get stringField * @return stringField */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStringField() { @@ -189,8 +179,7 @@ public ByteArrayObject intField(@jakarta.annotation.Nullable BigDecimal intField * Get intField * @return intField */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getIntField() { diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 4c1fb1ab1b6c..9fe481d0d52c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -34,14 +34,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @jakarta.annotation.Nullable - private Map mapProperty; + @jakarta.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @jakarta.annotation.Nullable - private Map> mapOfMapProperty; + @jakarta.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } @@ -64,8 +63,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,8 +96,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> arrayArrayNumber; + @jakarta.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 9d09a152b217..404d1c2cac56 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -35,10 +35,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @jakarta.annotation.Nullable - private List arrayNumber; + @jakarta.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index b5ae4339224c..4e0915a74b7b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -37,18 +37,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @jakarta.annotation.Nullable - private List arrayOfString; + @jakarta.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @jakarta.annotation.Nullable - private List> arrayArrayOfInteger; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @jakarta.annotation.Nullable - private List> arrayArrayOfModel; + @jakarta.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } @@ -71,8 +69,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +102,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,8 +135,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index 991900b765be..be6d700fba06 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -36,30 +36,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @jakarta.annotation.Nullable - private String smallCamel; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @jakarta.annotation.Nullable - private String capitalCamel; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @jakarta.annotation.Nullable - private String smallSnake; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @jakarta.annotation.Nullable - private String capitalSnake; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @jakarta.annotation.Nullable - private String scAETHFlowPoints; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @jakarta.annotation.Nullable - private String ATT_NAME; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -74,8 +69,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * Get smallCamel * @return smallCamel */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,8 +94,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * Get capitalCamel * @return capitalCamel */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,8 +119,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * Get smallSnake * @return smallSnake */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +144,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * Get capitalSnake * @return capitalSnake */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,8 +169,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,8 +194,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index b2e630bd70fb..cad7c6c245cc 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -35,6 +35,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -43,8 +44,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @jakarta.annotation.Nullable - private Boolean declawed; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { @@ -60,8 +60,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index 2b89e433892d..caef9b9d868b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -32,14 +32,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name = "default-name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -54,8 +53,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +78,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 95fc52d321c7..8d87decbea36 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -36,6 +36,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -44,8 +45,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @jakarta.annotation.Nullable - private String otherProperty; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -61,8 +61,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * Get otherProperty * @return otherProperty */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 35a270b6894d..5664bf991ed3 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,10 +32,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -50,8 +50,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index cdfb6eefa0fe..687a39698166 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -31,10 +31,10 @@ Client.JSON_PROPERTY_CLIENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @jakarta.annotation.Nullable - private String client; + @jakarta.annotation.Nullable private String client; public Client() { } @@ -49,8 +49,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * Get client * @return client */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index bdebab9d14e8..0243162affdb 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -33,10 +33,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } @@ -51,8 +51,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index 9e2dd021ac6f..5c4986ac0a68 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -35,6 +35,7 @@ Dog.JSON_PROPERTY_BREED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -43,8 +44,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @jakarta.annotation.Nullable - private String breed; + @jakarta.annotation.Nullable private String breed; public Dog() { @@ -60,8 +60,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * Get breed * @return breed */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index c3d617bc111b..6abcbc8c789b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -35,6 +35,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -70,10 +71,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @jakarta.annotation.Nullable - private JustSymbolEnum justSymbol; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -109,10 +108,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @jakarta.annotation.Nullable - private List arrayEnum; + @jakarta.annotation.Nullable private List arrayEnum; public EnumArrays() { } @@ -127,8 +124,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * Get justSymbol * @return justSymbol */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +157,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index d565f82e5677..ad84ce7f4d69 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -47,6 +47,7 @@ }) @JsonTypeName("Enum_Test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -84,10 +85,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @jakarta.annotation.Nullable - private EnumStringEnum enumString; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -125,10 +124,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @jakarta.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -164,10 +161,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @jakarta.annotation.Nullable - private EnumIntegerEnum enumInteger; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -203,26 +198,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @jakarta.annotation.Nullable - private EnumNumberEnum enumNumber; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @jakarta.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @jakarta.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -237,8 +226,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * Get enumString * @return enumString */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,8 +251,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * Get enumStringRequired * @return enumStringRequired */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -289,8 +276,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * Get enumInteger * @return enumInteger */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,8 +301,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * Get enumNumber * @return enumNumber */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,8 +326,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public OuterEnum getOuterEnum() { @@ -351,7 +335,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -375,8 +358,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * Get outerEnumInteger * @return outerEnumInteger */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,8 +383,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,8 +408,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 90903a4d61b5..2d84bcbb2df4 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -36,14 +36,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @jakarta.annotation.Nullable - private BigDecimal someId; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @jakarta.annotation.Nullable - private Map someMap; + @jakarta.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } @@ -58,8 +57,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * Get someId * @return someId */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +90,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index f91f7d58a1b1..007dc3c98b9d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -36,14 +36,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @jakarta.annotation.Nullable - private ModelFile _file; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @jakarta.annotation.Nullable - private List files; + @jakarta.annotation.Nullable private List files; public FileSchemaTestClass() { } @@ -58,8 +57,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +90,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index 863ac0111b52..ce25f844f1a2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -31,10 +31,10 @@ Foo.JSON_PROPERTY_BAR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -49,8 +49,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * Get bar * @return bar */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 8aa4e8aa359b..533783c9c142 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -33,10 +33,10 @@ }) @JsonTypeName("_foo_get_default_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private Foo string; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -51,8 +51,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index a085258040bd..bb1150f9f47a 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -52,70 +52,55 @@ }) @JsonTypeName("format_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @jakarta.annotation.Nullable - private Integer integer; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @jakarta.annotation.Nullable - private Integer int32; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @jakarta.annotation.Nullable - private Long int64; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nonnull - private BigDecimal number; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @jakarta.annotation.Nullable - private BigDecimal decimal; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private String string; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @jakarta.annotation.Nonnull - private byte[] _byte; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @jakarta.annotation.Nullable - private File binary; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nonnull - private LocalDate date; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nonnull - private String password; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @jakarta.annotation.Nullable - private String patternWithDigits; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @jakarta.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -132,8 +117,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,8 +144,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,8 +169,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +196,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -242,8 +223,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,8 +250,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,8 +275,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,8 +300,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,8 +325,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -374,8 +350,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * Get binary * @return binary */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,8 +375,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -426,8 +400,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,8 +425,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,8 +450,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * Get password * @return password */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -504,8 +475,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,8 +500,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index db5d99ca5dde..9c50f457b379 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -33,14 +33,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @jakarta.annotation.Nullable - private String foo; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -61,8 +60,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +74,7 @@ public String getBar() { * Get foo * @return foo */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 571d9a8b3a8e..e52f4f7e89dc 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,10 +36,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @jakarta.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -54,8 +54,7 @@ public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nul * Get nullableMessage * @return nullableMessage */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getNullableMessage() { @@ -64,7 +63,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index 554a7e109012..e270ad968f65 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -36,10 +36,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @jakarta.annotation.Nullable - private Map> mapMapOfString; + @jakarta.annotation.Nullable private Map> mapMapOfString; /** * Gets or Sets inner @@ -75,18 +75,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @jakarta.annotation.Nullable - private Map mapOfEnumString; + @jakarta.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @jakarta.annotation.Nullable - private Map directMap; + @jakarta.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @jakarta.annotation.Nullable - private Map indirectMap; + @jakarta.annotation.Nullable private Map indirectMap; public MapTest() { } @@ -109,8 +105,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +138,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,8 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,8 +204,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 89b492db8af8..8f1e55ada8cb 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -38,18 +38,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @jakarta.annotation.Nullable - private Map map; + @jakarta.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -64,8 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,8 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,8 +120,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index a6fb8e380983..5c3ecd68d9a1 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,14 +34,13 @@ }) @JsonTypeName("200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private Integer name; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -56,8 +55,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,8 +80,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6d36a8519b95..bdcc61110ead 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -34,18 +34,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -60,8 +58,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,8 +83,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +108,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index 206203c91c7c..6d137cb6b4f2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,10 +33,10 @@ }) @JsonTypeName("File") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @jakarta.annotation.Nullable - private String sourceURI; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -51,8 +51,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index 2c5493f624e7..5de75f2aead4 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -32,10 +32,10 @@ }) @JsonTypeName("List") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @jakarta.annotation.Nullable - private String _123list; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } @@ -50,8 +50,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index f13befb3bb8d..01219c634c81 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,10 +33,10 @@ }) @JsonTypeName("Return") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @jakarta.annotation.Nullable - private Integer _return; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -51,8 +51,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index f0e0fb1d7bba..ae24ac11e35c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -35,22 +35,19 @@ Name.JSON_PROPERTY_123NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private Integer name; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @jakarta.annotation.Nullable - private Integer snakeCase; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @jakarta.annotation.Nullable - private String property; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @jakarta.annotation.Nullable - private Integer _123number; + @jakarta.annotation.Nullable private Integer _123number; public Name() { } @@ -77,8 +74,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -97,8 +93,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +113,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * Get property * @return property */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +132,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * Get _123number * @return _123number */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index b7b6a900a841..aefdf71e3336 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -54,54 +54,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @jakarta.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @jakarta.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @jakarta.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @jakarta.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @jakarta.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @jakarta.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @jakarta.annotation.Nullable - private List arrayItemsNullable; + @jakarta.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @jakarta.annotation.Nullable - private Map objectItemsNullable; + @jakarta.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -117,8 +106,7 @@ public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerPro * Get integerProp * @return integerProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Integer getIntegerProp() { @@ -127,7 +115,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -151,8 +138,7 @@ public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberPr * Get numberProp * @return numberProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public BigDecimal getNumberProp() { @@ -161,7 +147,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -185,8 +170,7 @@ public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanPro * Get booleanProp * @return booleanProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Boolean getBooleanProp() { @@ -195,7 +179,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -219,8 +202,7 @@ public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) * Get stringProp * @return stringProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getStringProp() { @@ -229,7 +211,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -253,8 +234,7 @@ public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public LocalDate getDateProp() { @@ -263,7 +243,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -287,8 +266,7 @@ public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime da * Get datetimeProp * @return datetimeProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public OffsetDateTime getDatetimeProp() { @@ -297,7 +275,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -333,8 +310,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public List getArrayNullableProp() { @@ -343,7 +319,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -379,8 +354,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public List getArrayAndItemsNullableProp() { @@ -389,7 +363,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -421,8 +394,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,8 +431,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Map getObjectNullableProp() { @@ -469,7 +440,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -505,8 +475,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Map getObjectAndItemsNullableProp() { @@ -515,7 +484,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -547,8 +515,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index e36be12cc0c6..eda06953e97d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -32,10 +32,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @jakarta.annotation.Nullable - private BigDecimal justNumber; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -50,8 +50,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * Get justNumber * @return justNumber */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 6f35b9d36fed..0fe87f48b900 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -39,22 +39,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private String uuid; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private BigDecimal id; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @jakarta.annotation.Nullable - private DeprecatedObject deprecatedRef; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @jakarta.annotation.Nullable - private List bars; + @jakarta.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } @@ -69,8 +66,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,8 +93,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +120,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +155,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index cc8a1f2d5745..19a32d1ef83c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -37,22 +37,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -90,14 +87,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -112,8 +106,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +131,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,8 +156,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,8 +181,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,8 +206,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,8 +231,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index 3a98ce5e1fe7..026747d0274c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -34,18 +34,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @jakarta.annotation.Nullable - private BigDecimal myNumber; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @jakarta.annotation.Nullable - private String myString; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @jakarta.annotation.Nullable - private Boolean myBoolean; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -60,8 +58,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * Get myNumber * @return myNumber */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,8 +83,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * Get myString * @return myString */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +108,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * Get myBoolean * @return myBoolean */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 62978ed5dcac..2e624e9376a4 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -32,10 +32,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull - private OuterEnumInteger value; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -50,8 +50,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * Get value * @return value */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index c0987dfd8a29..ce51cf10d814 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -39,6 +39,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -81,14 +82,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - protected TypeEnum type; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @jakarta.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -103,8 +101,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,8 +126,7 @@ public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String n * Get nullableProperty * @return nullableProperty */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getNullableProperty() { @@ -139,7 +135,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 1f4e14d32ee6..238d3c246a40 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -44,26 +44,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private Set photoUrls; + @jakarta.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags; + @jakarta.annotation.Nullable private List tags; /** * pet status in the store @@ -101,10 +97,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,8 +138,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,8 +163,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -205,8 +196,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -240,8 +230,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +255,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index ee2d408d145d..35fc4a37247d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -32,14 +32,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @jakarta.annotation.Nullable - private String baz; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -58,8 +57,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,8 +77,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * Get baz * @return baz */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 63db3d16aa6c..43848b1e0f02 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_special_model.name_") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @jakarta.annotation.Nullable - private Long $specialPropertyName; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -50,8 +50,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index fb1b8f4a02e1..f53004c3ddcd 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -32,14 +32,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -54,8 +53,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +78,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index ccdff99571e5..ffca17a73f98 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -34,10 +34,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @jakarta.annotation.Nullable - private String someProperty; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -53,8 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * Get someProperty * @return someProperty */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java index 07b177a58596..841f5ad0b7bb 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -38,38 +38,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -84,8 +77,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,8 +102,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,8 +127,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +152,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,8 +177,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +202,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,8 +227,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +252,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") + @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 720f54754f4e..61c853bf5906 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @jakarta.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @jakarta.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index fbf8d61fa177..4131e083f8c2 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @jakarta.annotation.Nullable - private SingleRefType singleRefType; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * Get singleRefType * @return singleRefType */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java index 86cc58eb17be..8254f51984da 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @jakarta.annotation.Nonnull - protected String className; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - protected String color = "red"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * Get className * @return className */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * Get color * @return color */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 87cea9ecb8df..112685951372 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @jakarta.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ddac35e167ae..350a7a8d6c35 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @jakarta.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java index 69f13d66946d..547b3ba91e3f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @jakarta.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @jakarta.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @jakarta.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java index 4527c5efd07a..a6866e8046c8 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @jakarta.annotation.Nullable - private String smallCamel; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @jakarta.annotation.Nullable - private String capitalCamel; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @jakarta.annotation.Nullable - private String smallSnake; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @jakarta.annotation.Nullable - private String capitalSnake; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @jakarta.annotation.Nullable - private String scAETHFlowPoints; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @jakarta.annotation.Nullable - private String ATT_NAME; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * Get smallCamel * @return smallCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * Get capitalCamel * @return capitalCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * Get smallSnake * @return smallSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * Get capitalSnake * @return capitalSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java index 73f8201c2c7f..cc7842a4e703 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @jakarta.annotation.Nullable - private Boolean declawed; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java index c87cc6d9d033..ba77f405d3cc 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name = "default-name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 55e6ce126788..15d1d6fa398e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @jakarta.annotation.Nullable - private String otherProperty; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * Get otherProperty * @return otherProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java index cc5edb0ddf1c..ee75fa53a654 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java index 7b7843af2080..59c80e3407c8 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @jakarta.annotation.Nullable - private String client; + @jakarta.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * Get client * @return client */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java index da99cf340327..68a309d9f6e3 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java index 6a11ad89d6f9..be1d67ee5da9 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @jakarta.annotation.Nullable - private String breed; + @jakarta.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * Get breed * @return breed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java index 3e2e08025830..7fda65e0a0b6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @jakarta.annotation.Nullable - private JustSymbolEnum justSymbol; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @jakarta.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * Get justSymbol * @return justSymbol */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java index f9347fc97f5b..fa658f4a7201 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @jakarta.annotation.Nullable - private EnumStringEnum enumString; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @jakarta.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @jakarta.annotation.Nullable - private EnumIntegerEnum enumInteger; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @jakarta.annotation.Nullable - private EnumNumberEnum enumNumber; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @jakarta.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @jakarta.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * Get enumString * @return enumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * Get enumStringRequired * @return enumStringRequired */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * Get enumInteger * @return enumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * Get enumNumber * @return enumNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * Get outerEnumInteger * @return outerEnumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index e9edabdcfab3..c1bf2505e702 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @jakarta.annotation.Nullable - private BigDecimal someId; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @jakarta.annotation.Nullable - private Map someMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * Get someId * @return someId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d1b7648e7be4..5e473686a586 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @jakarta.annotation.Nullable - private ModelFile _file; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @jakarta.annotation.Nullable - private List files = new ArrayList<>(); + @jakarta.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java index e673cf968242..ac45378a32ce 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 6c72b31783b5..0defc9cfc304 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private Foo string; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java index 818b19b86bde..ac64ecde5f24 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @jakarta.annotation.Nullable - private Integer integer; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @jakarta.annotation.Nullable - private Integer int32; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @jakarta.annotation.Nullable - private Long int64; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nonnull - private BigDecimal number; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @jakarta.annotation.Nullable - private BigDecimal decimal; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private String string; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @jakarta.annotation.Nonnull - private byte[] _byte; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @jakarta.annotation.Nullable - private File binary; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nonnull - private LocalDate date; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nonnull - private String password; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @jakarta.annotation.Nullable - private String patternWithDigits; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @jakarta.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * Get binary * @return binary */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * Get password * @return password */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 7fcd7679b146..9175e66b6a43 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @jakarta.annotation.Nullable - private String foo; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java index e30ee78c1c43..b060e6d76085 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @jakarta.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nul * Get nullableMessage * @return nullableMessage */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java index f279dad1037d..212a192152b5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @jakarta.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @jakarta.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @jakarta.annotation.Nullable - private Map directMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @jakarta.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0eb4099d56ea..fc0e66c11a0c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @jakarta.annotation.Nullable - private Map map = new HashMap<>(); + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java index 7d0bfb917073..afc1c6eb4b78 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private Integer name; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index dac5d47ec9ca..6a44a37dc5b8 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java index 3c99c5d565e0..a64bc8479ab8 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @jakarta.annotation.Nullable - private String sourceURI; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java index 54a220f2c63e..bc5646ddc0fb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @jakarta.annotation.Nullable - private String _123list; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java index 3620721ba403..26c89830560f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @jakarta.annotation.Nullable - private Integer _return; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java index d80704b7a715..a0c04a44dc52 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private Integer name; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @jakarta.annotation.Nullable - private Integer snakeCase; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @jakarta.annotation.Nullable - private String property; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @jakarta.annotation.Nullable - private Integer _123number; + @jakarta.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * Get property * @return property */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * Get _123number * @return _123number */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java index 04989802ba7d..434bdad9a640 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @jakarta.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @jakarta.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @jakarta.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @jakarta.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @jakarta.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @jakarta.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @jakarta.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @jakarta.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @jakarta.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerPro * Get integerProp * @return integerProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberPr * Get numberProp * @return numberProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanPro * Get booleanProp * @return booleanProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) * Get stringProp * @return stringProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime da * Get datetimeProp * @return datetimeProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java index 3c21f20754c2..a05c6fa775bb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @jakarta.annotation.Nullable - private BigDecimal justNumber; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * Get justNumber * @return justNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 2f0d9d3b946d..be6f75a6cd2e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private String uuid; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private BigDecimal id; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @jakarta.annotation.Nullable - private DeprecatedObject deprecatedRef; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @jakarta.annotation.Nullable - private List bars = new ArrayList<>(); + @jakarta.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index 8f4db12e8222..247b3cb6a1eb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java index b2b88b32009b..1e7fefed42a7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @jakarta.annotation.Nullable - private BigDecimal myNumber; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @jakarta.annotation.Nullable - private String myString; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @jakarta.annotation.Nullable - private Boolean myBoolean; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * Get myNumber * @return myNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * Get myString * @return myString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * Get myBoolean * @return myBoolean */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 0b5fecce1ceb..d8061bcac68e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull - private OuterEnumInteger value; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * Get value * @return value */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 78772c7e27cc..54b1cb2a775d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - protected TypeEnum type; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @jakarta.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String n * Get nullableProperty * @return nullableProperty */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index 893ffedd5f5c..eac9f8a65705 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f6d848fa88c6..d4289893c62b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @jakarta.annotation.Nullable - private String baz; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * Get baz * @return baz */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java index fb9e96a8da6b..55f9de30302c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @jakarta.annotation.Nullable - private Long $specialPropertyName; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java index f5c4ae0e4467..7db8054ece5f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 58e2d9d3f8ec..b96e8d68dbeb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @jakarta.annotation.Nullable - private String someProperty; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * Get someProperty * @return someProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java index b0af4339edd8..b7dce057faca 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b77f24b9e5c2..d1173b0ac2e4 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @jakarta.annotation.Nullable - private Map mapProperty; + @jakarta.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @jakarta.annotation.Nullable - private Map> mapOfMapProperty; + @jakarta.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index fbf8d61fa177..4131e083f8c2 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @jakarta.annotation.Nullable - private SingleRefType singleRefType; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * Get singleRefType * @return singleRefType */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java index 86cc58eb17be..8254f51984da 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @jakarta.annotation.Nonnull - protected String className; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - protected String color = "red"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * Get className * @return className */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * Get color * @return color */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index d003cd28189c..f06fc8774b14 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @jakarta.annotation.Nullable - private List> arrayArrayNumber; + @jakarta.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index c2d18a06f40b..21fbafc9e388 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @jakarta.annotation.Nullable - private List arrayNumber; + @jakarta.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java index f96b497bc241..789bf537ecf2 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @jakarta.annotation.Nullable - private List arrayOfString; + @jakarta.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @jakarta.annotation.Nullable - private List> arrayArrayOfInteger; + @jakarta.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @jakarta.annotation.Nullable - private List> arrayArrayOfModel; + @jakarta.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java index 4527c5efd07a..a6866e8046c8 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @jakarta.annotation.Nullable - private String smallCamel; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @jakarta.annotation.Nullable - private String capitalCamel; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @jakarta.annotation.Nullable - private String smallSnake; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @jakarta.annotation.Nullable - private String capitalSnake; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @jakarta.annotation.Nullable - private String scAETHFlowPoints; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @jakarta.annotation.Nullable - private String ATT_NAME; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * Get smallCamel * @return smallCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * Get capitalCamel * @return capitalCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * Get smallSnake * @return smallSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * Get capitalSnake * @return capitalSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java index 73f8201c2c7f..cc7842a4e703 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @jakarta.annotation.Nullable - private Boolean declawed; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java index c87cc6d9d033..ba77f405d3cc 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name = "default-name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 55e6ce126788..15d1d6fa398e 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @jakarta.annotation.Nullable - private String otherProperty; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * Get otherProperty * @return otherProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java index cc5edb0ddf1c..ee75fa53a654 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java index 7b7843af2080..59c80e3407c8 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @jakarta.annotation.Nullable - private String client; + @jakarta.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * Get client * @return client */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index da99cf340327..68a309d9f6e3 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java index 6a11ad89d6f9..be1d67ee5da9 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @jakarta.annotation.Nullable - private String breed; + @jakarta.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * Get breed * @return breed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java index eab3ae93381c..90ccc1ede505 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @jakarta.annotation.Nullable - private JustSymbolEnum justSymbol; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @jakarta.annotation.Nullable - private List arrayEnum; + @jakarta.annotation.Nullable private List arrayEnum; public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * Get justSymbol * @return justSymbol */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java index f9347fc97f5b..fa658f4a7201 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @jakarta.annotation.Nullable - private EnumStringEnum enumString; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @jakarta.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @jakarta.annotation.Nullable - private EnumIntegerEnum enumInteger; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @jakarta.annotation.Nullable - private EnumNumberEnum enumNumber; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @jakarta.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @jakarta.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * Get enumString * @return enumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * Get enumStringRequired * @return enumStringRequired */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * Get enumInteger * @return enumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * Get enumNumber * @return enumNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * Get outerEnumInteger * @return outerEnumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 4b169000a156..55ef6c203b2c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @jakarta.annotation.Nullable - private BigDecimal someId; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @jakarta.annotation.Nullable - private Map someMap; + @jakarta.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * Get someId * @return someId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d910ae1c5dd3..6c0b5b777e6f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @jakarta.annotation.Nullable - private ModelFile _file; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @jakarta.annotation.Nullable - private List files; + @jakarta.annotation.Nullable private List files; public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java index e673cf968242..ac45378a32ce 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 6c72b31783b5..0defc9cfc304 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private Foo string; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java index 818b19b86bde..ac64ecde5f24 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @jakarta.annotation.Nullable - private Integer integer; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @jakarta.annotation.Nullable - private Integer int32; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @jakarta.annotation.Nullable - private Long int64; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nonnull - private BigDecimal number; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @jakarta.annotation.Nullable - private BigDecimal decimal; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private String string; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @jakarta.annotation.Nonnull - private byte[] _byte; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @jakarta.annotation.Nullable - private File binary; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nonnull - private LocalDate date; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nonnull - private String password; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @jakarta.annotation.Nullable - private String patternWithDigits; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @jakarta.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * Get binary * @return binary */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * Get password * @return password */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 7fcd7679b146..9175e66b6a43 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @jakarta.annotation.Nullable - private String foo; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index e30ee78c1c43..b060e6d76085 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @jakarta.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nul * Get nullableMessage * @return nullableMessage */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java index 2d47dfc83e27..a93032e5ae40 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @jakarta.annotation.Nullable - private Map> mapMapOfString; + @jakarta.annotation.Nullable private Map> mapMapOfString; /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @jakarta.annotation.Nullable - private Map mapOfEnumString; + @jakarta.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @jakarta.annotation.Nullable - private Map directMap; + @jakarta.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @jakarta.annotation.Nullable - private Map indirectMap; + @jakarta.annotation.Nullable private Map indirectMap; public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b7e67c4888ef..3bdfb1201948 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @jakarta.annotation.Nullable - private Map map; + @jakarta.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java index 7d0bfb917073..afc1c6eb4b78 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private Integer name; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index dac5d47ec9ca..6a44a37dc5b8 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java index 3c99c5d565e0..a64bc8479ab8 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @jakarta.annotation.Nullable - private String sourceURI; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java index 54a220f2c63e..bc5646ddc0fb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @jakarta.annotation.Nullable - private String _123list; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 3620721ba403..26c89830560f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @jakarta.annotation.Nullable - private Integer _return; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java index d80704b7a715..a0c04a44dc52 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private Integer name; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @jakarta.annotation.Nullable - private Integer snakeCase; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @jakarta.annotation.Nullable - private String property; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @jakarta.annotation.Nullable - private Integer _123number; + @jakarta.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * Get property * @return property */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * Get _123number * @return _123number */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java index b5ea57f50616..690b6c7fb0dd 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @jakarta.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @jakarta.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @jakarta.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @jakarta.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @jakarta.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @jakarta.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @jakarta.annotation.Nullable - private List arrayItemsNullable; + @jakarta.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @jakarta.annotation.Nullable - private Map objectItemsNullable; + @jakarta.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerPro * Get integerProp * @return integerProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberPr * Get numberProp * @return numberProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanPro * Get booleanProp * @return booleanProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) * Get stringProp * @return stringProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime da * Get datetimeProp * @return datetimeProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java index 3c21f20754c2..a05c6fa775bb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @jakarta.annotation.Nullable - private BigDecimal justNumber; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * Get justNumber * @return justNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 7f4dc85f1a0f..f4ed1dfdde1a 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private String uuid; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private BigDecimal id; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @jakarta.annotation.Nullable - private DeprecatedObject deprecatedRef; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @jakarta.annotation.Nullable - private List bars; + @jakarta.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java index 8f4db12e8222..247b3cb6a1eb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java index b2b88b32009b..1e7fefed42a7 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @jakarta.annotation.Nullable - private BigDecimal myNumber; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @jakarta.annotation.Nullable - private String myString; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @jakarta.annotation.Nullable - private Boolean myBoolean; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * Get myNumber * @return myNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * Get myString * @return myString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * Get myBoolean * @return myBoolean */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 0b5fecce1ceb..d8061bcac68e 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull - private OuterEnumInteger value; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * Get value * @return value */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 78772c7e27cc..54b1cb2a775d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - protected TypeEnum type; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @jakarta.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String n * Get nullableProperty * @return nullableProperty */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index f20bf09a36b6..9ccaaba090be 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private Set photoUrls; + @jakarta.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags; + @jakarta.annotation.Nullable private List tags; /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f6d848fa88c6..d4289893c62b 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @jakarta.annotation.Nullable - private String baz; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * Get baz * @return baz */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index fb9e96a8da6b..55f9de30302c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @jakarta.annotation.Nullable - private Long $specialPropertyName; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index f5c4ae0e4467..7db8054ece5f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 58e2d9d3f8ec..b96e8d68dbeb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @jakarta.annotation.Nullable - private String someProperty; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * Get someProperty * @return someProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java index b0af4339edd8..b7dce057faca 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 936b8bafdbba..5c6aeb6c2161 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 5a60fa128dda..4c10b80e49ee 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @javax.annotation.Nullable - private SingleRefType singleRefType; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * Get singleRefType * @return singleRefType */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java index 745689d7191a..dbea09ffc4fb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f58e3255492..c49cc5f2bc55 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f3d46916faa9..4b662a61dbcc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java index 771578abd0ac..c9b8d66152d9 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java index 6cd94422b1cc..e34fd05e3c37 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java index f8705b67de58..3c7b879877a0 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index 50b6ff1d6a27..46b862b17d1d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java index b436febdcc4a..c222ad581dce 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java index dbf6964fdad2..ad6952b6eb7f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java index 0be09220e7df..9614edc8acc4 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java index acdb137161a2..653f395fb852 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java index 8004beff9756..77e5abc774b0 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java index 42c505b11899..8578245ac910 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java index 915ba1b91ce9..943480b6efe6 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 0f3aaeb0af49..12979e0931b1 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap = new HashMap<>(); + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 6c10cc7d053f..a033667c4620 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java index 6c446b295f88..9aaf54744e6f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 395eecaf8b53..b432e1fe3599 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java index bb7fb37b6325..2c54f92df881 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6dc15593463d..ae4b6ba19d1b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b772672c401f..d8e472a39557 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java index 03fcf6214210..cf65489efd5f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 27b5ebbd852b..402e91a9a0b7 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java index 0b83c6011405..dcd9d4a0b913 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0938a865de43..01a8f08a5e4e 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java index 73f5779de22f..5f6966cf7b29 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java index f8d50bc17620..ce8b0d976724 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java index 314794ba50b5..0496b4e8ac67 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java index 4789044c8530..45a18bdb0475 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java index bb516d7739da..40dfc8651ccc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java index 341017c96d26..b3d7cd4222fd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index c6a3cc14fade..25fd74c77db9 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java index 0136b2dcc833..834d17fb706a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java index c9b0b884ef29..b1979a9e65da 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 88cf19fe07a3..245d8fc67864 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b97f28bbcfd8..432bd35481bb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 8cfe9533fe17..dff2cdd7187a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e0e1e8bb4bbd..7fd8fc08906c 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java index 8d7cee198797..2ce6677d2d2d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index ebcb558efe5f..027b8542d358 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 89584fa7c936..ea68d8ffaf26 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java index 9d11826fc6b6..019c8bd1f88b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java index 522461a44dc5..e8a2bd3fb428 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Category() { } @@ -61,8 +60,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -86,8 +84,7 @@ public Category name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index c606bf61478f..2f35a305fd15 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -68,8 +66,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -93,8 +90,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -118,8 +114,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java index ced7c3fba438..c177e214dce4 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -123,8 +117,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -148,8 +141,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -173,8 +165,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -198,8 +189,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -223,8 +213,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -248,8 +237,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 6cbd7fa3a4d8..1ef5a7bdcac8 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -40,26 +40,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @jakarta.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -97,10 +93,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -127,8 +121,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -152,8 +145,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -177,8 +169,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -210,8 +201,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -243,8 +233,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -270,8 +259,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 13d5e6c28f61..644cf795b56e 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -61,8 +60,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -86,8 +84,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java index f81fbc6d2778..71658918e649 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -97,8 +90,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,8 +114,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -147,8 +138,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -172,8 +162,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -197,8 +186,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -222,8 +210,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -247,8 +234,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -272,8 +258,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java index c9126e5c0098..de571b87655b 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -34,14 +34,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -56,8 +55,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,8 +80,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f1fdad961230..3a3c9c74abe5 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -36,18 +36,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -62,8 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,8 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -114,8 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java index ce6c7f5343a7..f39565eab572 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -39,22 +39,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -92,14 +89,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -114,8 +108,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,8 +133,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -166,8 +158,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -192,8 +183,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,8 +208,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @ApiModelProperty(value = "Order Status") + @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -244,8 +233,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 2e82ad5c0e79..44901cdb4838 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -144,8 +137,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -170,8 +162,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @ApiModelProperty(example = "doggie", required = true, value = "") + @javax.annotation.Nonnull @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -204,8 +195,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -238,8 +228,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +255,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @ApiModelProperty(value = "pet status in the store") + @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java index d73de854276f..7ff8afd1f461 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -34,14 +34,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -56,8 +55,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,8 +80,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java index 432b127fca3c..47f6a8d47a2d 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -40,38 +40,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -86,8 +79,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +104,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +129,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,8 +154,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,8 +179,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,8 +204,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,8 +229,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -268,8 +254,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @ApiModelProperty(value = "User Status") + @javax.annotation.Nullable @ApiModelProperty(value = "User Status") @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java index 14dca1cd360a..89ff5f1ce675 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -33,14 +33,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Category() { } @@ -55,8 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,8 +79,7 @@ public Category name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 7026940729fb..991e8d0d5aa2 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -61,8 +59,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -87,8 +84,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -113,8 +109,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java index 2e50954e68d6..34c7d3d67084 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -38,22 +38,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -91,14 +88,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -113,8 +107,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,8 +132,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -165,8 +157,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -191,8 +182,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -217,8 +207,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,8 +232,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java index a7c3f1ed405d..cd383e7174a5 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -42,26 +42,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private List photoUrls = new ArrayList<>(); + @javax.annotation.Nonnull private List photoUrls = new ArrayList<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -99,10 +95,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -117,8 +111,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,8 +161,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -203,8 +194,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -237,8 +227,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,8 +254,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 205f6cbd7d9d..5134e002af63 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -33,14 +33,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -55,8 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -81,8 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java index 866fea13490a..d4c417b0f0e1 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -39,38 +39,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -85,8 +78,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -111,8 +103,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -137,8 +128,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -163,8 +153,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -189,8 +178,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -215,8 +203,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -241,8 +228,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -267,8 +253,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a25fa0629eac..4e272559c34f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -37,19 +37,19 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "AdditionalPropertiesClass") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "AdditionalPropertiesClass") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; @XmlElement(name = "map_property") - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; @XmlElement(name = "map_of_map_property") - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -72,8 +72,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_property") @JacksonXmlElementWrapper(useWrapping = false) @@ -109,8 +108,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -68,8 +69,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 90c4337bada4..d265f1f82ce7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -38,14 +38,15 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ArrayOfNumberOnly") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ArrayOfNumberOnly") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; @XmlElement(name = "ArrayNumber") - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -68,8 +69,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java index 98e085d35670..09d97636b1d7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -40,24 +40,23 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ArrayTest") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ArrayTest") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; @XmlElement(name = "array_of_string") - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @XmlElement(name = "array_array_of_integer") - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @XmlElement(name = "array_array_of_model") - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -80,8 +79,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -117,8 +115,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_integer") @JacksonXmlElementWrapper(useWrapping = false) @@ -154,8 +151,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_model") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java index f0eedaf2524b..1be7167ade5f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java @@ -39,39 +39,35 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Capitalization") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Capitalization") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; @XmlElement(name = "smallCamel") - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; @XmlElement(name = "CapitalCamel") - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; @XmlElement(name = "small_Snake") - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; @XmlElement(name = "Capital_Snake") - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @XmlElement(name = "SCA_ETH_Flow_Points") - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; @XmlElement(name = "ATT_NAME") - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -86,8 +82,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "smallCamel") @@ -113,8 +108,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "CapitalCamel") @@ -140,8 +134,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "small_Snake") @@ -167,8 +160,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Capital_Snake") @@ -194,8 +186,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") @@ -221,8 +212,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ATT_NAME") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java index 4a2ebd1c97c8..0c2f0f661756 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java @@ -38,6 +38,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,11 +48,11 @@ @XmlRootElement(name = "Cat") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Cat") + public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; @XmlElement(name = "declawed") - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -67,8 +68,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "declawed") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java index 48f33123f1b4..b1f7f248d586 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java @@ -35,19 +35,19 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Category") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Category") + public class Category { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -62,8 +62,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -89,8 +88,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java index e1f8271d6f64..2ce46db85a77 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -39,6 +39,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -48,11 +49,11 @@ @XmlRootElement(name = "ChildWithNullable") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ChildWithNullable") + public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; @XmlElement(name = "otherProperty") - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -68,8 +69,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "otherProperty") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java index b36c0fd70fb5..cc70ca3e1fd5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java @@ -34,14 +34,15 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ClassModel") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ClassModel") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; @XmlElement(name = "_class") - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -56,8 +57,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "_class") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java index 518cc82f38d4..1c1718652838 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java @@ -34,14 +34,15 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Client") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Client") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; @XmlElement(name = "client") - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -56,8 +57,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "client") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java index c7f9052bc7ec..866a0086af29 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -36,14 +36,15 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "DeprecatedObject") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "DeprecatedObject") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -58,8 +59,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java index ce9bc5ca8842..ab5654007e33 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java @@ -38,6 +38,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,11 +48,11 @@ @XmlRootElement(name = "Dog") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Dog") + public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; @XmlElement(name = "breed") - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -67,8 +68,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "breed") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java index 43eea73f77ff..77d0098fb8ad 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -38,9 +38,11 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "EnumArrays") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "EnumArrays") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -80,11 +82,9 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; @XmlElement(name = "just_symbol") - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -124,11 +124,9 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; @XmlElement(name = "array_enum") - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -143,8 +141,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "just_symbol") @@ -178,8 +175,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_enum") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java index f8b65989d0cc..d9efc31a569e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java @@ -50,9 +50,11 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "EnumTest") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "EnumTest") + public class EnumTest { /** * Gets or Sets enumString @@ -95,11 +97,9 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; @XmlElement(name = "enum_string") - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -142,11 +142,9 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; @XmlElement(name = "enum_string_required") - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -186,11 +184,9 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; @XmlElement(name = "enum_integer") - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -230,31 +226,25 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; @XmlElement(name = "enum_number") - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; @XmlElement(name = "outerEnum") - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; @XmlElement(name = "outerEnumInteger") - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; @XmlElement(name = "outerEnumDefaultValue") - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; @XmlElement(name = "outerEnumIntegerDefaultValue") - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -269,8 +259,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_string") @@ -296,8 +285,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "enum_string_required") @@ -323,8 +311,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_integer") @@ -350,8 +337,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_number") @@ -377,8 +363,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -387,7 +372,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnum") - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -411,8 +395,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumInteger") @@ -438,8 +421,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumDefaultValue") @@ -465,8 +447,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 254bf2205f36..595aa3e96145 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -39,19 +39,19 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "FakeBigDecimalMap200Response") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FakeBigDecimalMap200Response") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; @XmlElement(name = "someId") - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; @XmlElement(name = "someMap") - @javax.annotation.Nullable - private Map someMap = new HashMap<>(); + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -66,8 +66,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someId") @@ -101,8 +100,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someMap") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 608c5a53e723..b024f4a8bb6b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -39,19 +39,19 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "FileSchemaTestClass") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FileSchemaTestClass") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; @XmlElement(name = "file") - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; @XmlElement(name = "files") - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -66,8 +66,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "file") @@ -101,8 +100,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "files") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java index e2de6c2a8d35..8cb94afbeadd 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java @@ -34,14 +34,15 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Foo") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Foo") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -56,8 +57,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index d4a65cfe4ad3..cc8b34adb8bf 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -36,14 +36,15 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "FooGetDefaultResponse") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FooGetDefaultResponse") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; @XmlElement(name = "string") - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -58,8 +59,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java index 69198659923c..d87ddf50027d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java @@ -55,90 +55,76 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "FormatTest") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "FormatTest") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; @XmlElement(name = "integer") - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; @XmlElement(name = "int32") - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; @XmlElement(name = "int64") - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; @XmlElement(name = "number") - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; @XmlElement(name = "float") - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; @XmlElement(name = "double") - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; @XmlElement(name = "decimal") - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; @XmlElement(name = "string") - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; @XmlElement(name = "byte") - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; @XmlElement(name = "binary") - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; @XmlElement(name = "date") - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; @XmlElement(name = "dateTime") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; @XmlElement(name = "password") - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; @XmlElement(name = "pattern_with_digits") - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; @XmlElement(name = "pattern_with_digits_and_delimiter") - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -155,8 +141,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer") @@ -184,8 +169,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int32") @@ -211,8 +195,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int64") @@ -240,8 +223,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "number") @@ -269,8 +251,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "float") @@ -298,8 +279,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "double") @@ -325,8 +305,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "decimal") @@ -352,8 +331,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") @@ -379,8 +357,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "byte") @@ -406,8 +383,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "binary") @@ -433,8 +409,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "date") @@ -460,8 +435,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") @@ -487,8 +461,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -514,8 +487,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "password") @@ -541,8 +513,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits") @@ -568,8 +539,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 56626769465f..c9f72dc6fcbb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -36,19 +36,19 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "HasOnlyReadOnly") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "HasOnlyReadOnly") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; @XmlElement(name = "foo") - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -57,8 +57,7 @@ public HasOnlyReadOnly() { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") @@ -72,8 +71,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "foo") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 0b70621b93fb..b87d04bc2f79 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -38,14 +38,15 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "HealthCheckResult") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "HealthCheckResult") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; @XmlElement(name = "NullableMessage") - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -60,8 +61,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -70,7 +70,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "NullableMessage") - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java index 9bc9610b6351..501e91d06dcb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java @@ -39,14 +39,15 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "MapTest") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "MapTest") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; @XmlElement(name = "map_map_of_string") - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -86,21 +87,17 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; @XmlElement(name = "map_of_enum_string") - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; @XmlElement(name = "direct_map") - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; @XmlElement(name = "indirect_map") - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -123,8 +120,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_map_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -160,8 +156,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_enum_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -197,8 +192,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "direct_map") @JacksonXmlElementWrapper(useWrapping = false) @@ -234,8 +228,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "indirect_map") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 05adb433f0f9..2d08f063c97e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -41,25 +41,24 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "MixedPropertiesAndAdditionalPropertiesClass") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "MixedPropertiesAndAdditionalPropertiesClass") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; @XmlElement(name = "dateTime") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; @XmlElement(name = "map") - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -74,8 +73,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -101,8 +99,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") @@ -136,8 +133,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java index 0b780b8a1904..8c166a96255c 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java @@ -36,19 +36,19 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Name") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Name") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; @XmlElement(name = "class") - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -63,8 +63,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") @@ -90,8 +89,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "class") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 381b70135765..e904375b6e64 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -37,24 +37,23 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ModelApiResponse") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ModelApiResponse") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; @XmlElement(name = "code") - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; @XmlElement(name = "type") - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; @XmlElement(name = "message") - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -69,8 +68,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") @@ -96,8 +94,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") @@ -123,8 +120,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java index 868af1bf211e..4b54ff946fbc 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java @@ -35,14 +35,15 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ModelFile") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ModelFile") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; @XmlElement(name = "sourceURI") - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -57,8 +58,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "sourceURI") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java index b8f28eda30d6..4ed186ff6918 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java @@ -35,14 +35,15 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ModelList") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ModelList") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; @XmlElement(name = "123-list") - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -57,8 +58,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123-list") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java index 2ffaf8b93300..da68a9560d19 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -35,14 +35,15 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Return") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Return") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; @XmlElement(name = "return") - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -57,8 +58,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "return") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java index 5d0af3485a5e..a904250d4754 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java @@ -37,29 +37,27 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Name") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Name") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; @XmlElement(name = "snake_case") - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; @XmlElement(name = "property") - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; @XmlElement(name = "123Number") - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -74,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") @@ -95,8 +92,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "snake_case") @@ -116,8 +112,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "property") @@ -137,8 +132,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123Number") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java index 36f56fd6ce72..efe305005b9a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java @@ -57,70 +57,60 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "NullableClass") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "NullableClass") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; @XmlElement(name = "integer_prop") - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; @XmlElement(name = "number_prop") - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; @XmlElement(name = "boolean_prop") - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; @XmlElement(name = "string_prop") - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; @XmlElement(name = "date_prop") - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; @XmlElement(name = "datetime_prop") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; @XmlElement(name = "array_nullable_prop") - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; @XmlElement(name = "array_and_items_nullable_prop") - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; @XmlElement(name = "array_items_nullable") - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; @XmlElement(name = "object_nullable_prop") - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; @XmlElement(name = "object_and_items_nullable_prop") - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; @XmlElement(name = "object_items_nullable") - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { @@ -136,8 +126,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -146,7 +135,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer_prop") - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -170,8 +158,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -180,7 +167,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "number_prop") - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -204,8 +190,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -214,7 +199,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "boolean_prop") - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -238,8 +222,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -248,7 +231,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string_prop") - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -272,8 +254,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -282,7 +263,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "date_prop") - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -306,8 +286,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -316,7 +295,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "datetime_prop") - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -352,8 +330,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -363,7 +340,6 @@ public List getArrayNullableProp() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -399,8 +375,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -410,7 +385,6 @@ public List getArrayAndItemsNullableProp() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_and_items_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -442,8 +416,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) @@ -483,8 +456,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -494,7 +466,6 @@ public Map getObjectNullableProp() { @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -530,8 +501,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -541,7 +511,6 @@ public Map getObjectAndItemsNullableProp() { @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_and_items_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -573,8 +542,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java index 667934e61680..cd2be277ff6e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -35,14 +35,15 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "NumberOnly") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "NumberOnly") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; @XmlElement(name = "JustNumber") - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -57,8 +58,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "JustNumber") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 0929e2be428c..155edcd49c59 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -42,29 +42,27 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ObjectWithDeprecatedFields") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ObjectWithDeprecatedFields") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; @XmlElement(name = "uuid") - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; @XmlElement(name = "deprecatedRef") - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; @XmlElement(name = "bars") - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -79,8 +77,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -108,8 +105,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -137,8 +133,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "deprecatedRef") @@ -174,8 +169,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bars") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java index dd4c2d34986f..9d36e98a525a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java @@ -40,30 +40,28 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Order") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Order") + public class Order { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; @XmlElement(name = "petId") - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; @XmlElement(name = "quantity") - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; @XmlElement(name = "shipDate") @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -106,16 +104,13 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @XmlElement(name = "status") - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; @XmlElement(name = "complete") - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -130,8 +125,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -157,8 +151,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") @@ -184,8 +177,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") @@ -211,8 +203,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") @@ -238,8 +229,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") @@ -265,8 +255,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java index 5564530719d2..392a63871dc0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -37,24 +37,23 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "OuterComposite") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "OuterComposite") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; @XmlElement(name = "my_number") - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; @XmlElement(name = "my_string") - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; @XmlElement(name = "my_boolean") - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -69,8 +68,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_number") @@ -96,8 +94,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_string") @@ -123,8 +120,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_boolean") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 81a5c5b54157..c1d77bba8bab 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -35,14 +35,15 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "OuterObjectWithEnumProperty") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "OuterObjectWithEnumProperty") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; @XmlElement(name = "value") - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -57,8 +58,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "value") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java index c0d875203384..25204600d433 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -42,6 +42,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -54,6 +55,7 @@ @XmlRootElement(name = "ParentWithNullable") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ParentWithNullable") + public class ParentWithNullable { /** * Gets or Sets type @@ -90,16 +92,13 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; @XmlElement(name = "type") - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; @XmlElement(name = "nullableProperty") - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -114,8 +113,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") @@ -141,8 +139,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -151,7 +148,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "nullableProperty") - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java index ae6f87b76f2a..5bfedcde4bc9 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java @@ -47,36 +47,33 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Pet") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Pet") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; @XmlElement(name = "Category") - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; @XmlElement(name = "photoUrl") @XmlElementWrapper(name = "photoUrls") - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; @XmlElement(name = "Tag") @XmlElementWrapper(name = "tag") - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -119,11 +116,9 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; @XmlElement(name = "status") - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -138,8 +133,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -165,8 +159,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") @@ -192,8 +185,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") @@ -227,8 +219,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrls", useWrapping = true) @@ -265,8 +256,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) @@ -294,8 +284,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 182ffd7fd0ed..f9854c420878 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -35,19 +35,19 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "ReadOnlyFirst") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "ReadOnlyFirst") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; @XmlElement(name = "bar") - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; @XmlElement(name = "baz") - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -56,8 +56,7 @@ public ReadOnlyFirst() { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") @@ -77,8 +76,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "baz") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java index fd29274e0680..4d4e8df80c0d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -35,14 +35,15 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "$special[model.name]") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "$special[model.name]") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @XmlElement(name = "$special[property.name]") - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -57,8 +58,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "$special[property.name]") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java index 57e079ea5794..478bcec889ac 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java @@ -35,19 +35,19 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "Tag") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "Tag") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; @XmlElement(name = "name") - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -62,8 +62,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -89,8 +88,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 7797b12ece81..85c247c72fe0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -37,14 +37,15 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "TestInlineFreeformAdditionalPropertiesRequest") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "TestInlineFreeformAdditionalPropertiesRequest") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; @XmlElement(name = "someProperty") - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -60,8 +61,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someProperty") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java index 45f9f9f3bdda..aa2ad7209539 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java @@ -41,49 +41,43 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @XmlRootElement(name = "User") @XmlAccessorType(XmlAccessType.FIELD) @JacksonXmlRootElement(localName = "User") + public class User { public static final String JSON_PROPERTY_ID = "id"; @XmlElement(name = "id") - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; @XmlElement(name = "username") - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; @XmlElement(name = "firstName") - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; @XmlElement(name = "lastName") - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; @XmlElement(name = "email") - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; @XmlElement(name = "password") - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; @XmlElement(name = "phone") - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; @XmlElement(name = "userStatus") - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -98,8 +92,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -125,8 +118,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") @@ -152,8 +144,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") @@ -179,8 +170,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") @@ -206,8 +196,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") @@ -233,8 +222,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") @@ -260,8 +248,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") @@ -287,8 +274,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 4deef2959052..bb41eb55e584 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } @@ -71,8 +70,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -104,8 +102,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -159,63 +156,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private AdditionalPropertiesClass instance; - - public Builder() { - this(new AdditionalPropertiesClass()); - } - - protected Builder(AdditionalPropertiesClass instance) { - this.instance = instance; - } - - public AdditionalPropertiesClass.Builder mapProperty(Map mapProperty) { - this.instance.mapProperty = mapProperty; - return this; - } - public AdditionalPropertiesClass.Builder mapOfMapProperty(Map> mapOfMapProperty) { - this.instance.mapOfMapProperty = mapOfMapProperty; - return this; + + private AdditionalPropertiesClass instance; + + public Builder() { + this(new AdditionalPropertiesClass()); + } + + protected Builder(AdditionalPropertiesClass instance) { + this.instance = instance; + } + + public AdditionalPropertiesClass.Builder mapProperty(Map mapProperty) { + this.instance.mapProperty = mapProperty; + return this; + } + public AdditionalPropertiesClass.Builder mapOfMapProperty(Map> mapOfMapProperty) { + this.instance.mapOfMapProperty = mapOfMapProperty; + return this; + } + + + /** + * returns a built AdditionalPropertiesClass instance. + * + * The builder is not reusable. + */ + public AdditionalPropertiesClass build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built AdditionalPropertiesClass instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public AdditionalPropertiesClass build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static AdditionalPropertiesClass.Builder builder() { + return new AdditionalPropertiesClass.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public AdditionalPropertiesClass.Builder toBuilder() { + return new AdditionalPropertiesClass.Builder() + .mapProperty(getMapProperty()) + .mapOfMapProperty(getMapOfMapProperty()); } - } - - /** - * Create a builder with no initialized field. - */ - public static AdditionalPropertiesClass.Builder builder() { - return new AdditionalPropertiesClass.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public AdditionalPropertiesClass.Builder toBuilder() { - return new AdditionalPropertiesClass.Builder() - .mapProperty(getMapProperty()) - .mapOfMapProperty(getMapOfMapProperty()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index f021b9ac1fe8..d687f1500efe 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @javax.annotation.Nullable - private SingleRefType singleRefType; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -62,8 +61,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -87,8 +85,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * Get singleRefType * @return singleRefType */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -142,63 +139,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private AllOfWithSingleRef instance; - - public Builder() { - this(new AllOfWithSingleRef()); - } - - protected Builder(AllOfWithSingleRef instance) { - this.instance = instance; - } - - public AllOfWithSingleRef.Builder username(String username) { - this.instance.username = username; - return this; - } - public AllOfWithSingleRef.Builder singleRefType(SingleRefType singleRefType) { - this.instance.singleRefType = singleRefType; - return this; + + private AllOfWithSingleRef instance; + + public Builder() { + this(new AllOfWithSingleRef()); + } + + protected Builder(AllOfWithSingleRef instance) { + this.instance = instance; + } + + public AllOfWithSingleRef.Builder username(String username) { + this.instance.username = username; + return this; + } + public AllOfWithSingleRef.Builder singleRefType(SingleRefType singleRefType) { + this.instance.singleRefType = singleRefType; + return this; + } + + + /** + * returns a built AllOfWithSingleRef instance. + * + * The builder is not reusable. + */ + public AllOfWithSingleRef build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built AllOfWithSingleRef instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public AllOfWithSingleRef build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static AllOfWithSingleRef.Builder builder() { + return new AllOfWithSingleRef.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public AllOfWithSingleRef.Builder toBuilder() { + return new AllOfWithSingleRef.Builder() + .username(getUsername()) + .singleRefType(getSingleRefType()); } - } - - /** - * Create a builder with no initialized field. - */ - public static AllOfWithSingleRef.Builder builder() { - return new AllOfWithSingleRef.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public AllOfWithSingleRef.Builder toBuilder() { - return new AllOfWithSingleRef.Builder() - .username(getUsername()) - .singleRefType(getSingleRefType()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java index be3d68394ed3..2e9e1bb15b99 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -74,8 +73,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -99,8 +97,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -154,63 +151,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Animal instance; - - public Builder() { - this(new Animal()); - } - - protected Builder(Animal instance) { - this.instance = instance; - } - - public Animal.Builder className(String className) { - this.instance.className = className; - return this; - } - public Animal.Builder color(String color) { - this.instance.color = color; - return this; + + private Animal instance; + + public Builder() { + this(new Animal()); + } + + protected Builder(Animal instance) { + this.instance = instance; + } + + public Animal.Builder className(String className) { + this.instance.className = className; + return this; + } + public Animal.Builder color(String color) { + this.instance.color = color; + return this; + } + + + /** + * returns a built Animal instance. + * + * The builder is not reusable. + */ + public Animal build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Animal instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Animal build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Animal.Builder builder() { + return new Animal.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Animal.Builder toBuilder() { + return new Animal.Builder() + .className(getClassName()) + .color(getColor()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Animal.Builder builder() { - return new Animal.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Animal.Builder toBuilder() { - return new Animal.Builder() - .className(getClassName()) - .color(getColor()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index a2e283df81da..691834be2659 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } @@ -67,8 +67,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -120,58 +119,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ArrayOfArrayOfNumberOnly instance; - - public Builder() { - this(new ArrayOfArrayOfNumberOnly()); - } - - protected Builder(ArrayOfArrayOfNumberOnly instance) { - this.instance = instance; - } - - public ArrayOfArrayOfNumberOnly.Builder arrayArrayNumber(List> arrayArrayNumber) { - this.instance.arrayArrayNumber = arrayArrayNumber; - return this; + + private ArrayOfArrayOfNumberOnly instance; + + public Builder() { + this(new ArrayOfArrayOfNumberOnly()); + } + + protected Builder(ArrayOfArrayOfNumberOnly instance) { + this.instance = instance; + } + + public ArrayOfArrayOfNumberOnly.Builder arrayArrayNumber(List> arrayArrayNumber) { + this.instance.arrayArrayNumber = arrayArrayNumber; + return this; + } + + + /** + * returns a built ArrayOfArrayOfNumberOnly instance. + * + * The builder is not reusable. + */ + public ArrayOfArrayOfNumberOnly build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ArrayOfArrayOfNumberOnly instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ArrayOfArrayOfNumberOnly build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ArrayOfArrayOfNumberOnly.Builder builder() { + return new ArrayOfArrayOfNumberOnly.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ArrayOfArrayOfNumberOnly.Builder toBuilder() { + return new ArrayOfArrayOfNumberOnly.Builder() + .arrayArrayNumber(getArrayArrayNumber()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ArrayOfArrayOfNumberOnly.Builder builder() { - return new ArrayOfArrayOfNumberOnly.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ArrayOfArrayOfNumberOnly.Builder toBuilder() { - return new ArrayOfArrayOfNumberOnly.Builder() - .arrayArrayNumber(getArrayArrayNumber()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index fb608415f92d..d4031092ba3e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } @@ -67,8 +67,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -120,58 +119,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ArrayOfNumberOnly instance; - - public Builder() { - this(new ArrayOfNumberOnly()); - } - - protected Builder(ArrayOfNumberOnly instance) { - this.instance = instance; - } - - public ArrayOfNumberOnly.Builder arrayNumber(List arrayNumber) { - this.instance.arrayNumber = arrayNumber; - return this; + + private ArrayOfNumberOnly instance; + + public Builder() { + this(new ArrayOfNumberOnly()); + } + + protected Builder(ArrayOfNumberOnly instance) { + this.instance = instance; + } + + public ArrayOfNumberOnly.Builder arrayNumber(List arrayNumber) { + this.instance.arrayNumber = arrayNumber; + return this; + } + + + /** + * returns a built ArrayOfNumberOnly instance. + * + * The builder is not reusable. + */ + public ArrayOfNumberOnly build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ArrayOfNumberOnly instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ArrayOfNumberOnly build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ArrayOfNumberOnly.Builder builder() { + return new ArrayOfNumberOnly.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ArrayOfNumberOnly.Builder toBuilder() { + return new ArrayOfNumberOnly.Builder() + .arrayNumber(getArrayNumber()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ArrayOfNumberOnly.Builder builder() { - return new ArrayOfNumberOnly.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ArrayOfNumberOnly.Builder toBuilder() { - return new ArrayOfNumberOnly.Builder() - .arrayNumber(getArrayNumber()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java index 1df676af0c10..d4b58eb6db89 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } @@ -79,8 +77,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -112,8 +109,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -145,8 +141,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -202,68 +197,67 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ArrayTest instance; - - public Builder() { - this(new ArrayTest()); - } - - protected Builder(ArrayTest instance) { - this.instance = instance; - } - - public ArrayTest.Builder arrayOfString(List arrayOfString) { - this.instance.arrayOfString = arrayOfString; - return this; - } - public ArrayTest.Builder arrayArrayOfInteger(List> arrayArrayOfInteger) { - this.instance.arrayArrayOfInteger = arrayArrayOfInteger; - return this; - } - public ArrayTest.Builder arrayArrayOfModel(List> arrayArrayOfModel) { - this.instance.arrayArrayOfModel = arrayArrayOfModel; - return this; + + private ArrayTest instance; + + public Builder() { + this(new ArrayTest()); + } + + protected Builder(ArrayTest instance) { + this.instance = instance; + } + + public ArrayTest.Builder arrayOfString(List arrayOfString) { + this.instance.arrayOfString = arrayOfString; + return this; + } + public ArrayTest.Builder arrayArrayOfInteger(List> arrayArrayOfInteger) { + this.instance.arrayArrayOfInteger = arrayArrayOfInteger; + return this; + } + public ArrayTest.Builder arrayArrayOfModel(List> arrayArrayOfModel) { + this.instance.arrayArrayOfModel = arrayArrayOfModel; + return this; + } + + + /** + * returns a built ArrayTest instance. + * + * The builder is not reusable. + */ + public ArrayTest build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ArrayTest instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ArrayTest build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ArrayTest.Builder builder() { + return new ArrayTest.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ArrayTest.Builder toBuilder() { + return new ArrayTest.Builder() + .arrayOfString(getArrayOfString()) + .arrayArrayOfInteger(getArrayArrayOfInteger()) + .arrayArrayOfModel(getArrayArrayOfModel()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ArrayTest.Builder builder() { - return new ArrayTest.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ArrayTest.Builder toBuilder() { - return new ArrayTest.Builder() - .arrayOfString(getArrayOfString()) - .arrayArrayOfInteger(getArrayArrayOfInteger()) - .arrayArrayOfModel(getArrayArrayOfModel()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java index 1276877afd6b..7422d771a41b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -85,8 +80,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -110,8 +104,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -135,8 +128,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -160,8 +152,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -185,8 +176,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -210,8 +200,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -273,83 +262,82 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Capitalization instance; - - public Builder() { - this(new Capitalization()); - } - - protected Builder(Capitalization instance) { - this.instance = instance; - } - - public Capitalization.Builder smallCamel(String smallCamel) { - this.instance.smallCamel = smallCamel; - return this; - } - public Capitalization.Builder capitalCamel(String capitalCamel) { - this.instance.capitalCamel = capitalCamel; - return this; - } - public Capitalization.Builder smallSnake(String smallSnake) { - this.instance.smallSnake = smallSnake; - return this; - } - public Capitalization.Builder capitalSnake(String capitalSnake) { - this.instance.capitalSnake = capitalSnake; - return this; - } - public Capitalization.Builder scAETHFlowPoints(String scAETHFlowPoints) { - this.instance.scAETHFlowPoints = scAETHFlowPoints; - return this; - } - public Capitalization.Builder ATT_NAME(String ATT_NAME) { - this.instance.ATT_NAME = ATT_NAME; - return this; + + private Capitalization instance; + + public Builder() { + this(new Capitalization()); + } + + protected Builder(Capitalization instance) { + this.instance = instance; + } + + public Capitalization.Builder smallCamel(String smallCamel) { + this.instance.smallCamel = smallCamel; + return this; + } + public Capitalization.Builder capitalCamel(String capitalCamel) { + this.instance.capitalCamel = capitalCamel; + return this; + } + public Capitalization.Builder smallSnake(String smallSnake) { + this.instance.smallSnake = smallSnake; + return this; + } + public Capitalization.Builder capitalSnake(String capitalSnake) { + this.instance.capitalSnake = capitalSnake; + return this; + } + public Capitalization.Builder scAETHFlowPoints(String scAETHFlowPoints) { + this.instance.scAETHFlowPoints = scAETHFlowPoints; + return this; + } + public Capitalization.Builder ATT_NAME(String ATT_NAME) { + this.instance.ATT_NAME = ATT_NAME; + return this; + } + + + /** + * returns a built Capitalization instance. + * + * The builder is not reusable. + */ + public Capitalization build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Capitalization instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Capitalization build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Capitalization.Builder builder() { + return new Capitalization.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Capitalization.Builder toBuilder() { + return new Capitalization.Builder() + .smallCamel(getSmallCamel()) + .capitalCamel(getCapitalCamel()) + .smallSnake(getSmallSnake()) + .capitalSnake(getCapitalSnake()) + .scAETHFlowPoints(getScAETHFlowPoints()) + .ATT_NAME(getATTNAME()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Capitalization.Builder builder() { - return new Capitalization.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Capitalization.Builder toBuilder() { - return new Capitalization.Builder() - .smallCamel(getSmallCamel()) - .capitalCamel(getCapitalCamel()) - .smallSnake(getSmallSnake()) - .capitalSnake(getCapitalSnake()) - .scAETHFlowPoints(getScAETHFlowPoints()) - .ATT_NAME(getATTNAME()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java index 3cf0d6a9341a..cfcc032e7fc8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -67,8 +67,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -134,72 +133,71 @@ private String toIndentedString(Object o) { } public static class Builder extends Animal.Builder { - - private Cat instance; - - public Builder() { - this(new Cat()); - } - - protected Builder(Cat instance) { - super(instance); - this.instance = instance; - } - - public Cat.Builder declawed(Boolean declawed) { - this.instance.declawed = declawed; - return this; + + private Cat instance; + + public Builder() { + this(new Cat()); + } + + protected Builder(Cat instance) { + super(instance); + this.instance = instance; + } + + public Cat.Builder declawed(Boolean declawed) { + this.instance.declawed = declawed; + return this; + } + + public Cat.Builder className(String className) { // inherited: true + super.className(className); + return this; + } + + public Cat.Builder color(String color) { // inherited: true + super.color(color); + return this; + } + + + /** + * returns a built Cat instance. + * + * The builder is not reusable. + */ + public Cat build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + super.build(); + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - public Cat.Builder className(String className) { // inherited: true - super.className(className); - return this; - } - - public Cat.Builder color(String color) { // inherited: true - super.color(color); - return this; - } - - + /** - * returns a built Cat instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Cat build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - super.build(); - this.instance = null; - } + public static Cat.Builder builder() { + return new Cat.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Cat.Builder toBuilder() { + return new Cat.Builder() + .className(getClassName()) + .color(getColor()) + .declawed(getDeclawed()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Cat.Builder builder() { - return new Cat.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Cat.Builder toBuilder() { - return new Cat.Builder() - .className(getClassName()) - .color(getColor()) - .declawed(getDeclawed()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index 27c1e9db9602..498b434dc9ba 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -61,8 +60,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -86,8 +84,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -141,63 +138,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Category instance; - - public Builder() { - this(new Category()); - } - - protected Builder(Category instance) { - this.instance = instance; - } - - public Category.Builder id(Long id) { - this.instance.id = id; - return this; - } - public Category.Builder name(String name) { - this.instance.name = name; - return this; + + private Category instance; + + public Builder() { + this(new Category()); + } + + protected Builder(Category instance) { + this.instance = instance; + } + + public Category.Builder id(Long id) { + this.instance.id = id; + return this; + } + public Category.Builder name(String name) { + this.instance.name = name; + return this; + } + + + /** + * returns a built Category instance. + * + * The builder is not reusable. + */ + public Category build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Category instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Category build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Category.Builder builder() { + return new Category.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Category.Builder toBuilder() { + return new Category.Builder() + .id(getId()) + .name(getName()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Category.Builder builder() { - return new Category.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Category.Builder toBuilder() { - return new Category.Builder() - .id(getId()) - .name(getName()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 9b90067d53f9..ac53d370cf9a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -68,8 +68,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -146,76 +145,75 @@ private String toIndentedString(Object o) { } public static class Builder extends ParentWithNullable.Builder { - - private ChildWithNullable instance; - - public Builder() { - this(new ChildWithNullable()); - } - - protected Builder(ChildWithNullable instance) { - super(instance); - this.instance = instance; - } - - public ChildWithNullable.Builder otherProperty(String otherProperty) { - this.instance.otherProperty = otherProperty; - return this; - } - - public ChildWithNullable.Builder type(TypeEnum type) { // inherited: true - super.type(type); - return this; - } - - public ChildWithNullable.Builder nullableProperty(String nullableProperty) { // inherited: true - super.nullableProperty(nullableProperty); - return this; - } - public ChildWithNullable.Builder nullableProperty(JsonNullable nullableProperty) { - this.instance.nullableProperty = nullableProperty; - return this; + + private ChildWithNullable instance; + + public Builder() { + this(new ChildWithNullable()); + } + + protected Builder(ChildWithNullable instance) { + super(instance); + this.instance = instance; + } + + public ChildWithNullable.Builder otherProperty(String otherProperty) { + this.instance.otherProperty = otherProperty; + return this; + } + + public ChildWithNullable.Builder type(TypeEnum type) { // inherited: true + super.type(type); + return this; + } + + public ChildWithNullable.Builder nullableProperty(String nullableProperty) { // inherited: true + super.nullableProperty(nullableProperty); + return this; + } + public ChildWithNullable.Builder nullableProperty(JsonNullable nullableProperty) { + this.instance.nullableProperty = nullableProperty; + return this; + } + + + /** + * returns a built ChildWithNullable instance. + * + * The builder is not reusable. + */ + public ChildWithNullable build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + super.build(); + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ChildWithNullable instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ChildWithNullable build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - super.build(); - this.instance = null; - } + public static ChildWithNullable.Builder builder() { + return new ChildWithNullable.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ChildWithNullable.Builder toBuilder() { + return new ChildWithNullable.Builder() + .type(getType()) + .nullableProperty(getNullableProperty()) + .otherProperty(getOtherProperty()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ChildWithNullable.Builder builder() { - return new ChildWithNullable.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ChildWithNullable.Builder toBuilder() { - return new ChildWithNullable.Builder() - .type(getType()) - .nullableProperty(getNullableProperty()) - .otherProperty(getOtherProperty()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java index c21da6c5ad32..7251e9cd9e81 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -55,8 +55,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -108,58 +107,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ClassModel instance; - - public Builder() { - this(new ClassModel()); - } - - protected Builder(ClassModel instance) { - this.instance = instance; - } - - public ClassModel.Builder propertyClass(String propertyClass) { - this.instance.propertyClass = propertyClass; - return this; + + private ClassModel instance; + + public Builder() { + this(new ClassModel()); + } + + protected Builder(ClassModel instance) { + this.instance = instance; + } + + public ClassModel.Builder propertyClass(String propertyClass) { + this.instance.propertyClass = propertyClass; + return this; + } + + + /** + * returns a built ClassModel instance. + * + * The builder is not reusable. + */ + public ClassModel build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ClassModel instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ClassModel build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ClassModel.Builder builder() { + return new ClassModel.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ClassModel.Builder toBuilder() { + return new ClassModel.Builder() + .propertyClass(getPropertyClass()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ClassModel.Builder builder() { - return new ClassModel.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ClassModel.Builder toBuilder() { - return new ClassModel.Builder() - .propertyClass(getPropertyClass()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java index bde6845077b1..3dc44f1278a3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -55,8 +55,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -108,58 +107,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Client instance; - - public Builder() { - this(new Client()); - } - - protected Builder(Client instance) { - this.instance = instance; - } - - public Client.Builder client(String client) { - this.instance.client = client; - return this; + + private Client instance; + + public Builder() { + this(new Client()); + } + + protected Builder(Client instance) { + this.instance = instance; + } + + public Client.Builder client(String client) { + this.instance.client = client; + return this; + } + + + /** + * returns a built Client instance. + * + * The builder is not reusable. + */ + public Client build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Client instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Client build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Client.Builder builder() { + return new Client.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Client.Builder toBuilder() { + return new Client.Builder() + .client(getClient()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Client.Builder builder() { - return new Client.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Client.Builder toBuilder() { - return new Client.Builder() - .client(getClient()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 3f8aeaa5fa1f..5666e38de65f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -57,8 +57,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -110,58 +109,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private DeprecatedObject instance; - - public Builder() { - this(new DeprecatedObject()); - } - - protected Builder(DeprecatedObject instance) { - this.instance = instance; - } - - public DeprecatedObject.Builder name(String name) { - this.instance.name = name; - return this; + + private DeprecatedObject instance; + + public Builder() { + this(new DeprecatedObject()); + } + + protected Builder(DeprecatedObject instance) { + this.instance = instance; + } + + public DeprecatedObject.Builder name(String name) { + this.instance.name = name; + return this; + } + + + /** + * returns a built DeprecatedObject instance. + * + * The builder is not reusable. + */ + public DeprecatedObject build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built DeprecatedObject instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public DeprecatedObject build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static DeprecatedObject.Builder builder() { + return new DeprecatedObject.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public DeprecatedObject.Builder toBuilder() { + return new DeprecatedObject.Builder() + .name(getName()); } - } - - /** - * Create a builder with no initialized field. - */ - public static DeprecatedObject.Builder builder() { - return new DeprecatedObject.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public DeprecatedObject.Builder toBuilder() { - return new DeprecatedObject.Builder() - .name(getName()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java index 893c29460708..62e0d78a4fe7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -67,8 +67,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -134,72 +133,71 @@ private String toIndentedString(Object o) { } public static class Builder extends Animal.Builder { - - private Dog instance; - - public Builder() { - this(new Dog()); - } - - protected Builder(Dog instance) { - super(instance); - this.instance = instance; - } - - public Dog.Builder breed(String breed) { - this.instance.breed = breed; - return this; + + private Dog instance; + + public Builder() { + this(new Dog()); + } + + protected Builder(Dog instance) { + super(instance); + this.instance = instance; + } + + public Dog.Builder breed(String breed) { + this.instance.breed = breed; + return this; + } + + public Dog.Builder className(String className) { // inherited: true + super.className(className); + return this; + } + + public Dog.Builder color(String color) { // inherited: true + super.color(color); + return this; + } + + + /** + * returns a built Dog instance. + * + * The builder is not reusable. + */ + public Dog build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + super.build(); + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - public Dog.Builder className(String className) { // inherited: true - super.className(className); - return this; - } - - public Dog.Builder color(String color) { // inherited: true - super.color(color); - return this; - } - - + /** - * returns a built Dog instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Dog build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - super.build(); - this.instance = null; - } + public static Dog.Builder builder() { + return new Dog.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Dog.Builder toBuilder() { + return new Dog.Builder() + .className(getClassName()) + .color(getColor()) + .breed(getBreed()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Dog.Builder builder() { - return new Dog.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Dog.Builder toBuilder() { - return new Dog.Builder() - .className(getClassName()) - .color(getColor()) - .breed(getBreed()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java index 34839da447e3..559a88266e8a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { } @@ -134,8 +131,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -167,8 +163,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -222,63 +217,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private EnumArrays instance; - - public Builder() { - this(new EnumArrays()); - } - - protected Builder(EnumArrays instance) { - this.instance = instance; - } - - public EnumArrays.Builder justSymbol(JustSymbolEnum justSymbol) { - this.instance.justSymbol = justSymbol; - return this; - } - public EnumArrays.Builder arrayEnum(List arrayEnum) { - this.instance.arrayEnum = arrayEnum; - return this; + + private EnumArrays instance; + + public Builder() { + this(new EnumArrays()); + } + + protected Builder(EnumArrays instance) { + this.instance = instance; + } + + public EnumArrays.Builder justSymbol(JustSymbolEnum justSymbol) { + this.instance.justSymbol = justSymbol; + return this; + } + public EnumArrays.Builder arrayEnum(List arrayEnum) { + this.instance.arrayEnum = arrayEnum; + return this; + } + + + /** + * returns a built EnumArrays instance. + * + * The builder is not reusable. + */ + public EnumArrays build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built EnumArrays instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public EnumArrays build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static EnumArrays.Builder builder() { + return new EnumArrays.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public EnumArrays.Builder toBuilder() { + return new EnumArrays.Builder() + .justSymbol(getJustSymbol()) + .arrayEnum(getArrayEnum()); } - } - - /** - * Create a builder with no initialized field. - */ - public static EnumArrays.Builder builder() { - return new EnumArrays.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public EnumArrays.Builder toBuilder() { - return new EnumArrays.Builder() - .justSymbol(getJustSymbol()) - .arrayEnum(getArrayEnum()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java index 1ae323dee5aa..1cb56d9f330e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -250,8 +239,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -275,8 +263,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -300,8 +287,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -325,8 +311,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -350,8 +335,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -359,7 +343,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -383,8 +366,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -408,8 +390,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -433,8 +414,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -511,97 +491,96 @@ private String toIndentedString(Object o) { } public static class Builder { - - private EnumTest instance; - - public Builder() { - this(new EnumTest()); - } - - protected Builder(EnumTest instance) { - this.instance = instance; - } - - public EnumTest.Builder enumString(EnumStringEnum enumString) { - this.instance.enumString = enumString; - return this; - } - public EnumTest.Builder enumStringRequired(EnumStringRequiredEnum enumStringRequired) { - this.instance.enumStringRequired = enumStringRequired; - return this; - } - public EnumTest.Builder enumInteger(EnumIntegerEnum enumInteger) { - this.instance.enumInteger = enumInteger; - return this; - } - public EnumTest.Builder enumNumber(EnumNumberEnum enumNumber) { - this.instance.enumNumber = enumNumber; - return this; - } - public EnumTest.Builder outerEnum(OuterEnum outerEnum) { - this.instance.outerEnum = JsonNullable.of(outerEnum); - return this; - } - public EnumTest.Builder outerEnum(JsonNullable outerEnum) { - this.instance.outerEnum = outerEnum; - return this; - } - public EnumTest.Builder outerEnumInteger(OuterEnumInteger outerEnumInteger) { - this.instance.outerEnumInteger = outerEnumInteger; - return this; - } - public EnumTest.Builder outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { - this.instance.outerEnumDefaultValue = outerEnumDefaultValue; - return this; - } - public EnumTest.Builder outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { - this.instance.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; - return this; + + private EnumTest instance; + + public Builder() { + this(new EnumTest()); + } + + protected Builder(EnumTest instance) { + this.instance = instance; + } + + public EnumTest.Builder enumString(EnumStringEnum enumString) { + this.instance.enumString = enumString; + return this; + } + public EnumTest.Builder enumStringRequired(EnumStringRequiredEnum enumStringRequired) { + this.instance.enumStringRequired = enumStringRequired; + return this; + } + public EnumTest.Builder enumInteger(EnumIntegerEnum enumInteger) { + this.instance.enumInteger = enumInteger; + return this; + } + public EnumTest.Builder enumNumber(EnumNumberEnum enumNumber) { + this.instance.enumNumber = enumNumber; + return this; + } + public EnumTest.Builder outerEnum(OuterEnum outerEnum) { + this.instance.outerEnum = JsonNullable.of(outerEnum); + return this; + } + public EnumTest.Builder outerEnum(JsonNullable outerEnum) { + this.instance.outerEnum = outerEnum; + return this; + } + public EnumTest.Builder outerEnumInteger(OuterEnumInteger outerEnumInteger) { + this.instance.outerEnumInteger = outerEnumInteger; + return this; + } + public EnumTest.Builder outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { + this.instance.outerEnumDefaultValue = outerEnumDefaultValue; + return this; + } + public EnumTest.Builder outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { + this.instance.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; + return this; + } + + + /** + * returns a built EnumTest instance. + * + * The builder is not reusable. + */ + public EnumTest build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built EnumTest instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public EnumTest build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static EnumTest.Builder builder() { + return new EnumTest.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public EnumTest.Builder toBuilder() { + return new EnumTest.Builder() + .enumString(getEnumString()) + .enumStringRequired(getEnumStringRequired()) + .enumInteger(getEnumInteger()) + .enumNumber(getEnumNumber()) + .outerEnum(getOuterEnum()) + .outerEnumInteger(getOuterEnumInteger()) + .outerEnumDefaultValue(getOuterEnumDefaultValue()) + .outerEnumIntegerDefaultValue(getOuterEnumIntegerDefaultValue()); } - } - - /** - * Create a builder with no initialized field. - */ - public static EnumTest.Builder builder() { - return new EnumTest.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public EnumTest.Builder toBuilder() { - return new EnumTest.Builder() - .enumString(getEnumString()) - .enumStringRequired(getEnumStringRequired()) - .enumInteger(getEnumInteger()) - .enumNumber(getEnumNumber()) - .outerEnum(getOuterEnum()) - .outerEnumInteger(getOuterEnumInteger()) - .outerEnumDefaultValue(getOuterEnumDefaultValue()) - .outerEnumIntegerDefaultValue(getOuterEnumIntegerDefaultValue()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index e87525f95499..999116ee69dd 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } @@ -65,8 +64,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -98,8 +96,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -153,63 +150,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private FakeBigDecimalMap200Response instance; - - public Builder() { - this(new FakeBigDecimalMap200Response()); - } - - protected Builder(FakeBigDecimalMap200Response instance) { - this.instance = instance; - } - - public FakeBigDecimalMap200Response.Builder someId(BigDecimal someId) { - this.instance.someId = someId; - return this; - } - public FakeBigDecimalMap200Response.Builder someMap(Map someMap) { - this.instance.someMap = someMap; - return this; + + private FakeBigDecimalMap200Response instance; + + public Builder() { + this(new FakeBigDecimalMap200Response()); + } + + protected Builder(FakeBigDecimalMap200Response instance) { + this.instance = instance; + } + + public FakeBigDecimalMap200Response.Builder someId(BigDecimal someId) { + this.instance.someId = someId; + return this; + } + public FakeBigDecimalMap200Response.Builder someMap(Map someMap) { + this.instance.someMap = someMap; + return this; + } + + + /** + * returns a built FakeBigDecimalMap200Response instance. + * + * The builder is not reusable. + */ + public FakeBigDecimalMap200Response build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built FakeBigDecimalMap200Response instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public FakeBigDecimalMap200Response build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static FakeBigDecimalMap200Response.Builder builder() { + return new FakeBigDecimalMap200Response.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public FakeBigDecimalMap200Response.Builder toBuilder() { + return new FakeBigDecimalMap200Response.Builder() + .someId(getSomeId()) + .someMap(getSomeMap()); } - } - - /** - * Create a builder with no initialized field. - */ - public static FakeBigDecimalMap200Response.Builder builder() { - return new FakeBigDecimalMap200Response.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public FakeBigDecimalMap200Response.Builder toBuilder() { - return new FakeBigDecimalMap200Response.Builder() - .someId(getSomeId()) - .someMap(getSomeMap()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 551d58b14aa3..4fd8be97f3b8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { } @@ -65,8 +64,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -98,8 +96,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -153,63 +150,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private FileSchemaTestClass instance; - - public Builder() { - this(new FileSchemaTestClass()); - } - - protected Builder(FileSchemaTestClass instance) { - this.instance = instance; - } - - public FileSchemaTestClass.Builder _file(ModelFile _file) { - this.instance._file = _file; - return this; - } - public FileSchemaTestClass.Builder files(List files) { - this.instance.files = files; - return this; + + private FileSchemaTestClass instance; + + public Builder() { + this(new FileSchemaTestClass()); + } + + protected Builder(FileSchemaTestClass instance) { + this.instance = instance; + } + + public FileSchemaTestClass.Builder _file(ModelFile _file) { + this.instance._file = _file; + return this; + } + public FileSchemaTestClass.Builder files(List files) { + this.instance.files = files; + return this; + } + + + /** + * returns a built FileSchemaTestClass instance. + * + * The builder is not reusable. + */ + public FileSchemaTestClass build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built FileSchemaTestClass instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public FileSchemaTestClass build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static FileSchemaTestClass.Builder builder() { + return new FileSchemaTestClass.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public FileSchemaTestClass.Builder toBuilder() { + return new FileSchemaTestClass.Builder() + ._file(getFile()) + .files(getFiles()); } - } - - /** - * Create a builder with no initialized field. - */ - public static FileSchemaTestClass.Builder builder() { - return new FileSchemaTestClass.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public FileSchemaTestClass.Builder toBuilder() { - return new FileSchemaTestClass.Builder() - ._file(getFile()) - .files(getFiles()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java index 674fb880f645..07fa0a4afb3d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -55,8 +55,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -108,58 +107,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Foo instance; - - public Builder() { - this(new Foo()); - } - - protected Builder(Foo instance) { - this.instance = instance; - } - - public Foo.Builder bar(String bar) { - this.instance.bar = bar; - return this; + + private Foo instance; + + public Builder() { + this(new Foo()); + } + + protected Builder(Foo instance) { + this.instance = instance; + } + + public Foo.Builder bar(String bar) { + this.instance.bar = bar; + return this; + } + + + /** + * returns a built Foo instance. + * + * The builder is not reusable. + */ + public Foo build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Foo instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Foo build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Foo.Builder builder() { + return new Foo.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Foo.Builder toBuilder() { + return new Foo.Builder() + .bar(getBar()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Foo.Builder builder() { - return new Foo.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Foo.Builder toBuilder() { - return new Foo.Builder() - .bar(getBar()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 944edea0aeb1..04d6ae8a8d78 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -57,8 +57,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -110,58 +109,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private FooGetDefaultResponse instance; - - public Builder() { - this(new FooGetDefaultResponse()); - } - - protected Builder(FooGetDefaultResponse instance) { - this.instance = instance; - } - - public FooGetDefaultResponse.Builder string(Foo string) { - this.instance.string = string; - return this; + + private FooGetDefaultResponse instance; + + public Builder() { + this(new FooGetDefaultResponse()); + } + + protected Builder(FooGetDefaultResponse instance) { + this.instance = instance; + } + + public FooGetDefaultResponse.Builder string(Foo string) { + this.instance.string = string; + return this; + } + + + /** + * returns a built FooGetDefaultResponse instance. + * + * The builder is not reusable. + */ + public FooGetDefaultResponse build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built FooGetDefaultResponse instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public FooGetDefaultResponse build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static FooGetDefaultResponse.Builder builder() { + return new FooGetDefaultResponse.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public FooGetDefaultResponse.Builder toBuilder() { + return new FooGetDefaultResponse.Builder() + .string(getString()); } - } - - /** - * Create a builder with no initialized field. - */ - public static FooGetDefaultResponse.Builder builder() { - return new FooGetDefaultResponse.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public FooGetDefaultResponse.Builder toBuilder() { - return new FooGetDefaultResponse.Builder() - .string(getString()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java index 9b629a311cce..bba0a935ec32 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -153,8 +138,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -180,8 +164,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -205,8 +188,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -232,8 +214,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -259,8 +240,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -286,8 +266,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -311,8 +290,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -336,8 +314,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -361,8 +338,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -386,8 +362,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -411,8 +386,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -436,8 +410,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -461,8 +434,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -486,8 +458,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -511,8 +482,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -536,8 +506,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -619,133 +588,132 @@ private String toIndentedString(Object o) { } public static class Builder { - - private FormatTest instance; - - public Builder() { - this(new FormatTest()); - } - - protected Builder(FormatTest instance) { - this.instance = instance; - } - - public FormatTest.Builder integer(Integer integer) { - this.instance.integer = integer; - return this; - } - public FormatTest.Builder int32(Integer int32) { - this.instance.int32 = int32; - return this; - } - public FormatTest.Builder int64(Long int64) { - this.instance.int64 = int64; - return this; - } - public FormatTest.Builder number(BigDecimal number) { - this.instance.number = number; - return this; - } - public FormatTest.Builder _float(Float _float) { - this.instance._float = _float; - return this; - } - public FormatTest.Builder _double(Double _double) { - this.instance._double = _double; - return this; - } - public FormatTest.Builder decimal(BigDecimal decimal) { - this.instance.decimal = decimal; - return this; - } - public FormatTest.Builder string(String string) { - this.instance.string = string; - return this; - } - public FormatTest.Builder _byte(byte[] _byte) { - this.instance._byte = _byte; - return this; - } - public FormatTest.Builder binary(File binary) { - this.instance.binary = binary; - return this; - } - public FormatTest.Builder date(LocalDate date) { - this.instance.date = date; - return this; - } - public FormatTest.Builder dateTime(OffsetDateTime dateTime) { - this.instance.dateTime = dateTime; - return this; - } - public FormatTest.Builder uuid(UUID uuid) { - this.instance.uuid = uuid; - return this; - } - public FormatTest.Builder password(String password) { - this.instance.password = password; - return this; - } - public FormatTest.Builder patternWithDigits(String patternWithDigits) { - this.instance.patternWithDigits = patternWithDigits; - return this; - } - public FormatTest.Builder patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { - this.instance.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; - return this; + + private FormatTest instance; + + public Builder() { + this(new FormatTest()); + } + + protected Builder(FormatTest instance) { + this.instance = instance; + } + + public FormatTest.Builder integer(Integer integer) { + this.instance.integer = integer; + return this; + } + public FormatTest.Builder int32(Integer int32) { + this.instance.int32 = int32; + return this; + } + public FormatTest.Builder int64(Long int64) { + this.instance.int64 = int64; + return this; + } + public FormatTest.Builder number(BigDecimal number) { + this.instance.number = number; + return this; + } + public FormatTest.Builder _float(Float _float) { + this.instance._float = _float; + return this; + } + public FormatTest.Builder _double(Double _double) { + this.instance._double = _double; + return this; + } + public FormatTest.Builder decimal(BigDecimal decimal) { + this.instance.decimal = decimal; + return this; + } + public FormatTest.Builder string(String string) { + this.instance.string = string; + return this; + } + public FormatTest.Builder _byte(byte[] _byte) { + this.instance._byte = _byte; + return this; + } + public FormatTest.Builder binary(File binary) { + this.instance.binary = binary; + return this; + } + public FormatTest.Builder date(LocalDate date) { + this.instance.date = date; + return this; + } + public FormatTest.Builder dateTime(OffsetDateTime dateTime) { + this.instance.dateTime = dateTime; + return this; + } + public FormatTest.Builder uuid(UUID uuid) { + this.instance.uuid = uuid; + return this; + } + public FormatTest.Builder password(String password) { + this.instance.password = password; + return this; + } + public FormatTest.Builder patternWithDigits(String patternWithDigits) { + this.instance.patternWithDigits = patternWithDigits; + return this; + } + public FormatTest.Builder patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { + this.instance.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; + return this; + } + + + /** + * returns a built FormatTest instance. + * + * The builder is not reusable. + */ + public FormatTest build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built FormatTest instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public FormatTest build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static FormatTest.Builder builder() { + return new FormatTest.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public FormatTest.Builder toBuilder() { + return new FormatTest.Builder() + .integer(getInteger()) + .int32(getInt32()) + .int64(getInt64()) + .number(getNumber()) + ._float(getFloat()) + ._double(getDouble()) + .decimal(getDecimal()) + .string(getString()) + ._byte(getByte()) + .binary(getBinary()) + .date(getDate()) + .dateTime(getDateTime()) + .uuid(getUuid()) + .password(getPassword()) + .patternWithDigits(getPatternWithDigits()) + .patternWithDigitsAndDelimiter(getPatternWithDigitsAndDelimiter()); } - } - - /** - * Create a builder with no initialized field. - */ - public static FormatTest.Builder builder() { - return new FormatTest.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public FormatTest.Builder toBuilder() { - return new FormatTest.Builder() - .integer(getInteger()) - .int32(getInt32()) - .int64(getInt64()) - .number(getNumber()) - ._float(getFloat()) - ._double(getDouble()) - .decimal(getDecimal()) - .string(getString()) - ._byte(getByte()) - .binary(getBinary()) - .date(getDate()) - .dateTime(getDateTime()) - .uuid(getUuid()) - .password(getPassword()) - .patternWithDigits(getPatternWithDigits()) - .patternWithDigitsAndDelimiter(getPatternWithDigitsAndDelimiter()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 01441f80c3b1..0f17c8acef34 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { @@ -124,63 +121,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private HasOnlyReadOnly instance; - - public Builder() { - this(new HasOnlyReadOnly()); - } - - protected Builder(HasOnlyReadOnly instance) { - this.instance = instance; - } - - public HasOnlyReadOnly.Builder bar(String bar) { - this.instance.bar = bar; - return this; - } - public HasOnlyReadOnly.Builder foo(String foo) { - this.instance.foo = foo; - return this; + + private HasOnlyReadOnly instance; + + public Builder() { + this(new HasOnlyReadOnly()); + } + + protected Builder(HasOnlyReadOnly instance) { + this.instance = instance; + } + + public HasOnlyReadOnly.Builder bar(String bar) { + this.instance.bar = bar; + return this; + } + public HasOnlyReadOnly.Builder foo(String foo) { + this.instance.foo = foo; + return this; + } + + + /** + * returns a built HasOnlyReadOnly instance. + * + * The builder is not reusable. + */ + public HasOnlyReadOnly build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built HasOnlyReadOnly instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public HasOnlyReadOnly build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static HasOnlyReadOnly.Builder builder() { + return new HasOnlyReadOnly.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public HasOnlyReadOnly.Builder toBuilder() { + return new HasOnlyReadOnly.Builder() + .bar(getBar()) + .foo(getFoo()); } - } - - /** - * Create a builder with no initialized field. - */ - public static HasOnlyReadOnly.Builder builder() { - return new HasOnlyReadOnly.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public HasOnlyReadOnly.Builder toBuilder() { - return new HasOnlyReadOnly.Builder() - .bar(getBar()) - .foo(getFoo()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java index a36cead6d17b..495378890e51 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -59,8 +59,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -68,7 +67,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } @@ -131,62 +129,61 @@ private String toIndentedString(Object o) { } public static class Builder { - - private HealthCheckResult instance; - - public Builder() { - this(new HealthCheckResult()); - } - - protected Builder(HealthCheckResult instance) { - this.instance = instance; - } - - public HealthCheckResult.Builder nullableMessage(String nullableMessage) { - this.instance.nullableMessage = JsonNullable.of(nullableMessage); - return this; - } - public HealthCheckResult.Builder nullableMessage(JsonNullable nullableMessage) { - this.instance.nullableMessage = nullableMessage; - return this; + + private HealthCheckResult instance; + + public Builder() { + this(new HealthCheckResult()); + } + + protected Builder(HealthCheckResult instance) { + this.instance = instance; + } + + public HealthCheckResult.Builder nullableMessage(String nullableMessage) { + this.instance.nullableMessage = JsonNullable.of(nullableMessage); + return this; + } + public HealthCheckResult.Builder nullableMessage(JsonNullable nullableMessage) { + this.instance.nullableMessage = nullableMessage; + return this; + } + + + /** + * returns a built HealthCheckResult instance. + * + * The builder is not reusable. + */ + public HealthCheckResult build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built HealthCheckResult instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public HealthCheckResult build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static HealthCheckResult.Builder builder() { + return new HealthCheckResult.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public HealthCheckResult.Builder toBuilder() { + return new HealthCheckResult.Builder() + .nullableMessage(getNullableMessage()); } - } - - /** - * Create a builder with no initialized field. - */ - public static HealthCheckResult.Builder builder() { - return new HealthCheckResult.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public HealthCheckResult.Builder toBuilder() { - return new HealthCheckResult.Builder() - .nullableMessage(getNullableMessage()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java index dc9b7536a7fa..9030d17d35b8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString; + @javax.annotation.Nullable private Map> mapMapOfString; /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { } @@ -118,8 +114,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -151,8 +146,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -184,8 +178,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -217,8 +210,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -276,73 +268,72 @@ private String toIndentedString(Object o) { } public static class Builder { - - private MapTest instance; - - public Builder() { - this(new MapTest()); - } - - protected Builder(MapTest instance) { - this.instance = instance; - } - - public MapTest.Builder mapMapOfString(Map> mapMapOfString) { - this.instance.mapMapOfString = mapMapOfString; - return this; - } - public MapTest.Builder mapOfEnumString(Map mapOfEnumString) { - this.instance.mapOfEnumString = mapOfEnumString; - return this; - } - public MapTest.Builder directMap(Map directMap) { - this.instance.directMap = directMap; - return this; - } - public MapTest.Builder indirectMap(Map indirectMap) { - this.instance.indirectMap = indirectMap; - return this; + + private MapTest instance; + + public Builder() { + this(new MapTest()); + } + + protected Builder(MapTest instance) { + this.instance = instance; + } + + public MapTest.Builder mapMapOfString(Map> mapMapOfString) { + this.instance.mapMapOfString = mapMapOfString; + return this; + } + public MapTest.Builder mapOfEnumString(Map mapOfEnumString) { + this.instance.mapOfEnumString = mapOfEnumString; + return this; + } + public MapTest.Builder directMap(Map directMap) { + this.instance.directMap = directMap; + return this; + } + public MapTest.Builder indirectMap(Map indirectMap) { + this.instance.indirectMap = indirectMap; + return this; + } + + + /** + * returns a built MapTest instance. + * + * The builder is not reusable. + */ + public MapTest build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built MapTest instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public MapTest build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static MapTest.Builder builder() { + return new MapTest.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public MapTest.Builder toBuilder() { + return new MapTest.Builder() + .mapMapOfString(getMapMapOfString()) + .mapOfEnumString(getMapOfEnumString()) + .directMap(getDirectMap()) + .indirectMap(getIndirectMap()); } - } - - /** - * Create a builder with no initialized field. - */ - public static MapTest.Builder builder() { - return new MapTest.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public MapTest.Builder toBuilder() { - return new MapTest.Builder() - .mapMapOfString(getMapMapOfString()) - .mapOfEnumString(getMapOfEnumString()) - .directMap(getDirectMap()) - .indirectMap(getIndirectMap()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 69ea559db1d1..3c9eaf588d72 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -72,8 +70,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -97,8 +94,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -130,8 +126,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -187,68 +182,67 @@ private String toIndentedString(Object o) { } public static class Builder { - - private MixedPropertiesAndAdditionalPropertiesClass instance; - - public Builder() { - this(new MixedPropertiesAndAdditionalPropertiesClass()); - } - - protected Builder(MixedPropertiesAndAdditionalPropertiesClass instance) { - this.instance = instance; - } - - public MixedPropertiesAndAdditionalPropertiesClass.Builder uuid(UUID uuid) { - this.instance.uuid = uuid; - return this; - } - public MixedPropertiesAndAdditionalPropertiesClass.Builder dateTime(OffsetDateTime dateTime) { - this.instance.dateTime = dateTime; - return this; - } - public MixedPropertiesAndAdditionalPropertiesClass.Builder map(Map map) { - this.instance.map = map; - return this; + + private MixedPropertiesAndAdditionalPropertiesClass instance; + + public Builder() { + this(new MixedPropertiesAndAdditionalPropertiesClass()); + } + + protected Builder(MixedPropertiesAndAdditionalPropertiesClass instance) { + this.instance = instance; + } + + public MixedPropertiesAndAdditionalPropertiesClass.Builder uuid(UUID uuid) { + this.instance.uuid = uuid; + return this; + } + public MixedPropertiesAndAdditionalPropertiesClass.Builder dateTime(OffsetDateTime dateTime) { + this.instance.dateTime = dateTime; + return this; + } + public MixedPropertiesAndAdditionalPropertiesClass.Builder map(Map map) { + this.instance.map = map; + return this; + } + + + /** + * returns a built MixedPropertiesAndAdditionalPropertiesClass instance. + * + * The builder is not reusable. + */ + public MixedPropertiesAndAdditionalPropertiesClass build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built MixedPropertiesAndAdditionalPropertiesClass instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public MixedPropertiesAndAdditionalPropertiesClass build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static MixedPropertiesAndAdditionalPropertiesClass.Builder builder() { + return new MixedPropertiesAndAdditionalPropertiesClass.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public MixedPropertiesAndAdditionalPropertiesClass.Builder toBuilder() { + return new MixedPropertiesAndAdditionalPropertiesClass.Builder() + .uuid(getUuid()) + .dateTime(getDateTime()) + .map(getMap()); } - } - - /** - * Create a builder with no initialized field. - */ - public static MixedPropertiesAndAdditionalPropertiesClass.Builder builder() { - return new MixedPropertiesAndAdditionalPropertiesClass.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public MixedPropertiesAndAdditionalPropertiesClass.Builder toBuilder() { - return new MixedPropertiesAndAdditionalPropertiesClass.Builder() - .uuid(getUuid()) - .dateTime(getDateTime()) - .map(getMap()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java index 286cfcc9f688..b884f2318c07 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -62,8 +61,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -87,8 +85,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -142,63 +139,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Model200Response instance; - - public Builder() { - this(new Model200Response()); - } - - protected Builder(Model200Response instance) { - this.instance = instance; - } - - public Model200Response.Builder name(Integer name) { - this.instance.name = name; - return this; - } - public Model200Response.Builder propertyClass(String propertyClass) { - this.instance.propertyClass = propertyClass; - return this; + + private Model200Response instance; + + public Builder() { + this(new Model200Response()); + } + + protected Builder(Model200Response instance) { + this.instance = instance; + } + + public Model200Response.Builder name(Integer name) { + this.instance.name = name; + return this; + } + public Model200Response.Builder propertyClass(String propertyClass) { + this.instance.propertyClass = propertyClass; + return this; + } + + + /** + * returns a built Model200Response instance. + * + * The builder is not reusable. + */ + public Model200Response build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Model200Response instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Model200Response build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Model200Response.Builder builder() { + return new Model200Response.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Model200Response.Builder toBuilder() { + return new Model200Response.Builder() + .name(getName()) + .propertyClass(getPropertyClass()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Model200Response.Builder builder() { - return new Model200Response.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Model200Response.Builder toBuilder() { - return new Model200Response.Builder() - .name(getName()) - .propertyClass(getPropertyClass()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 9ddff62a18e0..472dd2005517 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -68,8 +66,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -93,8 +90,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -118,8 +114,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -175,68 +170,67 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ModelApiResponse instance; - - public Builder() { - this(new ModelApiResponse()); - } - - protected Builder(ModelApiResponse instance) { - this.instance = instance; - } - - public ModelApiResponse.Builder code(Integer code) { - this.instance.code = code; - return this; - } - public ModelApiResponse.Builder type(String type) { - this.instance.type = type; - return this; - } - public ModelApiResponse.Builder message(String message) { - this.instance.message = message; - return this; + + private ModelApiResponse instance; + + public Builder() { + this(new ModelApiResponse()); + } + + protected Builder(ModelApiResponse instance) { + this.instance = instance; + } + + public ModelApiResponse.Builder code(Integer code) { + this.instance.code = code; + return this; + } + public ModelApiResponse.Builder type(String type) { + this.instance.type = type; + return this; + } + public ModelApiResponse.Builder message(String message) { + this.instance.message = message; + return this; + } + + + /** + * returns a built ModelApiResponse instance. + * + * The builder is not reusable. + */ + public ModelApiResponse build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ModelApiResponse instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ModelApiResponse build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ModelApiResponse.Builder builder() { + return new ModelApiResponse.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ModelApiResponse.Builder toBuilder() { + return new ModelApiResponse.Builder() + .code(getCode()) + .type(getType()) + .message(getMessage()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ModelApiResponse.Builder builder() { - return new ModelApiResponse.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ModelApiResponse.Builder toBuilder() { - return new ModelApiResponse.Builder() - .code(getCode()) - .type(getType()) - .message(getMessage()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java index fd8b90867915..edc4ff9f21e7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -56,8 +56,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ModelFile instance; - - public Builder() { - this(new ModelFile()); - } - - protected Builder(ModelFile instance) { - this.instance = instance; - } - - public ModelFile.Builder sourceURI(String sourceURI) { - this.instance.sourceURI = sourceURI; - return this; + + private ModelFile instance; + + public Builder() { + this(new ModelFile()); + } + + protected Builder(ModelFile instance) { + this.instance = instance; + } + + public ModelFile.Builder sourceURI(String sourceURI) { + this.instance.sourceURI = sourceURI; + return this; + } + + + /** + * returns a built ModelFile instance. + * + * The builder is not reusable. + */ + public ModelFile build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ModelFile instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ModelFile build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ModelFile.Builder builder() { + return new ModelFile.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ModelFile.Builder toBuilder() { + return new ModelFile.Builder() + .sourceURI(getSourceURI()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ModelFile.Builder builder() { - return new ModelFile.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ModelFile.Builder toBuilder() { - return new ModelFile.Builder() - .sourceURI(getSourceURI()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java index 7168306a4241..26c163e45f56 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -56,8 +56,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ModelList instance; - - public Builder() { - this(new ModelList()); - } - - protected Builder(ModelList instance) { - this.instance = instance; - } - - public ModelList.Builder _123list(String _123list) { - this.instance._123list = _123list; - return this; + + private ModelList instance; + + public Builder() { + this(new ModelList()); + } + + protected Builder(ModelList instance) { + this.instance = instance; + } + + public ModelList.Builder _123list(String _123list) { + this.instance._123list = _123list; + return this; + } + + + /** + * returns a built ModelList instance. + * + * The builder is not reusable. + */ + public ModelList build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ModelList instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ModelList build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ModelList.Builder builder() { + return new ModelList.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ModelList.Builder toBuilder() { + return new ModelList.Builder() + ._123list(get123list()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ModelList.Builder builder() { - return new ModelList.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ModelList.Builder toBuilder() { - return new ModelList.Builder() - ._123list(get123list()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java index e945d4da4286..d6717d4264f1 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -56,8 +56,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ModelReturn instance; - - public Builder() { - this(new ModelReturn()); - } - - protected Builder(ModelReturn instance) { - this.instance = instance; - } - - public ModelReturn.Builder _return(Integer _return) { - this.instance._return = _return; - return this; + + private ModelReturn instance; + + public Builder() { + this(new ModelReturn()); + } + + protected Builder(ModelReturn instance) { + this.instance = instance; + } + + public ModelReturn.Builder _return(Integer _return) { + this.instance._return = _return; + return this; + } + + + /** + * returns a built ModelReturn instance. + * + * The builder is not reusable. + */ + public ModelReturn build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ModelReturn instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ModelReturn build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ModelReturn.Builder builder() { + return new ModelReturn.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ModelReturn.Builder toBuilder() { + return new ModelReturn.Builder() + ._return(getReturn()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ModelReturn.Builder builder() { - return new ModelReturn.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ModelReturn.Builder toBuilder() { - return new ModelReturn.Builder() - ._return(getReturn()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java index 727f8d366ebe..c16056f889cc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -85,8 +82,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -104,8 +100,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -124,8 +119,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -143,8 +137,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { @@ -197,73 +190,72 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Name instance; - - public Builder() { - this(new Name()); - } - - protected Builder(Name instance) { - this.instance = instance; - } - - public Name.Builder name(Integer name) { - this.instance.name = name; - return this; - } - public Name.Builder snakeCase(Integer snakeCase) { - this.instance.snakeCase = snakeCase; - return this; - } - public Name.Builder property(String property) { - this.instance.property = property; - return this; - } - public Name.Builder _123number(Integer _123number) { - this.instance._123number = _123number; - return this; + + private Name instance; + + public Builder() { + this(new Name()); + } + + protected Builder(Name instance) { + this.instance = instance; + } + + public Name.Builder name(Integer name) { + this.instance.name = name; + return this; + } + public Name.Builder snakeCase(Integer snakeCase) { + this.instance.snakeCase = snakeCase; + return this; + } + public Name.Builder property(String property) { + this.instance.property = property; + return this; + } + public Name.Builder _123number(Integer _123number) { + this.instance._123number = _123number; + return this; + } + + + /** + * returns a built Name instance. + * + * The builder is not reusable. + */ + public Name build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Name instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Name build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Name.Builder builder() { + return new Name.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Name.Builder toBuilder() { + return new Name.Builder() + .name(getName()) + .snakeCase(getSnakeCase()) + .property(getProperty()) + ._123number(get123number()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Name.Builder builder() { - return new Name.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Name.Builder toBuilder() { - return new Name.Builder() - .name(getName()) - .snakeCase(getSnakeCase()) - .property(getProperty()) - ._123number(get123number()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java index db322081dc9f..8f7b1f7c35f3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -135,8 +124,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -144,7 +132,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -168,8 +155,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -177,7 +163,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -201,8 +186,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -210,7 +194,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -234,8 +217,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -243,7 +225,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -267,8 +248,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -276,7 +256,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -300,8 +279,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -309,7 +287,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -345,8 +322,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -354,7 +330,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -390,8 +365,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -399,7 +373,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -431,8 +404,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -468,8 +440,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -477,7 +448,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -513,8 +483,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -522,7 +491,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -554,8 +522,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -642,153 +609,152 @@ private String toIndentedString(Object o) { } public static class Builder { - - private NullableClass instance; - - public Builder() { - this(new NullableClass()); - } - - protected Builder(NullableClass instance) { - this.instance = instance; - } - - public NullableClass.Builder integerProp(Integer integerProp) { - this.instance.integerProp = JsonNullable.of(integerProp); - return this; - } - public NullableClass.Builder integerProp(JsonNullable integerProp) { - this.instance.integerProp = integerProp; - return this; - } - public NullableClass.Builder numberProp(BigDecimal numberProp) { - this.instance.numberProp = JsonNullable.of(numberProp); - return this; - } - public NullableClass.Builder numberProp(JsonNullable numberProp) { - this.instance.numberProp = numberProp; - return this; - } - public NullableClass.Builder booleanProp(Boolean booleanProp) { - this.instance.booleanProp = JsonNullable.of(booleanProp); - return this; - } - public NullableClass.Builder booleanProp(JsonNullable booleanProp) { - this.instance.booleanProp = booleanProp; - return this; - } - public NullableClass.Builder stringProp(String stringProp) { - this.instance.stringProp = JsonNullable.of(stringProp); - return this; - } - public NullableClass.Builder stringProp(JsonNullable stringProp) { - this.instance.stringProp = stringProp; - return this; - } - public NullableClass.Builder dateProp(LocalDate dateProp) { - this.instance.dateProp = JsonNullable.of(dateProp); - return this; - } - public NullableClass.Builder dateProp(JsonNullable dateProp) { - this.instance.dateProp = dateProp; - return this; - } - public NullableClass.Builder datetimeProp(OffsetDateTime datetimeProp) { - this.instance.datetimeProp = JsonNullable.of(datetimeProp); - return this; - } - public NullableClass.Builder datetimeProp(JsonNullable datetimeProp) { - this.instance.datetimeProp = datetimeProp; - return this; - } - public NullableClass.Builder arrayNullableProp(List arrayNullableProp) { - this.instance.arrayNullableProp = JsonNullable.>of(arrayNullableProp); - return this; - } - public NullableClass.Builder arrayNullableProp(JsonNullable> arrayNullableProp) { - this.instance.arrayNullableProp = arrayNullableProp; - return this; - } - public NullableClass.Builder arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { - this.instance.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); - return this; - } - public NullableClass.Builder arrayAndItemsNullableProp(JsonNullable> arrayAndItemsNullableProp) { - this.instance.arrayAndItemsNullableProp = arrayAndItemsNullableProp; - return this; - } - public NullableClass.Builder arrayItemsNullable(List arrayItemsNullable) { - this.instance.arrayItemsNullable = arrayItemsNullable; - return this; - } - public NullableClass.Builder objectNullableProp(Map objectNullableProp) { - this.instance.objectNullableProp = JsonNullable.>of(objectNullableProp); - return this; - } - public NullableClass.Builder objectNullableProp(JsonNullable> objectNullableProp) { - this.instance.objectNullableProp = objectNullableProp; - return this; - } - public NullableClass.Builder objectAndItemsNullableProp(Map objectAndItemsNullableProp) { - this.instance.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); - return this; - } - public NullableClass.Builder objectAndItemsNullableProp(JsonNullable> objectAndItemsNullableProp) { - this.instance.objectAndItemsNullableProp = objectAndItemsNullableProp; - return this; - } - public NullableClass.Builder objectItemsNullable(Map objectItemsNullable) { - this.instance.objectItemsNullable = objectItemsNullable; - return this; + + private NullableClass instance; + + public Builder() { + this(new NullableClass()); + } + + protected Builder(NullableClass instance) { + this.instance = instance; + } + + public NullableClass.Builder integerProp(Integer integerProp) { + this.instance.integerProp = JsonNullable.of(integerProp); + return this; + } + public NullableClass.Builder integerProp(JsonNullable integerProp) { + this.instance.integerProp = integerProp; + return this; + } + public NullableClass.Builder numberProp(BigDecimal numberProp) { + this.instance.numberProp = JsonNullable.of(numberProp); + return this; + } + public NullableClass.Builder numberProp(JsonNullable numberProp) { + this.instance.numberProp = numberProp; + return this; + } + public NullableClass.Builder booleanProp(Boolean booleanProp) { + this.instance.booleanProp = JsonNullable.of(booleanProp); + return this; + } + public NullableClass.Builder booleanProp(JsonNullable booleanProp) { + this.instance.booleanProp = booleanProp; + return this; + } + public NullableClass.Builder stringProp(String stringProp) { + this.instance.stringProp = JsonNullable.of(stringProp); + return this; + } + public NullableClass.Builder stringProp(JsonNullable stringProp) { + this.instance.stringProp = stringProp; + return this; + } + public NullableClass.Builder dateProp(LocalDate dateProp) { + this.instance.dateProp = JsonNullable.of(dateProp); + return this; + } + public NullableClass.Builder dateProp(JsonNullable dateProp) { + this.instance.dateProp = dateProp; + return this; + } + public NullableClass.Builder datetimeProp(OffsetDateTime datetimeProp) { + this.instance.datetimeProp = JsonNullable.of(datetimeProp); + return this; + } + public NullableClass.Builder datetimeProp(JsonNullable datetimeProp) { + this.instance.datetimeProp = datetimeProp; + return this; + } + public NullableClass.Builder arrayNullableProp(List arrayNullableProp) { + this.instance.arrayNullableProp = JsonNullable.>of(arrayNullableProp); + return this; + } + public NullableClass.Builder arrayNullableProp(JsonNullable> arrayNullableProp) { + this.instance.arrayNullableProp = arrayNullableProp; + return this; + } + public NullableClass.Builder arrayAndItemsNullableProp(List arrayAndItemsNullableProp) { + this.instance.arrayAndItemsNullableProp = JsonNullable.>of(arrayAndItemsNullableProp); + return this; + } + public NullableClass.Builder arrayAndItemsNullableProp(JsonNullable> arrayAndItemsNullableProp) { + this.instance.arrayAndItemsNullableProp = arrayAndItemsNullableProp; + return this; + } + public NullableClass.Builder arrayItemsNullable(List arrayItemsNullable) { + this.instance.arrayItemsNullable = arrayItemsNullable; + return this; + } + public NullableClass.Builder objectNullableProp(Map objectNullableProp) { + this.instance.objectNullableProp = JsonNullable.>of(objectNullableProp); + return this; + } + public NullableClass.Builder objectNullableProp(JsonNullable> objectNullableProp) { + this.instance.objectNullableProp = objectNullableProp; + return this; + } + public NullableClass.Builder objectAndItemsNullableProp(Map objectAndItemsNullableProp) { + this.instance.objectAndItemsNullableProp = JsonNullable.>of(objectAndItemsNullableProp); + return this; + } + public NullableClass.Builder objectAndItemsNullableProp(JsonNullable> objectAndItemsNullableProp) { + this.instance.objectAndItemsNullableProp = objectAndItemsNullableProp; + return this; + } + public NullableClass.Builder objectItemsNullable(Map objectItemsNullable) { + this.instance.objectItemsNullable = objectItemsNullable; + return this; + } + + + /** + * returns a built NullableClass instance. + * + * The builder is not reusable. + */ + public NullableClass build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built NullableClass instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public NullableClass build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static NullableClass.Builder builder() { + return new NullableClass.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public NullableClass.Builder toBuilder() { + return new NullableClass.Builder() + .integerProp(getIntegerProp()) + .numberProp(getNumberProp()) + .booleanProp(getBooleanProp()) + .stringProp(getStringProp()) + .dateProp(getDateProp()) + .datetimeProp(getDatetimeProp()) + .arrayNullableProp(getArrayNullableProp()) + .arrayAndItemsNullableProp(getArrayAndItemsNullableProp()) + .arrayItemsNullable(getArrayItemsNullable()) + .objectNullableProp(getObjectNullableProp()) + .objectAndItemsNullableProp(getObjectAndItemsNullableProp()) + .objectItemsNullable(getObjectItemsNullable()); } - } - - /** - * Create a builder with no initialized field. - */ - public static NullableClass.Builder builder() { - return new NullableClass.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public NullableClass.Builder toBuilder() { - return new NullableClass.Builder() - .integerProp(getIntegerProp()) - .numberProp(getNumberProp()) - .booleanProp(getBooleanProp()) - .stringProp(getStringProp()) - .dateProp(getDateProp()) - .datetimeProp(getDatetimeProp()) - .arrayNullableProp(getArrayNullableProp()) - .arrayAndItemsNullableProp(getArrayAndItemsNullableProp()) - .arrayItemsNullable(getArrayItemsNullable()) - .objectNullableProp(getObjectNullableProp()) - .objectAndItemsNullableProp(getObjectAndItemsNullableProp()) - .objectItemsNullable(getObjectItemsNullable()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java index 411417ab2365..08b82a32514e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -56,8 +56,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private NumberOnly instance; - - public Builder() { - this(new NumberOnly()); - } - - protected Builder(NumberOnly instance) { - this.instance = instance; - } - - public NumberOnly.Builder justNumber(BigDecimal justNumber) { - this.instance.justNumber = justNumber; - return this; + + private NumberOnly instance; + + public Builder() { + this(new NumberOnly()); + } + + protected Builder(NumberOnly instance) { + this.instance = instance; + } + + public NumberOnly.Builder justNumber(BigDecimal justNumber) { + this.instance.justNumber = justNumber; + return this; + } + + + /** + * returns a built NumberOnly instance. + * + * The builder is not reusable. + */ + public NumberOnly build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built NumberOnly instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public NumberOnly build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static NumberOnly.Builder builder() { + return new NumberOnly.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public NumberOnly.Builder toBuilder() { + return new NumberOnly.Builder() + .justNumber(getJustNumber()); } - } - - /** - * Create a builder with no initialized field. - */ - public static NumberOnly.Builder builder() { - return new NumberOnly.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public NumberOnly.Builder toBuilder() { - return new NumberOnly.Builder() - .justNumber(getJustNumber()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index e37535a862fa..e8a372b99a60 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } @@ -78,8 +75,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -105,8 +101,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -132,8 +127,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -167,8 +161,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -226,73 +219,72 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ObjectWithDeprecatedFields instance; - - public Builder() { - this(new ObjectWithDeprecatedFields()); - } - - protected Builder(ObjectWithDeprecatedFields instance) { - this.instance = instance; - } - - public ObjectWithDeprecatedFields.Builder uuid(String uuid) { - this.instance.uuid = uuid; - return this; - } - public ObjectWithDeprecatedFields.Builder id(BigDecimal id) { - this.instance.id = id; - return this; - } - public ObjectWithDeprecatedFields.Builder deprecatedRef(DeprecatedObject deprecatedRef) { - this.instance.deprecatedRef = deprecatedRef; - return this; - } - public ObjectWithDeprecatedFields.Builder bars(List bars) { - this.instance.bars = bars; - return this; + + private ObjectWithDeprecatedFields instance; + + public Builder() { + this(new ObjectWithDeprecatedFields()); + } + + protected Builder(ObjectWithDeprecatedFields instance) { + this.instance = instance; + } + + public ObjectWithDeprecatedFields.Builder uuid(String uuid) { + this.instance.uuid = uuid; + return this; + } + public ObjectWithDeprecatedFields.Builder id(BigDecimal id) { + this.instance.id = id; + return this; + } + public ObjectWithDeprecatedFields.Builder deprecatedRef(DeprecatedObject deprecatedRef) { + this.instance.deprecatedRef = deprecatedRef; + return this; + } + public ObjectWithDeprecatedFields.Builder bars(List bars) { + this.instance.bars = bars; + return this; + } + + + /** + * returns a built ObjectWithDeprecatedFields instance. + * + * The builder is not reusable. + */ + public ObjectWithDeprecatedFields build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ObjectWithDeprecatedFields instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ObjectWithDeprecatedFields build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ObjectWithDeprecatedFields.Builder builder() { + return new ObjectWithDeprecatedFields.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ObjectWithDeprecatedFields.Builder toBuilder() { + return new ObjectWithDeprecatedFields.Builder() + .uuid(getUuid()) + .id(getId()) + .deprecatedRef(getDeprecatedRef()) + .bars(getBars()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ObjectWithDeprecatedFields.Builder builder() { - return new ObjectWithDeprecatedFields.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ObjectWithDeprecatedFields.Builder toBuilder() { - return new ObjectWithDeprecatedFields.Builder() - .uuid(getUuid()) - .id(getId()) - .deprecatedRef(getDeprecatedRef()) - .bars(getBars()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java index 90a58922099d..26646154df3a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -123,8 +117,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -148,8 +141,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -173,8 +165,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -198,8 +189,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -223,8 +213,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -248,8 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -311,83 +299,82 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Order instance; - - public Builder() { - this(new Order()); - } - - protected Builder(Order instance) { - this.instance = instance; - } - - public Order.Builder id(Long id) { - this.instance.id = id; - return this; - } - public Order.Builder petId(Long petId) { - this.instance.petId = petId; - return this; - } - public Order.Builder quantity(Integer quantity) { - this.instance.quantity = quantity; - return this; - } - public Order.Builder shipDate(OffsetDateTime shipDate) { - this.instance.shipDate = shipDate; - return this; - } - public Order.Builder status(StatusEnum status) { - this.instance.status = status; - return this; - } - public Order.Builder complete(Boolean complete) { - this.instance.complete = complete; - return this; + + private Order instance; + + public Builder() { + this(new Order()); + } + + protected Builder(Order instance) { + this.instance = instance; + } + + public Order.Builder id(Long id) { + this.instance.id = id; + return this; + } + public Order.Builder petId(Long petId) { + this.instance.petId = petId; + return this; + } + public Order.Builder quantity(Integer quantity) { + this.instance.quantity = quantity; + return this; + } + public Order.Builder shipDate(OffsetDateTime shipDate) { + this.instance.shipDate = shipDate; + return this; + } + public Order.Builder status(StatusEnum status) { + this.instance.status = status; + return this; + } + public Order.Builder complete(Boolean complete) { + this.instance.complete = complete; + return this; + } + + + /** + * returns a built Order instance. + * + * The builder is not reusable. + */ + public Order build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Order instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Order build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Order.Builder builder() { + return new Order.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Order.Builder toBuilder() { + return new Order.Builder() + .id(getId()) + .petId(getPetId()) + .quantity(getQuantity()) + .shipDate(getShipDate()) + .status(getStatus()) + .complete(getComplete()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Order.Builder builder() { - return new Order.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Order.Builder toBuilder() { - return new Order.Builder() - .id(getId()) - .petId(getPetId()) - .quantity(getQuantity()) - .shipDate(getShipDate()) - .status(getStatus()) - .complete(getComplete()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java index 6318e7e93e45..faec8d0d530d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -68,8 +66,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -93,8 +90,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -118,8 +114,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -175,68 +170,67 @@ private String toIndentedString(Object o) { } public static class Builder { - - private OuterComposite instance; - - public Builder() { - this(new OuterComposite()); - } - - protected Builder(OuterComposite instance) { - this.instance = instance; - } - - public OuterComposite.Builder myNumber(BigDecimal myNumber) { - this.instance.myNumber = myNumber; - return this; - } - public OuterComposite.Builder myString(String myString) { - this.instance.myString = myString; - return this; - } - public OuterComposite.Builder myBoolean(Boolean myBoolean) { - this.instance.myBoolean = myBoolean; - return this; + + private OuterComposite instance; + + public Builder() { + this(new OuterComposite()); + } + + protected Builder(OuterComposite instance) { + this.instance = instance; + } + + public OuterComposite.Builder myNumber(BigDecimal myNumber) { + this.instance.myNumber = myNumber; + return this; + } + public OuterComposite.Builder myString(String myString) { + this.instance.myString = myString; + return this; + } + public OuterComposite.Builder myBoolean(Boolean myBoolean) { + this.instance.myBoolean = myBoolean; + return this; + } + + + /** + * returns a built OuterComposite instance. + * + * The builder is not reusable. + */ + public OuterComposite build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built OuterComposite instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public OuterComposite build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static OuterComposite.Builder builder() { + return new OuterComposite.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public OuterComposite.Builder toBuilder() { + return new OuterComposite.Builder() + .myNumber(getMyNumber()) + .myString(getMyString()) + .myBoolean(getMyBoolean()); } - } - - /** - * Create a builder with no initialized field. - */ - public static OuterComposite.Builder builder() { - return new OuterComposite.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public OuterComposite.Builder toBuilder() { - return new OuterComposite.Builder() - .myNumber(getMyNumber()) - .myString(getMyString()) - .myBoolean(getMyBoolean()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index d96364530103..ad8140bf3690 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -56,8 +56,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private OuterObjectWithEnumProperty instance; - - public Builder() { - this(new OuterObjectWithEnumProperty()); - } - - protected Builder(OuterObjectWithEnumProperty instance) { - this.instance = instance; - } - - public OuterObjectWithEnumProperty.Builder value(OuterEnumInteger value) { - this.instance.value = value; - return this; + + private OuterObjectWithEnumProperty instance; + + public Builder() { + this(new OuterObjectWithEnumProperty()); + } + + protected Builder(OuterObjectWithEnumProperty instance) { + this.instance = instance; + } + + public OuterObjectWithEnumProperty.Builder value(OuterEnumInteger value) { + this.instance.value = value; + return this; + } + + + /** + * returns a built OuterObjectWithEnumProperty instance. + * + * The builder is not reusable. + */ + public OuterObjectWithEnumProperty build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built OuterObjectWithEnumProperty instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public OuterObjectWithEnumProperty build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static OuterObjectWithEnumProperty.Builder builder() { + return new OuterObjectWithEnumProperty.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public OuterObjectWithEnumProperty.Builder toBuilder() { + return new OuterObjectWithEnumProperty.Builder() + .value(getValue()); } - } - - /** - * Create a builder with no initialized field. - */ - public static OuterObjectWithEnumProperty.Builder builder() { - return new OuterObjectWithEnumProperty.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public OuterObjectWithEnumProperty.Builder toBuilder() { - return new OuterObjectWithEnumProperty.Builder() - .value(getValue()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java index db3e690abb96..ca5cb75c3daf 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -110,8 +108,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -135,8 +132,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -144,7 +140,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } @@ -209,67 +204,66 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ParentWithNullable instance; - - public Builder() { - this(new ParentWithNullable()); - } - - protected Builder(ParentWithNullable instance) { - this.instance = instance; - } - - public ParentWithNullable.Builder type(TypeEnum type) { - this.instance.type = type; - return this; - } - public ParentWithNullable.Builder nullableProperty(String nullableProperty) { - this.instance.nullableProperty = JsonNullable.of(nullableProperty); - return this; - } - public ParentWithNullable.Builder nullableProperty(JsonNullable nullableProperty) { - this.instance.nullableProperty = nullableProperty; - return this; + + private ParentWithNullable instance; + + public Builder() { + this(new ParentWithNullable()); + } + + protected Builder(ParentWithNullable instance) { + this.instance = instance; + } + + public ParentWithNullable.Builder type(TypeEnum type) { + this.instance.type = type; + return this; + } + public ParentWithNullable.Builder nullableProperty(String nullableProperty) { + this.instance.nullableProperty = JsonNullable.of(nullableProperty); + return this; + } + public ParentWithNullable.Builder nullableProperty(JsonNullable nullableProperty) { + this.instance.nullableProperty = nullableProperty; + return this; + } + + + /** + * returns a built ParentWithNullable instance. + * + * The builder is not reusable. + */ + public ParentWithNullable build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ParentWithNullable instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ParentWithNullable build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ParentWithNullable.Builder builder() { + return new ParentWithNullable.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ParentWithNullable.Builder toBuilder() { + return new ParentWithNullable.Builder() + .type(getType()) + .nullableProperty(getNullableProperty()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ParentWithNullable.Builder builder() { - return new ParentWithNullable.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ParentWithNullable.Builder toBuilder() { - return new ParentWithNullable.Builder() - .type(getType()) - .nullableProperty(getNullableProperty()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index f49ee675ca42..945966242f2c 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags; + @javax.annotation.Nullable private List tags; /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -130,8 +124,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -155,8 +148,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -180,8 +172,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -213,8 +204,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -247,8 +237,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -272,8 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -335,83 +323,82 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Pet instance; - - public Builder() { - this(new Pet()); - } - - protected Builder(Pet instance) { - this.instance = instance; - } - - public Pet.Builder id(Long id) { - this.instance.id = id; - return this; - } - public Pet.Builder category(Category category) { - this.instance.category = category; - return this; - } - public Pet.Builder name(String name) { - this.instance.name = name; - return this; - } - public Pet.Builder photoUrls(Set photoUrls) { - this.instance.photoUrls = photoUrls; - return this; - } - public Pet.Builder tags(List tags) { - this.instance.tags = tags; - return this; - } - public Pet.Builder status(StatusEnum status) { - this.instance.status = status; - return this; + + private Pet instance; + + public Builder() { + this(new Pet()); + } + + protected Builder(Pet instance) { + this.instance = instance; + } + + public Pet.Builder id(Long id) { + this.instance.id = id; + return this; + } + public Pet.Builder category(Category category) { + this.instance.category = category; + return this; + } + public Pet.Builder name(String name) { + this.instance.name = name; + return this; + } + public Pet.Builder photoUrls(Set photoUrls) { + this.instance.photoUrls = photoUrls; + return this; + } + public Pet.Builder tags(List tags) { + this.instance.tags = tags; + return this; + } + public Pet.Builder status(StatusEnum status) { + this.instance.status = status; + return this; + } + + + /** + * returns a built Pet instance. + * + * The builder is not reusable. + */ + public Pet build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Pet instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Pet build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Pet.Builder builder() { + return new Pet.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Pet.Builder toBuilder() { + return new Pet.Builder() + .id(getId()) + .category(getCategory()) + .name(getName()) + .photoUrls(getPhotoUrls()) + .tags(getTags()) + .status(getStatus()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Pet.Builder builder() { - return new Pet.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Pet.Builder toBuilder() { - return new Pet.Builder() - .id(getId()) - .category(getCategory()) - .name(getName()) - .photoUrls(getPhotoUrls()) - .tags(getTags()) - .status(getStatus()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 15f85b1643f3..96826b34cc26 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -65,8 +64,7 @@ public ReadOnlyFirst(@JsonProperty(JSON_PROPERTY_BAR) String bar, @JsonProperty( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -85,8 +83,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -140,63 +137,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private ReadOnlyFirst instance; - - public Builder() { - this(new ReadOnlyFirst()); - } - - protected Builder(ReadOnlyFirst instance) { - this.instance = instance; - } - - public ReadOnlyFirst.Builder bar(String bar) { - this.instance.bar = bar; - return this; - } - public ReadOnlyFirst.Builder baz(String baz) { - this.instance.baz = baz; - return this; + + private ReadOnlyFirst instance; + + public Builder() { + this(new ReadOnlyFirst()); + } + + protected Builder(ReadOnlyFirst instance) { + this.instance = instance; + } + + public ReadOnlyFirst.Builder bar(String bar) { + this.instance.bar = bar; + return this; + } + public ReadOnlyFirst.Builder baz(String baz) { + this.instance.baz = baz; + return this; + } + + + /** + * returns a built ReadOnlyFirst instance. + * + * The builder is not reusable. + */ + public ReadOnlyFirst build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built ReadOnlyFirst instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public ReadOnlyFirst build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static ReadOnlyFirst.Builder builder() { + return new ReadOnlyFirst.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public ReadOnlyFirst.Builder toBuilder() { + return new ReadOnlyFirst.Builder() + .bar(getBar()) + .baz(getBaz()); } - } - - /** - * Create a builder with no initialized field. - */ - public static ReadOnlyFirst.Builder builder() { - return new ReadOnlyFirst.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public ReadOnlyFirst.Builder toBuilder() { - return new ReadOnlyFirst.Builder() - .bar(getBar()) - .baz(getBaz()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java index 0019d96d4846..8c2faeda8fd6 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -56,8 +56,7 @@ public SpecialModelName(@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) Lon * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -109,58 +108,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private SpecialModelName instance; - - public Builder() { - this(new SpecialModelName()); - } - - protected Builder(SpecialModelName instance) { - this.instance = instance; - } - - public SpecialModelName.Builder $specialPropertyName(Long $specialPropertyName) { - this.instance.$specialPropertyName = $specialPropertyName; - return this; + + private SpecialModelName instance; + + public Builder() { + this(new SpecialModelName()); + } + + protected Builder(SpecialModelName instance) { + this.instance = instance; + } + + public SpecialModelName.Builder $specialPropertyName(Long $specialPropertyName) { + this.instance.$specialPropertyName = $specialPropertyName; + return this; + } + + + /** + * returns a built SpecialModelName instance. + * + * The builder is not reusable. + */ + public SpecialModelName build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built SpecialModelName instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public SpecialModelName build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static SpecialModelName.Builder builder() { + return new SpecialModelName.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public SpecialModelName.Builder toBuilder() { + return new SpecialModelName.Builder() + .$specialPropertyName(get$SpecialPropertyName()); } - } - - /** - * Create a builder with no initialized field. - */ - public static SpecialModelName.Builder builder() { - return new SpecialModelName.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public SpecialModelName.Builder toBuilder() { - return new SpecialModelName.Builder() - .$specialPropertyName(get$SpecialPropertyName()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index 2c2ad180eae5..126d920c2bbf 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -61,8 +60,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -86,8 +84,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -141,63 +138,62 @@ private String toIndentedString(Object o) { } public static class Builder { - - private Tag instance; - - public Builder() { - this(new Tag()); - } - - protected Builder(Tag instance) { - this.instance = instance; - } - - public Tag.Builder id(Long id) { - this.instance.id = id; - return this; - } - public Tag.Builder name(String name) { - this.instance.name = name; - return this; + + private Tag instance; + + public Builder() { + this(new Tag()); + } + + protected Builder(Tag instance) { + this.instance = instance; + } + + public Tag.Builder id(Long id) { + this.instance.id = id; + return this; + } + public Tag.Builder name(String name) { + this.instance.name = name; + return this; + } + + + /** + * returns a built Tag instance. + * + * The builder is not reusable. + */ + public Tag build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built Tag instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public Tag build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static Tag.Builder builder() { + return new Tag.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public Tag.Builder toBuilder() { + return new Tag.Builder() + .id(getId()) + .name(getName()); } - } - - /** - * Create a builder with no initialized field. - */ - public static Tag.Builder builder() { - return new Tag.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public Tag.Builder toBuilder() { - return new Tag.Builder() - .id(getId()) - .name(getName()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index f1ead98c6cd2..b1005ecc0de5 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -60,8 +60,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -115,58 +114,57 @@ private String toIndentedString(Object o) { } public static class Builder { - - private TestInlineFreeformAdditionalPropertiesRequest instance; - - public Builder() { - this(new TestInlineFreeformAdditionalPropertiesRequest()); - } - - protected Builder(TestInlineFreeformAdditionalPropertiesRequest instance) { - this.instance = instance; - } - - public TestInlineFreeformAdditionalPropertiesRequest.Builder someProperty(String someProperty) { - this.instance.someProperty = someProperty; - return this; + + private TestInlineFreeformAdditionalPropertiesRequest instance; + + public Builder() { + this(new TestInlineFreeformAdditionalPropertiesRequest()); + } + + protected Builder(TestInlineFreeformAdditionalPropertiesRequest instance) { + this.instance = instance; + } + + public TestInlineFreeformAdditionalPropertiesRequest.Builder someProperty(String someProperty) { + this.instance.someProperty = someProperty; + return this; + } + + + /** + * returns a built TestInlineFreeformAdditionalPropertiesRequest instance. + * + * The builder is not reusable. + */ + public TestInlineFreeformAdditionalPropertiesRequest build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built TestInlineFreeformAdditionalPropertiesRequest instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public TestInlineFreeformAdditionalPropertiesRequest build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static TestInlineFreeformAdditionalPropertiesRequest.Builder builder() { + return new TestInlineFreeformAdditionalPropertiesRequest.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public TestInlineFreeformAdditionalPropertiesRequest.Builder toBuilder() { + return new TestInlineFreeformAdditionalPropertiesRequest.Builder() + .someProperty(getSomeProperty()); } - } - - /** - * Create a builder with no initialized field. - */ - public static TestInlineFreeformAdditionalPropertiesRequest.Builder builder() { - return new TestInlineFreeformAdditionalPropertiesRequest.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public TestInlineFreeformAdditionalPropertiesRequest.Builder toBuilder() { - return new TestInlineFreeformAdditionalPropertiesRequest.Builder() - .someProperty(getSomeProperty()); - } - } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java index 6cb2cb0dc60e..b1ae6aec05d8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -97,8 +90,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,8 +114,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -147,8 +138,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -172,8 +162,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -197,8 +186,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -222,8 +210,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -247,8 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -272,8 +258,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -339,93 +324,92 @@ private String toIndentedString(Object o) { } public static class Builder { - - private User instance; - - public Builder() { - this(new User()); - } - - protected Builder(User instance) { - this.instance = instance; - } - - public User.Builder id(Long id) { - this.instance.id = id; - return this; - } - public User.Builder username(String username) { - this.instance.username = username; - return this; - } - public User.Builder firstName(String firstName) { - this.instance.firstName = firstName; - return this; - } - public User.Builder lastName(String lastName) { - this.instance.lastName = lastName; - return this; - } - public User.Builder email(String email) { - this.instance.email = email; - return this; - } - public User.Builder password(String password) { - this.instance.password = password; - return this; - } - public User.Builder phone(String phone) { - this.instance.phone = phone; - return this; - } - public User.Builder userStatus(Integer userStatus) { - this.instance.userStatus = userStatus; - return this; + + private User instance; + + public Builder() { + this(new User()); + } + + protected Builder(User instance) { + this.instance = instance; + } + + public User.Builder id(Long id) { + this.instance.id = id; + return this; + } + public User.Builder username(String username) { + this.instance.username = username; + return this; + } + public User.Builder firstName(String firstName) { + this.instance.firstName = firstName; + return this; + } + public User.Builder lastName(String lastName) { + this.instance.lastName = lastName; + return this; + } + public User.Builder email(String email) { + this.instance.email = email; + return this; + } + public User.Builder password(String password) { + this.instance.password = password; + return this; + } + public User.Builder phone(String phone) { + this.instance.phone = phone; + return this; + } + public User.Builder userStatus(Integer userStatus) { + this.instance.userStatus = userStatus; + return this; + } + + + /** + * returns a built User instance. + * + * The builder is not reusable. + */ + public User build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } } - - + /** - * returns a built User instance. - * - * The builder is not reusable. + * Create a builder with no initialized field. */ - public User build() { - try { - return this.instance; - } finally { - // ensure that this.instance is not reused - this.instance = null; - } + public static User.Builder builder() { + return new User.Builder(); } - - @Override - public String toString() { - return getClass() + "=(" + instance + ")"; + + /** + * Create a builder with a shallow copy of this instance. + */ + public User.Builder toBuilder() { + return new User.Builder() + .id(getId()) + .username(getUsername()) + .firstName(getFirstName()) + .lastName(getLastName()) + .email(getEmail()) + .password(getPassword()) + .phone(getPhone()) + .userStatus(getUserStatus()); } - } - - /** - * Create a builder with no initialized field. - */ - public static User.Builder builder() { - return new User.Builder(); - } - - /** - * Create a builder with a shallow copy of this instance. - */ - public User.Builder toBuilder() { - return new User.Builder() - .id(getId()) - .username(getUsername()) - .firstName(getFirstName()) - .lastName(getLastName()) - .email(getEmail()) - .password(getPassword()) - .phone(getPhone()) - .userStatus(getUserStatus()); - } - } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 6541581c7488..601256bdedf6 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -34,10 +34,10 @@ AdditionalPropertiesAnyType.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -53,9 +53,7 @@ public AdditionalPropertiesAnyType name(@jakarta.annotation.Nullable String name * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 87f94a2a5eb3..1bba8604d4ae 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -35,10 +35,10 @@ AdditionalPropertiesArray.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -54,9 +54,7 @@ public AdditionalPropertiesArray name(@jakarta.annotation.Nullable String name) * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 38ce50595dd3..919fdd93217d 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -34,10 +34,10 @@ AdditionalPropertiesBoolean.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -53,9 +53,7 @@ public AdditionalPropertiesBoolean name(@jakarta.annotation.Nullable String name * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f20e91f8baf0..b228c01367bf 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -46,50 +46,40 @@ AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @jakarta.annotation.Nullable - private Map mapString = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @jakarta.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @jakarta.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @jakarta.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @jakarta.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @jakarta.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @jakarta.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @jakarta.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @jakarta.annotation.Nullable - private Object anytype1; + @jakarta.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @jakarta.annotation.Nullable - private Object anytype2; + @jakarta.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @jakarta.annotation.Nullable - private Object anytype3; + @jakarta.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -112,9 +102,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -146,9 +134,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -181,9 +167,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -215,9 +199,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -249,9 +231,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -319,9 +297,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -53,9 +53,7 @@ public AdditionalPropertiesInteger name(@jakarta.annotation.Nullable String name * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 3b879e806367..f2ea24acba8a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -35,10 +35,10 @@ AdditionalPropertiesNumber.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -54,9 +54,7 @@ public AdditionalPropertiesNumber name(@jakarta.annotation.Nullable String name) * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index ed6f748f7e11..c905744f955a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -34,10 +34,10 @@ AdditionalPropertiesObject.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -53,9 +53,7 @@ public AdditionalPropertiesObject name(@jakarta.annotation.Nullable String name) * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index ee0a5bc3c005..59c3d607bd22 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -34,10 +34,10 @@ AdditionalPropertiesString.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -53,9 +53,7 @@ public AdditionalPropertiesString name(@jakarta.annotation.Nullable String name) * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java index 72d13d6b5790..79cda8209895 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java @@ -36,6 +36,7 @@ Animal.JSON_PROPERTY_COLOR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -49,12 +50,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @jakarta.annotation.Nonnull - protected String className; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - protected String color = "red"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } @@ -69,9 +68,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * Get className * @return className */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -96,9 +93,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * Get color * @return color */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 05021eb5a6e8..f056eb8767b3 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -36,10 +36,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @jakarta.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -62,9 +62,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 89758b2cb4da..6fa22db779ca 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -36,10 +36,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @jakarta.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -62,9 +62,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java index 434fc7376723..cfd80000a695 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -38,18 +38,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @jakarta.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @jakarta.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @jakarta.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -72,9 +70,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -106,9 +102,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -141,9 +135,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java index 7b95129fc733..dacd258632bc 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java @@ -36,6 +36,7 @@ BigCat.JSON_PROPERTY_KIND }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -81,10 +82,8 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_KIND = "kind"; - @jakarta.annotation.Nullable - private KindEnum kind; + @jakarta.annotation.Nullable private KindEnum kind; public BigCat() { @@ -100,9 +99,7 @@ public BigCat kind(@jakarta.annotation.Nullable KindEnum kind) { * Get kind * @return kind */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_KIND) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java index ebe7fd596ea5..00f5c7c92bf8 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java @@ -37,30 +37,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @jakarta.annotation.Nullable - private String smallCamel; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @jakarta.annotation.Nullable - private String capitalCamel; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @jakarta.annotation.Nullable - private String smallSnake; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @jakarta.annotation.Nullable - private String capitalSnake; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @jakarta.annotation.Nullable - private String scAETHFlowPoints; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @jakarta.annotation.Nullable - private String ATT_NAME; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -75,9 +70,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * Get smallCamel * @return smallCamel */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -101,9 +94,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * Get capitalCamel * @return capitalCamel */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -127,9 +118,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * Get smallSnake * @return smallSnake */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -153,9 +142,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * Get capitalSnake * @return capitalSnake */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -179,9 +166,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -205,9 +190,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java index abc5716e6ee7..1ff00ddf638a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java @@ -36,6 +36,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,8 +48,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @jakarta.annotation.Nullable - protected Boolean declawed; + @jakarta.annotation.Nullable protected Boolean declawed; public Cat() { @@ -64,9 +64,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_DECLAWED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java index 10e2f02ac001..dee146beede4 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java @@ -33,14 +33,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name = "default-name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -55,9 +54,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -81,9 +78,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java index 95f5f1fd41c1..c54e566fd577 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,10 +32,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -50,9 +50,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java index 05043f2638b8..3e4aae0fdfc4 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java @@ -32,10 +32,10 @@ Client.JSON_PROPERTY_CLIENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @jakarta.annotation.Nullable - private String client; + @jakarta.annotation.Nullable private String client; public Client() { } @@ -50,9 +50,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * Get client * @return client */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CLIENT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java index 3e9f7cb920c6..c51c131ff9db 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java @@ -36,6 +36,7 @@ Dog.JSON_PROPERTY_BREED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -44,8 +45,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @jakarta.annotation.Nullable - private String breed; + @jakarta.annotation.Nullable private String breed; public Dog() { @@ -61,9 +61,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * Get breed * @return breed */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BREED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java index 88a61e20cffa..7b941f045058 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -36,6 +36,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -71,10 +72,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @jakarta.annotation.Nullable - private JustSymbolEnum justSymbol; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -110,10 +109,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @jakarta.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -128,9 +125,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * Get justSymbol * @return justSymbol */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -162,9 +157,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java index c9a75a9569cc..5213c2a87bfc 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java @@ -38,6 +38,7 @@ }) @JsonTypeName("Enum_Test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -75,10 +76,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @jakarta.annotation.Nullable - private EnumStringEnum enumString; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -116,10 +115,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @jakarta.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -155,10 +152,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @jakarta.annotation.Nullable - private EnumIntegerEnum enumInteger; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -194,14 +189,11 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @jakarta.annotation.Nullable - private EnumNumberEnum enumNumber; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @jakarta.annotation.Nullable - private OuterEnum outerEnum; + @jakarta.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -216,9 +208,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * Get enumString * @return enumString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -242,9 +232,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * Get enumStringRequired * @return enumStringRequired */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -269,9 +257,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * Get enumInteger * @return enumInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,9 +281,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * Get enumNumber * @return enumNumber */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -321,9 +305,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index de8cfc1ad383..c28c15d75358 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -37,14 +37,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @jakarta.annotation.Nullable - private ModelFile _file; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @jakarta.annotation.Nullable - private List<@Valid ModelFile> files = new ArrayList<>(); + @jakarta.annotation.Nullable private List<@Valid ModelFile> files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -59,9 +58,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -94,9 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java index 2738a0532283..710cd06a419a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,62 +51,49 @@ }) @JsonTypeName("format_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @jakarta.annotation.Nullable - private Integer integer; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @jakarta.annotation.Nullable - private Integer int32; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @jakarta.annotation.Nullable - private Long int64; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nonnull - private BigDecimal number; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private String string; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @jakarta.annotation.Nonnull - private byte[] _byte; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @jakarta.annotation.Nullable - private File binary; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nonnull - private LocalDate date; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nonnull - private String password; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @jakarta.annotation.Nullable - private BigDecimal bigDecimal; + @jakarta.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -123,9 +110,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @jakarta.annotation.Nullable - @Min(10) @Max(100) - @JsonProperty(JSON_PROPERTY_INTEGER) + @jakarta.annotation.Nullable @Min(10) @Max(100) @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -151,9 +136,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @jakarta.annotation.Nullable - @Min(20) @Max(200) - @JsonProperty(JSON_PROPERTY_INT32) + @jakarta.annotation.Nullable @Min(20) @Max(200) @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -177,9 +160,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_INT64) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -205,11 +186,9 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @jakarta.annotation.Nonnull - @NotNull + @jakarta.annotation.Nonnull @NotNull @Valid - @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(JSON_PROPERTY_NUMBER) + @DecimalMin("32.1") @DecimalMax("543.2") @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -235,9 +214,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @jakarta.annotation.Nullable - @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(JSON_PROPERTY_FLOAT) + @jakarta.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -263,9 +240,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @jakarta.annotation.Nullable - @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @jakarta.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,9 +264,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @Pattern(regexp="/[a-z]/i") - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @Pattern(regexp="/[a-z]/i") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -315,9 +288,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -342,9 +313,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * Get binary * @return binary */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -369,10 +338,8 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @jakarta.annotation.Nonnull - @NotNull + @jakarta.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -397,9 +364,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -424,9 +389,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -451,10 +414,8 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * Get password * @return password */ - @jakarta.annotation.Nonnull - @NotNull - @Size(min=10,max=64) - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nonnull @NotNull + @Size(min=10,max=64) @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -478,9 +439,7 @@ public FormatTest bigDecimal(@jakarta.annotation.Nullable BigDecimal bigDecimal) * Get bigDecimal * @return bigDecimal */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 2295fda29f57..41521ffbb465 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -34,14 +34,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @jakarta.annotation.Nullable - private String foo; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -62,9 +61,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,9 +74,7 @@ public String getBar() { * Get foo * @return foo */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_FOO) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java index 9177c94842c4..5d849f12c744 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java @@ -37,10 +37,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @jakarta.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -76,18 +76,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @jakarta.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @jakarta.annotation.Nullable - private Map directMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @jakarta.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -110,9 +106,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,9 +139,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -179,9 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -213,9 +203,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 821ec3fb79e9..caf3bf4996f9 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -39,18 +39,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @jakarta.annotation.Nullable - private Map map = new HashMap<>(); + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -65,9 +63,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,9 +88,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -127,9 +121,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java index 4c889f467bf5..acea2e920364 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,14 +34,13 @@ }) @JsonTypeName("200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private Integer name; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -56,9 +55,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -82,9 +79,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 2d91f091f5fe..19de6a73fce5 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -35,18 +35,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -61,9 +59,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -87,9 +83,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -113,9 +107,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java index 768be29a93a2..f843d04fa425 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,10 +33,10 @@ }) @JsonTypeName("File") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @jakarta.annotation.Nullable - private String sourceURI; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -51,9 +51,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java index bac0169ad44f..f0d4028e6554 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java @@ -33,10 +33,10 @@ }) @JsonTypeName("List") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @jakarta.annotation.Nullable - private String _123list; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } @@ -51,9 +51,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_123LIST) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java index 0e5a4a764199..8e50532449ed 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,10 +33,10 @@ }) @JsonTypeName("Return") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @jakarta.annotation.Nullable - private Integer _return; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -51,9 +51,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_RETURN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java index 65fe8b3edf61..a4709d3d684d 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java @@ -35,22 +35,19 @@ Name.JSON_PROPERTY_123NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private Integer name; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @jakarta.annotation.Nullable - private Integer snakeCase; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @jakarta.annotation.Nullable - private String property; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @jakarta.annotation.Nullable - private Integer _123number; + @jakarta.annotation.Nullable private Integer _123number; public Name() { } @@ -77,9 +74,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -98,9 +93,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -119,9 +112,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * Get property * @return property */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -139,9 +130,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * Get _123number * @return _123number */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_123NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java index 232233b2340e..1dac8b6ab35c 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -33,10 +33,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @jakarta.annotation.Nullable - private BigDecimal justNumber; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -51,9 +51,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * Get justNumber * @return justNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java index 6734ca66124c..20c712b9ee3c 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java @@ -38,22 +38,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -91,14 +88,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -113,9 +107,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -139,9 +131,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -165,9 +155,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -191,9 +179,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -218,9 +204,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -244,9 +228,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java index d3603f7d741a..430ca0c46f13 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -35,18 +35,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @jakarta.annotation.Nullable - private BigDecimal myNumber; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @jakarta.annotation.Nullable - private String myString; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @jakarta.annotation.Nullable - private Boolean myBoolean; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -61,9 +59,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * Get myNumber * @return myNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -88,9 +84,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * Get myString * @return myString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -114,9 +108,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * Get myBoolean * @return myBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java index cb658e254f43..a90dab74a188 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java @@ -45,26 +45,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List<@Valid Tag> tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List<@Valid Tag> tags = new ArrayList<>(); /** * pet status in the store @@ -102,10 +98,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -120,9 +114,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -146,9 +138,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,9 +163,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -208,9 +196,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -244,9 +230,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -271,9 +255,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 2094e0f526cf..a194d9e435af 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -33,14 +33,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @jakarta.annotation.Nullable - private String baz; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -59,9 +58,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -80,9 +77,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * Get baz * @return baz */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_BAZ) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java index 07b09e2e3d6b..79ba45a9f9c5 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -33,10 +33,10 @@ }) @JsonTypeName("$special[model.name]") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @jakarta.annotation.Nullable - private Long $specialPropertyName; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -51,9 +51,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java index 1328af0e5c55..559d2060fc1b 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java @@ -33,14 +33,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -55,9 +54,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -81,9 +78,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0cb4c2f97568..1caf3ec37d24 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -40,26 +40,22 @@ TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @jakarta.annotation.Nonnull - private String stringItem = "what"; + @jakarta.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @jakarta.annotation.Nonnull - private BigDecimal numberItem; + @jakarta.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @jakarta.annotation.Nonnull - private Integer integerItem; + @jakarta.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @jakarta.annotation.Nonnull - private Boolean boolItem = true; + @jakarta.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @jakarta.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @jakarta.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -74,9 +70,7 @@ public TypeHolderDefault stringItem(@jakarta.annotation.Nonnull String stringIte * Get stringItem * @return stringItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -101,10 +95,8 @@ public TypeHolderDefault numberItem(@jakarta.annotation.Nonnull BigDecimal numbe * Get numberItem * @return numberItem */ - @jakarta.annotation.Nonnull - @NotNull + @jakarta.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -129,9 +121,7 @@ public TypeHolderDefault integerItem(@jakarta.annotation.Nonnull Integer integer * Get integerItem * @return integerItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -156,9 +146,7 @@ public TypeHolderDefault boolItem(@jakarta.annotation.Nonnull Boolean boolItem) * Get boolItem * @return boolItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -191,9 +179,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java index b6faa3302238..a6d80ae635f5 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -41,30 +41,25 @@ TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @jakarta.annotation.Nonnull - private String stringItem; + @jakarta.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @jakarta.annotation.Nonnull - private BigDecimal numberItem; + @jakarta.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @jakarta.annotation.Nonnull - private Float floatItem; + @jakarta.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @jakarta.annotation.Nonnull - private Integer integerItem; + @jakarta.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @jakarta.annotation.Nonnull - private Boolean boolItem; + @jakarta.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @jakarta.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @jakarta.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -79,9 +74,7 @@ public TypeHolderExample stringItem(@jakarta.annotation.Nonnull String stringIte * Get stringItem * @return stringItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -106,10 +99,8 @@ public TypeHolderExample numberItem(@jakarta.annotation.Nonnull BigDecimal numbe * Get numberItem * @return numberItem */ - @jakarta.annotation.Nonnull - @NotNull + @jakarta.annotation.Nonnull @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -134,9 +125,7 @@ public TypeHolderExample floatItem(@jakarta.annotation.Nonnull Float floatItem) * Get floatItem * @return floatItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -161,9 +150,7 @@ public TypeHolderExample integerItem(@jakarta.annotation.Nonnull Integer integer * Get integerItem * @return integerItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -188,9 +175,7 @@ public TypeHolderExample boolItem(@jakarta.annotation.Nonnull Boolean boolItem) * Get boolItem * @return boolItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -223,9 +208,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @jakarta.annotation.Nonnull - @NotNull - + @jakarta.annotation.Nonnull @NotNull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java index 8c6fcea6aca1..30e3d576c7e7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java @@ -39,38 +39,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -85,9 +78,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -111,9 +102,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -137,9 +126,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -163,9 +150,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -189,9 +174,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -215,9 +198,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -241,9 +222,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -267,9 +246,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java index af4ca6412c01..d53f05b74c97 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java @@ -64,122 +64,94 @@ XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @jakarta.annotation.Nullable - private String attributeString; + @jakarta.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @jakarta.annotation.Nullable - private BigDecimal attributeNumber; + @jakarta.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @jakarta.annotation.Nullable - private Integer attributeInteger; + @jakarta.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @jakarta.annotation.Nullable - private Boolean attributeBoolean; + @jakarta.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @jakarta.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @jakarta.annotation.Nullable - private String nameString; + @jakarta.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @jakarta.annotation.Nullable - private BigDecimal nameNumber; + @jakarta.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @jakarta.annotation.Nullable - private Integer nameInteger; + @jakarta.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @jakarta.annotation.Nullable - private Boolean nameBoolean; + @jakarta.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @jakarta.annotation.Nullable - private List nameArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @jakarta.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @jakarta.annotation.Nullable - private String prefixString; + @jakarta.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @jakarta.annotation.Nullable - private BigDecimal prefixNumber; + @jakarta.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @jakarta.annotation.Nullable - private Integer prefixInteger; + @jakarta.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @jakarta.annotation.Nullable - private Boolean prefixBoolean; + @jakarta.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @jakarta.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @jakarta.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @jakarta.annotation.Nullable - private String namespaceString; + @jakarta.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @jakarta.annotation.Nullable - private BigDecimal namespaceNumber; + @jakarta.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @jakarta.annotation.Nullable - private Integer namespaceInteger; + @jakarta.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @jakarta.annotation.Nullable - private Boolean namespaceBoolean; + @jakarta.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @jakarta.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @jakarta.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @jakarta.annotation.Nullable - private String prefixNsString; + @jakarta.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @jakarta.annotation.Nullable - private BigDecimal prefixNsNumber; + @jakarta.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @jakarta.annotation.Nullable - private Integer prefixNsInteger; + @jakarta.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @jakarta.annotation.Nullable - private Boolean prefixNsBoolean; + @jakarta.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @jakarta.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @jakarta.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @jakarta.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -194,9 +166,7 @@ public XmlItem attributeString(@jakarta.annotation.Nullable String attributeStri * Get attributeString * @return attributeString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -220,9 +190,7 @@ public XmlItem attributeNumber(@jakarta.annotation.Nullable BigDecimal attribute * Get attributeNumber * @return attributeNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -247,9 +215,7 @@ public XmlItem attributeInteger(@jakarta.annotation.Nullable Integer attributeIn * Get attributeInteger * @return attributeInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -273,9 +239,7 @@ public XmlItem attributeBoolean(@jakarta.annotation.Nullable Boolean attributeBo * Get attributeBoolean * @return attributeBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -307,9 +271,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -333,9 +295,7 @@ public XmlItem nameString(@jakarta.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -359,9 +319,7 @@ public XmlItem nameNumber(@jakarta.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -386,9 +344,7 @@ public XmlItem nameInteger(@jakarta.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -412,9 +368,7 @@ public XmlItem nameBoolean(@jakarta.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -446,9 +400,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -480,9 +432,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -506,9 +456,7 @@ public XmlItem prefixString(@jakarta.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -532,9 +480,7 @@ public XmlItem prefixNumber(@jakarta.annotation.Nullable BigDecimal prefixNumber * Get prefixNumber * @return prefixNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -559,9 +505,7 @@ public XmlItem prefixInteger(@jakarta.annotation.Nullable Integer prefixInteger) * Get prefixInteger * @return prefixInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -585,9 +529,7 @@ public XmlItem prefixBoolean(@jakarta.annotation.Nullable Boolean prefixBoolean) * Get prefixBoolean * @return prefixBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -619,9 +561,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -653,9 +593,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -679,9 +617,7 @@ public XmlItem namespaceString(@jakarta.annotation.Nullable String namespaceStri * Get namespaceString * @return namespaceString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -705,9 +641,7 @@ public XmlItem namespaceNumber(@jakarta.annotation.Nullable BigDecimal namespace * Get namespaceNumber * @return namespaceNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -732,9 +666,7 @@ public XmlItem namespaceInteger(@jakarta.annotation.Nullable Integer namespaceIn * Get namespaceInteger * @return namespaceInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -758,9 +690,7 @@ public XmlItem namespaceBoolean(@jakarta.annotation.Nullable Boolean namespaceBo * Get namespaceBoolean * @return namespaceBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -792,9 +722,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -826,9 +754,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -852,9 +778,7 @@ public XmlItem prefixNsString(@jakarta.annotation.Nullable String prefixNsString * Get prefixNsString * @return prefixNsString */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -878,9 +802,7 @@ public XmlItem prefixNsNumber(@jakarta.annotation.Nullable BigDecimal prefixNsNu * Get prefixNsNumber * @return prefixNsNumber */ - @jakarta.annotation.Nullable - @Valid - + @jakarta.annotation.Nullable @Valid @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -905,9 +827,7 @@ public XmlItem prefixNsInteger(@jakarta.annotation.Nullable Integer prefixNsInte * Get prefixNsInteger * @return prefixNsInteger */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -931,9 +851,7 @@ public XmlItem prefixNsBoolean(@jakarta.annotation.Nullable Boolean prefixNsBool * Get prefixNsBoolean * @return prefixNsBoolean */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -965,9 +883,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -999,9 +915,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @jakarta.annotation.Nullable - - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 5c9f023af802..2e242b91ab6a 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -28,11 +28,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -49,7 +49,6 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index bbb26f370e12..6c143d7c5a54 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -29,11 +29,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -50,7 +50,6 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index f1cd2f1e7138..50a5d23c6762 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -28,11 +28,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -49,7 +49,6 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7e6901510c08..77e7076cec65 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -30,61 +30,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -108,7 +98,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - public Map getMapString() { return mapString; } @@ -137,7 +126,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - public Map getMapNumber() { return mapNumber; } @@ -166,7 +154,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - public Map getMapInteger() { return mapInteger; } @@ -195,7 +182,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - public Map getMapBoolean() { return mapBoolean; } @@ -224,7 +210,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -253,7 +238,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -282,7 +266,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -311,7 +294,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -332,7 +314,6 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - public Object getAnytype1() { return anytype1; } @@ -353,7 +334,6 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - public Object getAnytype2() { return anytype2; } @@ -374,7 +354,6 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - public Object getAnytype3() { return anytype3; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index b3b92e6e2273..e22f85f59d7b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -28,11 +28,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -49,7 +49,6 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index ea8f5b449153..02d9380a3f42 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -29,11 +29,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -50,7 +50,6 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 4381139af308..f259d0798665 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -28,11 +28,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -49,7 +49,6 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index c0682136e738..3c6a3ff3959b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -28,11 +28,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -49,7 +49,6 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java index fc0306d2f68e..37b1f65c3a46 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java @@ -26,16 +26,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -51,7 +50,6 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - public String getClassName() { return className; } @@ -72,7 +70,6 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - public String getColor() { return color; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 312bce79cacd..32b34471f4c1 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 9d266ae36369..dda7f5d5f7eb 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java index 085ae37c1cf2..92f653ab496c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -30,21 +30,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -68,7 +66,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +94,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +122,6 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java index af2200f16863..da3e3a6fb6b9 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java @@ -27,6 +27,7 @@ * BigCat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BigCat extends Cat { /** * Gets or Sets kind @@ -78,11 +79,9 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -99,7 +98,6 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - public KindEnum getKind() { return kind; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java index 9d5577818a3d..a18bf4b4b913 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -26,36 +26,31 @@ * Capitalization */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -71,7 +66,6 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - public String getSmallCamel() { return smallCamel; } @@ -92,7 +86,6 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +106,6 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - public String getSmallSnake() { return smallSnake; } @@ -134,7 +126,6 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +146,6 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +166,6 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java index 45f1a7a35a4e..92c61a364e9b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java @@ -27,11 +27,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -48,7 +48,6 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - public Boolean getDeclawed() { return declawed; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java index 644b24f36225..291af2a0ed00 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java @@ -26,16 +26,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -51,7 +50,6 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java index 862d2f79463c..c4bd34795936 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -26,11 +26,11 @@ * Model for testing model with \"_class\" property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -46,7 +46,6 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java index 71f9b680f0e8..f9c124e419eb 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java @@ -26,11 +26,11 @@ * Client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -46,7 +46,6 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - public String getClient() { return client; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java index 277728157007..0849981692fc 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java @@ -27,11 +27,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -48,7 +48,6 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - public String getBreed() { return breed; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java index ec837ff1b2e7..f6d4411efe71 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -29,6 +29,7 @@ * EnumArrays */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -76,11 +77,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -128,11 +127,9 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -148,7 +145,6 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -177,7 +173,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java index cef08bf0628a..f81aeb2cbbdd 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,6 +27,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -76,11 +77,9 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -130,11 +129,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -182,11 +179,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -234,16 +229,13 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -259,7 +251,6 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - public EnumStringEnum getEnumString() { return enumString; } @@ -280,7 +271,6 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -301,7 +291,6 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -322,7 +311,6 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -343,7 +331,6 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - public OuterEnum getOuterEnum() { return outerEnum; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index df6dacaa1f71..d9c4397fac0f 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -30,16 +30,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -55,7 +54,6 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - public ModelFile getFile() { return _file; } @@ -84,7 +82,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - public List getFiles() { return files; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java index 6c59071c3751..7ee6bf99b60b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -31,76 +31,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -118,7 +105,6 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - public Integer getInteger() { return integer; } @@ -141,7 +127,6 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - public Integer getInt32() { return int32; } @@ -162,7 +147,6 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - public Long getInt64() { return int64; } @@ -185,7 +169,6 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - public BigDecimal getNumber() { return number; } @@ -208,7 +191,6 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - public Float getFloat() { return _float; } @@ -231,7 +213,6 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - public Double getDouble() { return _double; } @@ -252,7 +233,6 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - public String getString() { return string; } @@ -273,7 +253,6 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - public byte[] getByte() { return _byte; } @@ -294,7 +273,6 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - public File getBinary() { return binary; } @@ -315,7 +293,6 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - public LocalDate getDate() { return date; } @@ -336,7 +313,6 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -357,7 +333,6 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -378,7 +353,6 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - public String getPassword() { return password; } @@ -399,7 +373,6 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 99cfb90c57cf..46a22b123311 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -26,16 +26,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -57,7 +56,6 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -69,7 +67,6 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - public String getFoo() { return foo; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java index 8c0599df9122..c01ee859bcd5 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java @@ -28,11 +28,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -80,21 +80,17 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -118,7 +114,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - public Map> getMapMapOfString() { return mapMapOfString; } @@ -147,7 +142,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -176,7 +170,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - public Map getDirectMap() { return directMap; } @@ -205,7 +198,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index d092e0b0c480..85adf4cec920 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -31,21 +31,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -61,7 +59,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -82,7 +79,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -111,7 +107,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - public Map getMap() { return map; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java index d3be6fce2e75..884ca664e2a8 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -26,16 +26,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -51,7 +50,6 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - public Integer getName() { return name; } @@ -72,7 +70,6 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 14fa3f08aedc..68aed9325d12 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,21 +26,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -56,7 +54,6 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - public Integer getCode() { return code; } @@ -77,7 +74,6 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - public String getType() { return type; } @@ -98,7 +94,6 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - public String getMessage() { return message; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java index 46a3d5365b32..e601ac148290 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -26,11 +26,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -46,7 +46,6 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - public String getSourceURI() { return sourceURI; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java index 85975144e8e2..43508abd3630 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelList.java @@ -26,11 +26,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -46,7 +46,6 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - public String get123list() { return _123list; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java index 39be3519230c..75919cd1a67c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -26,11 +26,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -46,7 +46,6 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - public Integer getReturn() { return _return; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java index 568ff8a20d1d..9199241f141b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java @@ -26,26 +26,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -73,7 +70,6 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - public Integer getName() { return name; } @@ -88,7 +84,6 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - public Integer getSnakeCase() { return snakeCase; } @@ -106,7 +101,6 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - public String getProperty() { return property; } @@ -121,7 +115,6 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - public Integer get123number() { return _123number; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java index e0a06c9ddeee..8da73a01c881 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -27,11 +27,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -47,7 +47,6 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java index a0d68146490a..3ce41856290f 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java @@ -27,26 +27,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -96,16 +93,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -121,7 +115,6 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -142,7 +135,6 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - public Long getPetId() { return petId; } @@ -163,7 +155,6 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - public Integer getQuantity() { return quantity; } @@ -184,7 +175,6 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - public OffsetDateTime getShipDate() { return shipDate; } @@ -205,7 +195,6 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } @@ -226,7 +215,6 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - public Boolean getComplete() { return complete; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java index 4fd0d4035ca8..11873cc1ca5b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -27,21 +27,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -57,7 +55,6 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +75,6 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - public String getMyString() { return myString; } @@ -99,7 +95,6 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java index ff5b80cb4d2c..794c4789e480 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java @@ -33,31 +33,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -107,11 +103,9 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -127,7 +121,6 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -148,7 +141,6 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - public Category getCategory() { return category; } @@ -169,7 +161,6 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } @@ -198,7 +189,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - public Set getPhotoUrls() { return photoUrls; } @@ -227,7 +217,6 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - public List getTags() { return tags; } @@ -248,7 +237,6 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 374fce7ae200..acf7ba2f4517 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -26,16 +26,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -55,7 +54,6 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -73,7 +71,6 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - public String getBaz() { return baz; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java index f7c1b0837289..ff5f0a4fadde 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -26,11 +26,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -46,7 +46,6 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java index ee88c867e6d7..3af421430595 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java @@ -26,16 +26,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -51,7 +50,6 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 72de8399c0fd..3151aa3fbcf8 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -30,31 +30,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -70,7 +66,6 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -91,7 +86,6 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -112,7 +106,6 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -133,7 +126,6 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -162,7 +154,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 9c92fcd4ebce..525e1e2f2c51 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -30,36 +30,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -75,7 +70,6 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -96,7 +90,6 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -117,7 +110,6 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - public Float getFloatItem() { return floatItem; } @@ -138,7 +130,6 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -159,7 +150,6 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -188,7 +178,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java index 6f7346a43f3f..8148d3ccc59d 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java @@ -26,46 +26,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -81,7 +74,6 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -102,7 +94,6 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - public String getUsername() { return username; } @@ -123,7 +114,6 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - public String getFirstName() { return firstName; } @@ -144,7 +134,6 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - public String getLastName() { return lastName; } @@ -165,7 +154,6 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - public String getEmail() { return email; } @@ -186,7 +174,6 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - public String getPassword() { return password; } @@ -207,7 +194,6 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - public String getPhone() { return phone; } @@ -228,7 +214,6 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - public Integer getUserStatus() { return userStatus; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java index ba4045a781bd..ad32b3994b97 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/XmlItem.java @@ -30,151 +30,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -190,7 +162,6 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - public String getAttributeString() { return attributeString; } @@ -211,7 +182,6 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -232,7 +202,6 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - public Integer getAttributeInteger() { return attributeInteger; } @@ -253,7 +222,6 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -282,7 +250,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - public List getWrappedArray() { return wrappedArray; } @@ -303,7 +270,6 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - public String getNameString() { return nameString; } @@ -324,7 +290,6 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - public BigDecimal getNameNumber() { return nameNumber; } @@ -345,7 +310,6 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - public Integer getNameInteger() { return nameInteger; } @@ -366,7 +330,6 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - public Boolean getNameBoolean() { return nameBoolean; } @@ -395,7 +358,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - public List getNameArray() { return nameArray; } @@ -424,7 +386,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,7 +406,6 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - public String getPrefixString() { return prefixString; } @@ -466,7 +426,6 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -487,7 +446,6 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - public Integer getPrefixInteger() { return prefixInteger; } @@ -508,7 +466,6 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -537,7 +494,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - public List getPrefixArray() { return prefixArray; } @@ -566,7 +522,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -587,7 +542,6 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - public String getNamespaceString() { return namespaceString; } @@ -608,7 +562,6 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -629,7 +582,6 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -650,7 +602,6 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -679,7 +630,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - public List getNamespaceArray() { return namespaceArray; } @@ -708,7 +658,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -729,7 +678,6 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - public String getPrefixNsString() { return prefixNsString; } @@ -750,7 +698,6 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -771,7 +718,6 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -792,7 +738,6 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -821,7 +766,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - public List getPrefixNsArray() { return prefixNsArray; } @@ -850,7 +794,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 5c9f023af802..2e242b91ab6a 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -28,11 +28,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -49,7 +49,6 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index bbb26f370e12..6c143d7c5a54 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -29,11 +29,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -50,7 +50,6 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index f1cd2f1e7138..50a5d23c6762 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -28,11 +28,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -49,7 +49,6 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7e6901510c08..77e7076cec65 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -30,61 +30,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -108,7 +98,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - public Map getMapString() { return mapString; } @@ -137,7 +126,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - public Map getMapNumber() { return mapNumber; } @@ -166,7 +154,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - public Map getMapInteger() { return mapInteger; } @@ -195,7 +182,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - public Map getMapBoolean() { return mapBoolean; } @@ -224,7 +210,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -253,7 +238,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -282,7 +266,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -311,7 +294,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -332,7 +314,6 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - public Object getAnytype1() { return anytype1; } @@ -353,7 +334,6 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - public Object getAnytype2() { return anytype2; } @@ -374,7 +354,6 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - public Object getAnytype3() { return anytype3; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index b3b92e6e2273..e22f85f59d7b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -28,11 +28,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -49,7 +49,6 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index ea8f5b449153..02d9380a3f42 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -29,11 +29,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -50,7 +50,6 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 4381139af308..f259d0798665 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -28,11 +28,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -49,7 +49,6 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index c0682136e738..3c6a3ff3959b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -28,11 +28,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -49,7 +49,6 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java index fc0306d2f68e..37b1f65c3a46 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java @@ -26,16 +26,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -51,7 +50,6 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - public String getClassName() { return className; } @@ -72,7 +70,6 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - public String getColor() { return color; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 312bce79cacd..32b34471f4c1 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 9d266ae36369..dda7f5d5f7eb 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java index 085ae37c1cf2..92f653ab496c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -30,21 +30,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -68,7 +66,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +94,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +122,6 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java index af2200f16863..da3e3a6fb6b9 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java @@ -27,6 +27,7 @@ * BigCat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BigCat extends Cat { /** * Gets or Sets kind @@ -78,11 +79,9 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -99,7 +98,6 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - public KindEnum getKind() { return kind; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java index 9d5577818a3d..a18bf4b4b913 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -26,36 +26,31 @@ * Capitalization */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -71,7 +66,6 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - public String getSmallCamel() { return smallCamel; } @@ -92,7 +86,6 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +106,6 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - public String getSmallSnake() { return smallSnake; } @@ -134,7 +126,6 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +146,6 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +166,6 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java index 45f1a7a35a4e..92c61a364e9b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java @@ -27,11 +27,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -48,7 +48,6 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - public Boolean getDeclawed() { return declawed; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java index 644b24f36225..291af2a0ed00 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java @@ -26,16 +26,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -51,7 +50,6 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java index 862d2f79463c..c4bd34795936 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -26,11 +26,11 @@ * Model for testing model with \"_class\" property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -46,7 +46,6 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java index 71f9b680f0e8..f9c124e419eb 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java @@ -26,11 +26,11 @@ * Client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -46,7 +46,6 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - public String getClient() { return client; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java index 277728157007..0849981692fc 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java @@ -27,11 +27,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -48,7 +48,6 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - public String getBreed() { return breed; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java index ec837ff1b2e7..f6d4411efe71 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -29,6 +29,7 @@ * EnumArrays */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -76,11 +77,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -128,11 +127,9 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -148,7 +145,6 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -177,7 +173,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java index cef08bf0628a..f81aeb2cbbdd 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,6 +27,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -76,11 +77,9 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -130,11 +129,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -182,11 +179,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -234,16 +229,13 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -259,7 +251,6 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - public EnumStringEnum getEnumString() { return enumString; } @@ -280,7 +271,6 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -301,7 +291,6 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -322,7 +311,6 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -343,7 +331,6 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - public OuterEnum getOuterEnum() { return outerEnum; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index df6dacaa1f71..d9c4397fac0f 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -30,16 +30,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -55,7 +54,6 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - public ModelFile getFile() { return _file; } @@ -84,7 +82,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - public List getFiles() { return files; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java index 6c59071c3751..7ee6bf99b60b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -31,76 +31,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -118,7 +105,6 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - public Integer getInteger() { return integer; } @@ -141,7 +127,6 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - public Integer getInt32() { return int32; } @@ -162,7 +147,6 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - public Long getInt64() { return int64; } @@ -185,7 +169,6 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - public BigDecimal getNumber() { return number; } @@ -208,7 +191,6 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - public Float getFloat() { return _float; } @@ -231,7 +213,6 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - public Double getDouble() { return _double; } @@ -252,7 +233,6 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - public String getString() { return string; } @@ -273,7 +253,6 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - public byte[] getByte() { return _byte; } @@ -294,7 +273,6 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - public File getBinary() { return binary; } @@ -315,7 +293,6 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - public LocalDate getDate() { return date; } @@ -336,7 +313,6 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -357,7 +333,6 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -378,7 +353,6 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - public String getPassword() { return password; } @@ -399,7 +373,6 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 99cfb90c57cf..46a22b123311 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -26,16 +26,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -57,7 +56,6 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -69,7 +67,6 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - public String getFoo() { return foo; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java index 8c0599df9122..c01ee859bcd5 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java @@ -28,11 +28,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -80,21 +80,17 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -118,7 +114,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - public Map> getMapMapOfString() { return mapMapOfString; } @@ -147,7 +142,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -176,7 +170,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - public Map getDirectMap() { return directMap; } @@ -205,7 +198,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index d092e0b0c480..85adf4cec920 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -31,21 +31,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -61,7 +59,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -82,7 +79,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -111,7 +107,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - public Map getMap() { return map; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java index d3be6fce2e75..884ca664e2a8 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -26,16 +26,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -51,7 +50,6 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - public Integer getName() { return name; } @@ -72,7 +70,6 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 14fa3f08aedc..68aed9325d12 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,21 +26,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -56,7 +54,6 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - public Integer getCode() { return code; } @@ -77,7 +74,6 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - public String getType() { return type; } @@ -98,7 +94,6 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - public String getMessage() { return message; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java index 46a3d5365b32..e601ac148290 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -26,11 +26,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -46,7 +46,6 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - public String getSourceURI() { return sourceURI; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java index 85975144e8e2..43508abd3630 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelList.java @@ -26,11 +26,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -46,7 +46,6 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - public String get123list() { return _123list; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java index 39be3519230c..75919cd1a67c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -26,11 +26,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -46,7 +46,6 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - public Integer getReturn() { return _return; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java index 568ff8a20d1d..9199241f141b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java @@ -26,26 +26,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -73,7 +70,6 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - public Integer getName() { return name; } @@ -88,7 +84,6 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - public Integer getSnakeCase() { return snakeCase; } @@ -106,7 +101,6 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - public String getProperty() { return property; } @@ -121,7 +115,6 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - public Integer get123number() { return _123number; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java index e0a06c9ddeee..8da73a01c881 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -27,11 +27,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -47,7 +47,6 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java index a0d68146490a..3ce41856290f 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java @@ -27,26 +27,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -96,16 +93,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -121,7 +115,6 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -142,7 +135,6 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - public Long getPetId() { return petId; } @@ -163,7 +155,6 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - public Integer getQuantity() { return quantity; } @@ -184,7 +175,6 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - public OffsetDateTime getShipDate() { return shipDate; } @@ -205,7 +195,6 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } @@ -226,7 +215,6 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - public Boolean getComplete() { return complete; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java index 4fd0d4035ca8..11873cc1ca5b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -27,21 +27,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -57,7 +55,6 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +75,6 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - public String getMyString() { return myString; } @@ -99,7 +95,6 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java index ff5b80cb4d2c..794c4789e480 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java @@ -33,31 +33,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -107,11 +103,9 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -127,7 +121,6 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -148,7 +141,6 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - public Category getCategory() { return category; } @@ -169,7 +161,6 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } @@ -198,7 +189,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - public Set getPhotoUrls() { return photoUrls; } @@ -227,7 +217,6 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - public List getTags() { return tags; } @@ -248,7 +237,6 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 374fce7ae200..acf7ba2f4517 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -26,16 +26,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -55,7 +54,6 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -73,7 +71,6 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - public String getBaz() { return baz; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java index f7c1b0837289..ff5f0a4fadde 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -26,11 +26,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -46,7 +46,6 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java index ee88c867e6d7..3af421430595 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java @@ -26,16 +26,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -51,7 +50,6 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 72de8399c0fd..3151aa3fbcf8 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -30,31 +30,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -70,7 +66,6 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -91,7 +86,6 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -112,7 +106,6 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -133,7 +126,6 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -162,7 +154,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 9c92fcd4ebce..525e1e2f2c51 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -30,36 +30,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -75,7 +70,6 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -96,7 +90,6 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -117,7 +110,6 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - public Float getFloatItem() { return floatItem; } @@ -138,7 +130,6 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -159,7 +150,6 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -188,7 +178,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java index 6f7346a43f3f..8148d3ccc59d 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java @@ -26,46 +26,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -81,7 +74,6 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -102,7 +94,6 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - public String getUsername() { return username; } @@ -123,7 +114,6 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - public String getFirstName() { return firstName; } @@ -144,7 +134,6 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - public String getLastName() { return lastName; } @@ -165,7 +154,6 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - public String getEmail() { return email; } @@ -186,7 +174,6 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - public String getPassword() { return password; } @@ -207,7 +194,6 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - public String getPhone() { return phone; } @@ -228,7 +214,6 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - public Integer getUserStatus() { return userStatus; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java index ba4045a781bd..ad32b3994b97 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/XmlItem.java @@ -30,151 +30,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -190,7 +162,6 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - public String getAttributeString() { return attributeString; } @@ -211,7 +182,6 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -232,7 +202,6 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - public Integer getAttributeInteger() { return attributeInteger; } @@ -253,7 +222,6 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -282,7 +250,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - public List getWrappedArray() { return wrappedArray; } @@ -303,7 +270,6 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - public String getNameString() { return nameString; } @@ -324,7 +290,6 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - public BigDecimal getNameNumber() { return nameNumber; } @@ -345,7 +310,6 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - public Integer getNameInteger() { return nameInteger; } @@ -366,7 +330,6 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - public Boolean getNameBoolean() { return nameBoolean; } @@ -395,7 +358,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - public List getNameArray() { return nameArray; } @@ -424,7 +386,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,7 +406,6 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - public String getPrefixString() { return prefixString; } @@ -466,7 +426,6 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -487,7 +446,6 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - public Integer getPrefixInteger() { return prefixInteger; } @@ -508,7 +466,6 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -537,7 +494,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - public List getPrefixArray() { return prefixArray; } @@ -566,7 +522,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -587,7 +542,6 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - public String getNamespaceString() { return namespaceString; } @@ -608,7 +562,6 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -629,7 +582,6 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -650,7 +602,6 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -679,7 +630,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - public List getNamespaceArray() { return namespaceArray; } @@ -708,7 +658,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -729,7 +678,6 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - public String getPrefixNsString() { return prefixNsString; } @@ -750,7 +698,6 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -771,7 +718,6 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -792,7 +738,6 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -821,7 +766,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - public List getPrefixNsArray() { return prefixNsArray; } @@ -850,7 +794,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 5c9f023af802..2e242b91ab6a 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -28,11 +28,11 @@ * AdditionalPropertiesAnyType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -49,7 +49,6 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index bbb26f370e12..6c143d7c5a54 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -29,11 +29,11 @@ * AdditionalPropertiesArray */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -50,7 +50,6 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index f1cd2f1e7138..50a5d23c6762 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -28,11 +28,11 @@ * AdditionalPropertiesBoolean */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -49,7 +49,6 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7e6901510c08..77e7076cec65 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -30,61 +30,51 @@ * AdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String SERIALIZED_NAME_MAP_STRING = "map_string"; @SerializedName(SERIALIZED_NAME_MAP_STRING) - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_NUMBER = "map_number"; @SerializedName(SERIALIZED_NAME_MAP_NUMBER) - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_INTEGER = "map_integer"; @SerializedName(SERIALIZED_NAME_MAP_INTEGER) - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_BOOLEAN = "map_boolean"; @SerializedName(SERIALIZED_NAME_MAP_BOOLEAN) - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_INTEGER = "map_array_integer"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_INTEGER) - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_ARRAY_ANYTYPE = "map_array_anytype"; @SerializedName(SERIALIZED_NAME_MAP_ARRAY_ANYTYPE) - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_STRING = "map_map_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_STRING) - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String SERIALIZED_NAME_MAP_MAP_ANYTYPE = "map_map_anytype"; @SerializedName(SERIALIZED_NAME_MAP_MAP_ANYTYPE) - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String SERIALIZED_NAME_ANYTYPE1 = "anytype_1"; @SerializedName(SERIALIZED_NAME_ANYTYPE1) - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String SERIALIZED_NAME_ANYTYPE2 = "anytype_2"; @SerializedName(SERIALIZED_NAME_ANYTYPE2) - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String SERIALIZED_NAME_ANYTYPE3 = "anytype_3"; @SerializedName(SERIALIZED_NAME_ANYTYPE3) - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -108,7 +98,6 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - public Map getMapString() { return mapString; } @@ -137,7 +126,6 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - public Map getMapNumber() { return mapNumber; } @@ -166,7 +154,6 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - public Map getMapInteger() { return mapInteger; } @@ -195,7 +182,6 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - public Map getMapBoolean() { return mapBoolean; } @@ -224,7 +210,6 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { return mapArrayInteger; } @@ -253,7 +238,6 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - public Map> getMapArrayAnytype() { return mapArrayAnytype; } @@ -282,7 +266,6 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { return mapMapString; } @@ -311,7 +294,6 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { return mapMapAnytype; } @@ -332,7 +314,6 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - public Object getAnytype1() { return anytype1; } @@ -353,7 +334,6 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - public Object getAnytype2() { return anytype2; } @@ -374,7 +354,6 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - public Object getAnytype3() { return anytype3; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index b3b92e6e2273..e22f85f59d7b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -28,11 +28,11 @@ * AdditionalPropertiesInteger */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -49,7 +49,6 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index ea8f5b449153..02d9380a3f42 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -29,11 +29,11 @@ * AdditionalPropertiesNumber */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -50,7 +50,6 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 4381139af308..f259d0798665 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -28,11 +28,11 @@ * AdditionalPropertiesObject */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -49,7 +49,6 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index c0682136e738..3c6a3ff3959b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -28,11 +28,11 @@ * AdditionalPropertiesString */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -49,7 +49,6 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java index fc0306d2f68e..37b1f65c3a46 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Animal.java @@ -26,16 +26,15 @@ * Animal */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Animal { public static final String SERIALIZED_NAME_CLASS_NAME = "className"; @SerializedName(SERIALIZED_NAME_CLASS_NAME) - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String SERIALIZED_NAME_COLOR = "color"; @SerializedName(SERIALIZED_NAME_COLOR) - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -51,7 +50,6 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - public String getClassName() { return className; } @@ -72,7 +70,6 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - public String getColor() { return color; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 312bce79cacd..32b34471f4c1 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - public List> getArrayArrayNumber() { return arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 9d266ae36369..dda7f5d5f7eb 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -30,11 +30,11 @@ * ArrayOfNumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -58,7 +58,6 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - public List getArrayNumber() { return arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java index 085ae37c1cf2..92f653ab496c 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -30,21 +30,19 @@ * ArrayTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -68,7 +66,6 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - public List getArrayOfString() { return arrayOfString; } @@ -97,7 +94,6 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } @@ -126,7 +122,6 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - public List> getArrayArrayOfModel() { return arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java index af2200f16863..da3e3a6fb6b9 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java @@ -27,6 +27,7 @@ * BigCat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class BigCat extends Cat { /** * Gets or Sets kind @@ -78,11 +79,9 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -99,7 +98,6 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - public KindEnum getKind() { return kind; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java index 9d5577818a3d..a18bf4b4b913 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Capitalization.java @@ -26,36 +26,31 @@ * Capitalization */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -71,7 +66,6 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - public String getSmallCamel() { return smallCamel; } @@ -92,7 +86,6 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - public String getCapitalCamel() { return capitalCamel; } @@ -113,7 +106,6 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - public String getSmallSnake() { return smallSnake; } @@ -134,7 +126,6 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - public String getCapitalSnake() { return capitalSnake; } @@ -155,7 +146,6 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - public String getScAETHFlowPoints() { return scAETHFlowPoints; } @@ -176,7 +166,6 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - public String getATTNAME() { return ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java index 45f1a7a35a4e..92c61a364e9b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Cat.java @@ -27,11 +27,11 @@ * Cat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Cat extends Animal { public static final String SERIALIZED_NAME_DECLAWED = "declawed"; @SerializedName(SERIALIZED_NAME_DECLAWED) - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -48,7 +48,6 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - public Boolean getDeclawed() { return declawed; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java index 644b24f36225..291af2a0ed00 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Category.java @@ -26,16 +26,15 @@ * Category */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -51,7 +50,6 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java index 862d2f79463c..c4bd34795936 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ClassModel.java @@ -26,11 +26,11 @@ * Model for testing model with \"_class\" property */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -46,7 +46,6 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java index 71f9b680f0e8..f9c124e419eb 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Client.java @@ -26,11 +26,11 @@ * Client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String SERIALIZED_NAME_CLIENT = "client"; @SerializedName(SERIALIZED_NAME_CLIENT) - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -46,7 +46,6 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - public String getClient() { return client; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java index 277728157007..0849981692fc 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Dog.java @@ -27,11 +27,11 @@ * Dog */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Dog extends Animal { public static final String SERIALIZED_NAME_BREED = "breed"; @SerializedName(SERIALIZED_NAME_BREED) - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -48,7 +48,6 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - public String getBreed() { return breed; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java index ec837ff1b2e7..f6d4411efe71 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -29,6 +29,7 @@ * EnumArrays */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -76,11 +77,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -128,11 +127,9 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -148,7 +145,6 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - public JustSymbolEnum getJustSymbol() { return justSymbol; } @@ -177,7 +173,6 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - public List getArrayEnum() { return arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java index cef08bf0628a..f81aeb2cbbdd 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -27,6 +27,7 @@ * EnumTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -76,11 +77,9 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; @SerializedName(SERIALIZED_NAME_ENUM_STRING) - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -130,11 +129,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } } - public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -182,11 +179,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -234,16 +229,13 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; @SerializedName(SERIALIZED_NAME_OUTER_ENUM) - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -259,7 +251,6 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - public EnumStringEnum getEnumString() { return enumString; } @@ -280,7 +271,6 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } @@ -301,7 +291,6 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - public EnumIntegerEnum getEnumInteger() { return enumInteger; } @@ -322,7 +311,6 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - public EnumNumberEnum getEnumNumber() { return enumNumber; } @@ -343,7 +331,6 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - public OuterEnum getOuterEnum() { return outerEnum; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index df6dacaa1f71..d9c4397fac0f 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -30,16 +30,15 @@ * FileSchemaTestClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String SERIALIZED_NAME_FILE = "file"; @SerializedName(SERIALIZED_NAME_FILE) - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String SERIALIZED_NAME_FILES = "files"; @SerializedName(SERIALIZED_NAME_FILES) - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -55,7 +54,6 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - public ModelFile getFile() { return _file; } @@ -84,7 +82,6 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - public List getFiles() { return files; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java index 6c59071c3751..7ee6bf99b60b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/FormatTest.java @@ -31,76 +31,63 @@ * FormatTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String SERIALIZED_NAME_INTEGER = "integer"; @SerializedName(SERIALIZED_NAME_INTEGER) - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String SERIALIZED_NAME_NUMBER = "number"; @SerializedName(SERIALIZED_NAME_NUMBER) - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String SERIALIZED_NAME_FLOAT = "float"; @SerializedName(SERIALIZED_NAME_FLOAT) - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String SERIALIZED_NAME_DOUBLE = "double"; @SerializedName(SERIALIZED_NAME_DOUBLE) - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String SERIALIZED_NAME_BYTE = "byte"; @SerializedName(SERIALIZED_NAME_BYTE) - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String SERIALIZED_NAME_BINARY = "binary"; @SerializedName(SERIALIZED_NAME_BINARY) - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String SERIALIZED_NAME_DATE = "date"; @SerializedName(SERIALIZED_NAME_DATE) - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String SERIALIZED_NAME_BIG_DECIMAL = "BigDecimal"; @SerializedName(SERIALIZED_NAME_BIG_DECIMAL) - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -118,7 +105,6 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - public Integer getInteger() { return integer; } @@ -141,7 +127,6 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - public Integer getInt32() { return int32; } @@ -162,7 +147,6 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - public Long getInt64() { return int64; } @@ -185,7 +169,6 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - public BigDecimal getNumber() { return number; } @@ -208,7 +191,6 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - public Float getFloat() { return _float; } @@ -231,7 +213,6 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - public Double getDouble() { return _double; } @@ -252,7 +233,6 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - public String getString() { return string; } @@ -273,7 +253,6 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - public byte[] getByte() { return _byte; } @@ -294,7 +273,6 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - public File getBinary() { return binary; } @@ -315,7 +293,6 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - public LocalDate getDate() { return date; } @@ -336,7 +313,6 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -357,7 +333,6 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -378,7 +353,6 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - public String getPassword() { return password; } @@ -399,7 +373,6 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - public BigDecimal getBigDecimal() { return bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 99cfb90c57cf..46a22b123311 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -26,16 +26,15 @@ * HasOnlyReadOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_FOO = "foo"; @SerializedName(SERIALIZED_NAME_FOO) - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -57,7 +56,6 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -69,7 +67,6 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - public String getFoo() { return foo; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java index 8c0599df9122..c01ee859bcd5 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java @@ -28,11 +28,11 @@ * MapTest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -80,21 +80,17 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map"; @SerializedName(SERIALIZED_NAME_DIRECT_MAP) - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map"; @SerializedName(SERIALIZED_NAME_INDIRECT_MAP) - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -118,7 +114,6 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - public Map> getMapMapOfString() { return mapMapOfString; } @@ -147,7 +142,6 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - public Map getMapOfEnumString() { return mapOfEnumString; } @@ -176,7 +170,6 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - public Map getDirectMap() { return directMap; } @@ -205,7 +198,6 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - public Map getIndirectMap() { return indirectMap; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index d092e0b0c480..85adf4cec920 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -31,21 +31,19 @@ * MixedPropertiesAndAdditionalPropertiesClass */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; @SerializedName(SERIALIZED_NAME_DATE_TIME) - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String SERIALIZED_NAME_MAP = "map"; @SerializedName(SERIALIZED_NAME_MAP) - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -61,7 +59,6 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - public UUID getUuid() { return uuid; } @@ -82,7 +79,6 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - public OffsetDateTime getDateTime() { return dateTime; } @@ -111,7 +107,6 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - public Map getMap() { return map; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java index d3be6fce2e75..884ca664e2a8 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Model200Response.java @@ -26,16 +26,15 @@ * Model for testing model name starting with number */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -51,7 +50,6 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - public Integer getName() { return name; } @@ -72,7 +70,6 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - public String getPropertyClass() { return propertyClass; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 14fa3f08aedc..68aed9325d12 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -26,21 +26,19 @@ * ModelApiResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -56,7 +54,6 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - public Integer getCode() { return code; } @@ -77,7 +74,6 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - public String getType() { return type; } @@ -98,7 +94,6 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - public String getMessage() { return message; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java index 46a3d5365b32..e601ac148290 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelFile.java @@ -26,11 +26,11 @@ * Must be named `File` for test. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String SERIALIZED_NAME_SOURCE_U_R_I = "sourceURI"; @SerializedName(SERIALIZED_NAME_SOURCE_U_R_I) - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -46,7 +46,6 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - public String getSourceURI() { return sourceURI; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java index 85975144e8e2..43508abd3630 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelList.java @@ -26,11 +26,11 @@ * ModelList */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String SERIALIZED_NAME_123LIST = "123-list"; @SerializedName(SERIALIZED_NAME_123LIST) - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -46,7 +46,6 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - public String get123list() { return _123list; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java index 39be3519230c..75919cd1a67c 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -26,11 +26,11 @@ * Model for testing reserved words */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String SERIALIZED_NAME_RETURN = "return"; @SerializedName(SERIALIZED_NAME_RETURN) - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -46,7 +46,6 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - public Integer getReturn() { return _return; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java index 568ff8a20d1d..9199241f141b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Name.java @@ -26,26 +26,23 @@ * Model for testing model name same as property name */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; @SerializedName(SERIALIZED_NAME_SNAKE_CASE) - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String SERIALIZED_NAME_PROPERTY = "property"; @SerializedName(SERIALIZED_NAME_PROPERTY) - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String SERIALIZED_NAME_123NUMBER = "123Number"; @SerializedName(SERIALIZED_NAME_123NUMBER) - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -73,7 +70,6 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - public Integer getName() { return name; } @@ -88,7 +84,6 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - public Integer getSnakeCase() { return snakeCase; } @@ -106,7 +101,6 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - public String getProperty() { return property; } @@ -121,7 +115,6 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - public Integer get123number() { return _123number; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java index e0a06c9ddeee..8da73a01c881 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -27,11 +27,11 @@ * NumberOnly */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; @SerializedName(SERIALIZED_NAME_JUST_NUMBER) - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -47,7 +47,6 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - public BigDecimal getJustNumber() { return justNumber; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java index a0d68146490a..3ce41856290f 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java @@ -27,26 +27,23 @@ * Order */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_PET_ID = "petId"; @SerializedName(SERIALIZED_NAME_PET_ID) - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; @SerializedName(SERIALIZED_NAME_SHIP_DATE) - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -96,16 +93,13 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String SERIALIZED_NAME_COMPLETE = "complete"; @SerializedName(SERIALIZED_NAME_COMPLETE) - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -121,7 +115,6 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -142,7 +135,6 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - public Long getPetId() { return petId; } @@ -163,7 +155,6 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - public Integer getQuantity() { return quantity; } @@ -184,7 +175,6 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - public OffsetDateTime getShipDate() { return shipDate; } @@ -205,7 +195,6 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } @@ -226,7 +215,6 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - public Boolean getComplete() { return complete; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java index 4fd0d4035ca8..11873cc1ca5b 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -27,21 +27,19 @@ * OuterComposite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; @SerializedName(SERIALIZED_NAME_MY_NUMBER) - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String SERIALIZED_NAME_MY_STRING = "my_string"; @SerializedName(SERIALIZED_NAME_MY_STRING) - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -57,7 +55,6 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - public BigDecimal getMyNumber() { return myNumber; } @@ -78,7 +75,6 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - public String getMyString() { return myString; } @@ -99,7 +95,6 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - public Boolean getMyBoolean() { return myBoolean; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java index ff5b80cb4d2c..794c4789e480 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java @@ -33,31 +33,27 @@ * Pet */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_CATEGORY = "category"; @SerializedName(SERIALIZED_NAME_CATEGORY) - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; @SerializedName(SERIALIZED_NAME_PHOTO_URLS) - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -107,11 +103,9 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } } - public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -127,7 +121,6 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -148,7 +141,6 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - public Category getCategory() { return category; } @@ -169,7 +161,6 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - public String getName() { return name; } @@ -198,7 +189,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - public Set getPhotoUrls() { return photoUrls; } @@ -227,7 +217,6 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - public List getTags() { return tags; } @@ -248,7 +237,6 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - public StatusEnum getStatus() { return status; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 374fce7ae200..acf7ba2f4517 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -26,16 +26,15 @@ * ReadOnlyFirst */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String SERIALIZED_NAME_BAR = "bar"; @SerializedName(SERIALIZED_NAME_BAR) - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String SERIALIZED_NAME_BAZ = "baz"; @SerializedName(SERIALIZED_NAME_BAZ) - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -55,7 +54,6 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - public String getBar() { return bar; } @@ -73,7 +71,6 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - public String getBaz() { return baz; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java index f7c1b0837289..ff5f0a4fadde 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -26,11 +26,11 @@ * SpecialModelName */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -46,7 +46,6 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - public Long get$SpecialPropertyName() { return $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java index ee88c867e6d7..3af421430595 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Tag.java @@ -26,16 +26,15 @@ * Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -51,7 +50,6 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -72,7 +70,6 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - public String getName() { return name; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 72de8399c0fd..3151aa3fbcf8 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -30,31 +30,27 @@ * TypeHolderDefault */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -70,7 +66,6 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -91,7 +86,6 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -112,7 +106,6 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -133,7 +126,6 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -162,7 +154,6 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 9c92fcd4ebce..525e1e2f2c51 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -30,36 +30,31 @@ * TypeHolderExample */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String SERIALIZED_NAME_STRING_ITEM = "string_item"; @SerializedName(SERIALIZED_NAME_STRING_ITEM) - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item"; @SerializedName(SERIALIZED_NAME_NUMBER_ITEM) - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item"; @SerializedName(SERIALIZED_NAME_FLOAT_ITEM) - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item"; @SerializedName(SERIALIZED_NAME_INTEGER_ITEM) - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item"; @SerializedName(SERIALIZED_NAME_BOOL_ITEM) - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item"; @SerializedName(SERIALIZED_NAME_ARRAY_ITEM) - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -75,7 +70,6 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - public String getStringItem() { return stringItem; } @@ -96,7 +90,6 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - public BigDecimal getNumberItem() { return numberItem; } @@ -117,7 +110,6 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - public Float getFloatItem() { return floatItem; } @@ -138,7 +130,6 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - public Integer getIntegerItem() { return integerItem; } @@ -159,7 +150,6 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - public Boolean getBoolItem() { return boolItem; } @@ -188,7 +178,6 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - public List getArrayItem() { return arrayItem; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java index 6f7346a43f3f..8148d3ccc59d 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/User.java @@ -26,46 +26,39 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; @SerializedName(SERIALIZED_NAME_FIRST_NAME) - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; @SerializedName(SERIALIZED_NAME_LAST_NAME) - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_PHONE = "phone"; @SerializedName(SERIALIZED_NAME_PHONE) - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; @SerializedName(SERIALIZED_NAME_USER_STATUS) - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -81,7 +74,6 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - public Long getId() { return id; } @@ -102,7 +94,6 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - public String getUsername() { return username; } @@ -123,7 +114,6 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - public String getFirstName() { return firstName; } @@ -144,7 +134,6 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - public String getLastName() { return lastName; } @@ -165,7 +154,6 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - public String getEmail() { return email; } @@ -186,7 +174,6 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - public String getPassword() { return password; } @@ -207,7 +194,6 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - public String getPhone() { return phone; } @@ -228,7 +214,6 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - public Integer getUserStatus() { return userStatus; } diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java index ba4045a781bd..ad32b3994b97 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/XmlItem.java @@ -30,151 +30,123 @@ * XmlItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING) - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String SERIALIZED_NAME_ATTRIBUTE_NUMBER = "attribute_number"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_NUMBER) - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String SERIALIZED_NAME_ATTRIBUTE_INTEGER = "attribute_integer"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_INTEGER) - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String SERIALIZED_NAME_ATTRIBUTE_BOOLEAN = "attribute_boolean"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BOOLEAN) - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String SERIALIZED_NAME_WRAPPED_ARRAY = "wrapped_array"; @SerializedName(SERIALIZED_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_STRING = "name_string"; @SerializedName(SERIALIZED_NAME_NAME_STRING) - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String SERIALIZED_NAME_NAME_NUMBER = "name_number"; @SerializedName(SERIALIZED_NAME_NAME_NUMBER) - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String SERIALIZED_NAME_NAME_INTEGER = "name_integer"; @SerializedName(SERIALIZED_NAME_NAME_INTEGER) - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String SERIALIZED_NAME_NAME_BOOLEAN = "name_boolean"; @SerializedName(SERIALIZED_NAME_NAME_BOOLEAN) - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String SERIALIZED_NAME_NAME_ARRAY = "name_array"; @SerializedName(SERIALIZED_NAME_NAME_ARRAY) - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAME_WRAPPED_ARRAY = "name_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAME_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_STRING = "prefix_string"; @SerializedName(SERIALIZED_NAME_PREFIX_STRING) - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String SERIALIZED_NAME_PREFIX_NUMBER = "prefix_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String SERIALIZED_NAME_PREFIX_INTEGER = "prefix_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_INTEGER) - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String SERIALIZED_NAME_PREFIX_BOOLEAN = "prefix_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String SERIALIZED_NAME_PREFIX_ARRAY = "prefix_array"; @SerializedName(SERIALIZED_NAME_PREFIX_ARRAY) - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_STRING = "namespace_string"; @SerializedName(SERIALIZED_NAME_NAMESPACE_STRING) - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String SERIALIZED_NAME_NAMESPACE_NUMBER = "namespace_number"; @SerializedName(SERIALIZED_NAME_NAMESPACE_NUMBER) - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String SERIALIZED_NAME_NAMESPACE_INTEGER = "namespace_integer"; @SerializedName(SERIALIZED_NAME_NAMESPACE_INTEGER) - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String SERIALIZED_NAME_NAMESPACE_BOOLEAN = "namespace_boolean"; @SerializedName(SERIALIZED_NAME_NAMESPACE_BOOLEAN) - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String SERIALIZED_NAME_NAMESPACE_ARRAY = "namespace_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_ARRAY) - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; @SerializedName(SERIALIZED_NAME_NAMESPACE_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_STRING = "prefix_ns_string"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_STRING) - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String SERIALIZED_NAME_PREFIX_NS_NUMBER = "prefix_ns_number"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_NUMBER) - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String SERIALIZED_NAME_PREFIX_NS_INTEGER = "prefix_ns_integer"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_INTEGER) - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String SERIALIZED_NAME_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_BOOLEAN) - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String SERIALIZED_NAME_PREFIX_NS_ARRAY = "prefix_ns_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_ARRAY) - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; @SerializedName(SERIALIZED_NAME_PREFIX_NS_WRAPPED_ARRAY) - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -190,7 +162,6 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - public String getAttributeString() { return attributeString; } @@ -211,7 +182,6 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - public BigDecimal getAttributeNumber() { return attributeNumber; } @@ -232,7 +202,6 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - public Integer getAttributeInteger() { return attributeInteger; } @@ -253,7 +222,6 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - public Boolean getAttributeBoolean() { return attributeBoolean; } @@ -282,7 +250,6 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - public List getWrappedArray() { return wrappedArray; } @@ -303,7 +270,6 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - public String getNameString() { return nameString; } @@ -324,7 +290,6 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - public BigDecimal getNameNumber() { return nameNumber; } @@ -345,7 +310,6 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - public Integer getNameInteger() { return nameInteger; } @@ -366,7 +330,6 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - public Boolean getNameBoolean() { return nameBoolean; } @@ -395,7 +358,6 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - public List getNameArray() { return nameArray; } @@ -424,7 +386,6 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - public List getNameWrappedArray() { return nameWrappedArray; } @@ -445,7 +406,6 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - public String getPrefixString() { return prefixString; } @@ -466,7 +426,6 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNumber() { return prefixNumber; } @@ -487,7 +446,6 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - public Integer getPrefixInteger() { return prefixInteger; } @@ -508,7 +466,6 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - public Boolean getPrefixBoolean() { return prefixBoolean; } @@ -537,7 +494,6 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - public List getPrefixArray() { return prefixArray; } @@ -566,7 +522,6 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - public List getPrefixWrappedArray() { return prefixWrappedArray; } @@ -587,7 +542,6 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - public String getNamespaceString() { return namespaceString; } @@ -608,7 +562,6 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - public BigDecimal getNamespaceNumber() { return namespaceNumber; } @@ -629,7 +582,6 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - public Integer getNamespaceInteger() { return namespaceInteger; } @@ -650,7 +602,6 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - public Boolean getNamespaceBoolean() { return namespaceBoolean; } @@ -679,7 +630,6 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - public List getNamespaceArray() { return namespaceArray; } @@ -708,7 +658,6 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - public List getNamespaceWrappedArray() { return namespaceWrappedArray; } @@ -729,7 +678,6 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - public String getPrefixNsString() { return prefixNsString; } @@ -750,7 +698,6 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - public BigDecimal getPrefixNsNumber() { return prefixNsNumber; } @@ -771,7 +718,6 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - public Integer getPrefixNsInteger() { return prefixNsInteger; } @@ -792,7 +738,6 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - public Boolean getPrefixNsBoolean() { return prefixNsBoolean; } @@ -821,7 +766,6 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - public List getPrefixNsArray() { return prefixNsArray; } @@ -850,7 +794,6 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - public List getPrefixNsWrappedArray() { return prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 9debf0e54b4a..86207d66fc3b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -32,10 +32,10 @@ AdditionalPropertiesAnyType.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesAnyType extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesAnyType() { @@ -51,8 +51,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 0ca63318ea10..973aa96ab5ce 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -33,10 +33,10 @@ AdditionalPropertiesArray.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesArray extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesArray() { @@ -52,8 +52,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 198098998991..345ef2db7d27 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -32,10 +32,10 @@ AdditionalPropertiesBoolean.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesBoolean extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesBoolean() { @@ -51,8 +51,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index fe25bc34ed8a..95b20ab1c452 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -44,50 +44,40 @@ AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3 }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_STRING = "map_string"; - @javax.annotation.Nullable - private Map mapString = new HashMap<>(); + @javax.annotation.Nullable private Map mapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; - @javax.annotation.Nullable - private Map mapNumber = new HashMap<>(); + @javax.annotation.Nullable private Map mapNumber = new HashMap<>(); public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; - @javax.annotation.Nullable - private Map mapInteger = new HashMap<>(); + @javax.annotation.Nullable private Map mapInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; - @javax.annotation.Nullable - private Map mapBoolean = new HashMap<>(); + @javax.annotation.Nullable private Map mapBoolean = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer"; - @javax.annotation.Nullable - private Map> mapArrayInteger = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayInteger = new HashMap<>(); public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype"; - @javax.annotation.Nullable - private Map> mapArrayAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapArrayAnytype = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string"; - @javax.annotation.Nullable - private Map> mapMapString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapString = new HashMap<>(); public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype"; - @javax.annotation.Nullable - private Map> mapMapAnytype = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapAnytype = new HashMap<>(); public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; - @javax.annotation.Nullable - private Object anytype1; + @javax.annotation.Nullable private Object anytype1; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; - @javax.annotation.Nullable - private Object anytype2; + @javax.annotation.Nullable private Object anytype2; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; - @javax.annotation.Nullable - private Object anytype3; + @javax.annotation.Nullable private Object anytype3; public AdditionalPropertiesClass() { } @@ -110,8 +100,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * Get mapString * @return mapString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -143,8 +132,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * Get mapNumber * @return mapNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -176,8 +164,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * Get mapInteger * @return mapInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -209,8 +196,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * Get mapBoolean * @return mapBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -242,8 +228,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -275,8 +260,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * Get mapArrayAnytype * @return mapArrayAnytype */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -308,8 +292,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -341,8 +324,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -366,8 +348,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * Get anytype1 * @return anytype1 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -391,8 +372,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * Get anytype2 * @return anytype2 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -416,8 +396,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * Get anytype3 * @return anytype3 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANYTYPE3) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 95004c43bea6..908c12949c84 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -32,10 +32,10 @@ AdditionalPropertiesInteger.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesInteger extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesInteger() { @@ -51,8 +51,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 6a2e2be227e8..d04cf67a7a7f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -33,10 +33,10 @@ AdditionalPropertiesNumber.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesNumber extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesNumber() { @@ -52,8 +52,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 5fbc22151d4c..99ce043986fc 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -32,10 +32,10 @@ AdditionalPropertiesObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesObject extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesObject() { @@ -51,8 +51,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index eb29c72010b1..4834a62d9e41 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -32,10 +32,10 @@ AdditionalPropertiesString.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesString extends HashMap { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public AdditionalPropertiesString() { @@ -51,8 +51,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 5e764d85a6cb..37483276f394 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -47,12 +48,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -67,8 +66,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -92,8 +90,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f58e3255492..c49cc5f2bc55 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f3d46916faa9..4b662a61dbcc 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 771578abd0ac..c9b8d66152d9 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 073996fa7a07..4f340150c8b9 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -34,6 +34,7 @@ BigCat.JSON_PROPERTY_KIND }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -79,10 +80,8 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_KIND = "kind"; - @javax.annotation.Nullable - private KindEnum kind; + @javax.annotation.Nullable private KindEnum kind; public BigCat() { @@ -98,8 +97,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * Get kind * @return kind */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_KIND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index 6cd94422b1cc..e34fd05e3c37 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index ca385024c9d5..7eeca2cbb16c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -45,8 +46,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - protected Boolean declawed; + @javax.annotation.Nullable protected Boolean declawed; public Cat() { @@ -62,8 +62,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 50b6ff1d6a27..46b862b17d1d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index dbf6964fdad2..ad6952b6eb7f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java index 0be09220e7df..9614edc8acc4 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index 8004beff9756..77e5abc774b0 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index 42c505b11899..8578245ac910 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index a5667a13859d..575301e41b9c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -36,6 +36,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -73,10 +74,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -114,10 +113,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -153,10 +150,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -192,14 +187,11 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private OuterEnum outerEnum; + @javax.annotation.Nullable private OuterEnum outerEnum; public EnumTest() { } @@ -214,8 +206,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -239,8 +230,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -264,8 +254,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -289,8 +278,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -314,8 +302,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 6c10cc7d053f..a033667c4620 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index ff518a3770fc..4a698c204662 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -49,62 +49,49 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private AsyncFile binary; + @javax.annotation.Nullable private AsyncFile binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal"; - @javax.annotation.Nullable - private BigDecimal bigDecimal; + @javax.annotation.Nullable private BigDecimal bigDecimal; public FormatTest() { } @@ -121,8 +108,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -148,8 +134,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -173,8 +158,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -200,8 +184,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -227,8 +210,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -254,8 +236,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -279,8 +260,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -304,8 +284,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -329,8 +308,7 @@ public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AsyncFile getBinary() { @@ -354,8 +332,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -379,8 +356,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -404,8 +380,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -429,8 +404,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -454,8 +428,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * Get bigDecimal * @return bigDecimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6dc15593463d..ae4b6ba19d1b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 03fcf6214210..cf65489efd5f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 27b5ebbd852b..402e91a9a0b7 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index 0b83c6011405..dcd9d4a0b913 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0938a865de43..01a8f08a5e4e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java index 73f5779de22f..5f6966cf7b29 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index f8d50bc17620..ce8b0d976724 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index 314794ba50b5..0496b4e8ac67 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java index 4789044c8530..45a18bdb0475 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 341017c96d26..b3d7cd4222fd 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 0136b2dcc833..834d17fb706a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index c9b0b884ef29..b1979a9e65da 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 8cfe9533fe17..dff2cdd7187a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e0e1e8bb4bbd..7fd8fc08906c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 74687fe9f3ba..ef5f1a8cea7b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("$special[model.name]") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index ebcb558efe5f..027b8542d358 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index af3db9484123..0f6bc121797e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -38,26 +38,22 @@ TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderDefault { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem = "what"; + @javax.annotation.Nonnull private String stringItem = "what"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem = true; + @javax.annotation.Nonnull private Boolean boolItem = true; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderDefault() { } @@ -72,8 +68,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -97,8 +92,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -122,8 +116,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -147,8 +140,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -180,8 +172,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index ba7a6d198a2a..81249dce0276 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -39,30 +39,25 @@ TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TypeHolderExample { public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; - @javax.annotation.Nonnull - private String stringItem; + @javax.annotation.Nonnull private String stringItem; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; - @javax.annotation.Nonnull - private BigDecimal numberItem; + @javax.annotation.Nonnull private BigDecimal numberItem; public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item"; - @javax.annotation.Nonnull - private Float floatItem; + @javax.annotation.Nonnull private Float floatItem; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; - @javax.annotation.Nonnull - private Integer integerItem; + @javax.annotation.Nonnull private Integer integerItem; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; - @javax.annotation.Nonnull - private Boolean boolItem; + @javax.annotation.Nonnull private Boolean boolItem; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; - @javax.annotation.Nonnull - private List arrayItem = new ArrayList<>(); + @javax.annotation.Nonnull private List arrayItem = new ArrayList<>(); public TypeHolderExample() { } @@ -77,8 +72,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * Get stringItem * @return stringItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STRING_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -102,8 +96,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * Get numberItem * @return numberItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -127,8 +120,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * Get floatItem * @return floatItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -152,8 +144,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * Get integerItem * @return integerItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -177,8 +168,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * Get boolItem * @return boolItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BOOL_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -210,8 +200,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * Get arrayItem * @return arrayItem */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java index 9d11826fc6b6..019c8bd1f88b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index 0ff945d70a11..f1f62d3f1094 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -62,122 +62,94 @@ XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class XmlItem { public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; - @javax.annotation.Nullable - private String attributeString; + @javax.annotation.Nullable private String attributeString; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; - @javax.annotation.Nullable - private BigDecimal attributeNumber; + @javax.annotation.Nullable private BigDecimal attributeNumber; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; - @javax.annotation.Nullable - private Integer attributeInteger; + @javax.annotation.Nullable private Integer attributeInteger; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; - @javax.annotation.Nullable - private Boolean attributeBoolean; + @javax.annotation.Nullable private Boolean attributeBoolean; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; - @javax.annotation.Nullable - private List wrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List wrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_STRING = "name_string"; - @javax.annotation.Nullable - private String nameString; + @javax.annotation.Nullable private String nameString; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; - @javax.annotation.Nullable - private BigDecimal nameNumber; + @javax.annotation.Nullable private BigDecimal nameNumber; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; - @javax.annotation.Nullable - private Integer nameInteger; + @javax.annotation.Nullable private Integer nameInteger; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; - @javax.annotation.Nullable - private Boolean nameBoolean; + @javax.annotation.Nullable private Boolean nameBoolean; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; - @javax.annotation.Nullable - private List nameArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array"; - @javax.annotation.Nullable - private List nameWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List nameWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; - @javax.annotation.Nullable - private String prefixString; + @javax.annotation.Nullable private String prefixString; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; - @javax.annotation.Nullable - private BigDecimal prefixNumber; + @javax.annotation.Nullable private BigDecimal prefixNumber; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; - @javax.annotation.Nullable - private Integer prefixInteger; + @javax.annotation.Nullable private Integer prefixInteger; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; - @javax.annotation.Nullable - private Boolean prefixBoolean; + @javax.annotation.Nullable private Boolean prefixBoolean; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; - @javax.annotation.Nullable - private List prefixArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array"; - @javax.annotation.Nullable - private List prefixWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; - @javax.annotation.Nullable - private String namespaceString; + @javax.annotation.Nullable private String namespaceString; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; - @javax.annotation.Nullable - private BigDecimal namespaceNumber; + @javax.annotation.Nullable private BigDecimal namespaceNumber; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; - @javax.annotation.Nullable - private Integer namespaceInteger; + @javax.annotation.Nullable private Integer namespaceInteger; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; - @javax.annotation.Nullable - private Boolean namespaceBoolean; + @javax.annotation.Nullable private Boolean namespaceBoolean; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; - @javax.annotation.Nullable - private List namespaceArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceArray = new ArrayList<>(); public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array"; - @javax.annotation.Nullable - private List namespaceWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List namespaceWrappedArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; - @javax.annotation.Nullable - private String prefixNsString; + @javax.annotation.Nullable private String prefixNsString; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; - @javax.annotation.Nullable - private BigDecimal prefixNsNumber; + @javax.annotation.Nullable private BigDecimal prefixNsNumber; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; - @javax.annotation.Nullable - private Integer prefixNsInteger; + @javax.annotation.Nullable private Integer prefixNsInteger; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; - @javax.annotation.Nullable - private Boolean prefixNsBoolean; + @javax.annotation.Nullable private Boolean prefixNsBoolean; public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array"; - @javax.annotation.Nullable - private List prefixNsArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsArray = new ArrayList<>(); public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array"; - @javax.annotation.Nullable - private List prefixNsWrappedArray = new ArrayList<>(); + @javax.annotation.Nullable private List prefixNsWrappedArray = new ArrayList<>(); public XmlItem() { } @@ -192,8 +164,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * Get attributeString * @return attributeString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -217,8 +188,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * Get attributeNumber * @return attributeNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -242,8 +212,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * Get attributeInteger * @return attributeInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -267,8 +236,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * Get attributeBoolean * @return attributeBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -300,8 +268,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * Get wrappedArray * @return wrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -325,8 +292,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * Get nameString * @return nameString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -350,8 +316,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * Get nameNumber * @return nameNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -375,8 +340,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * Get nameInteger * @return nameInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -400,8 +364,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * Get nameBoolean * @return nameBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -433,8 +396,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * Get nameArray * @return nameArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -466,8 +428,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * Get nameWrappedArray * @return nameWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -491,8 +452,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * Get prefixString * @return prefixString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -516,8 +476,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * Get prefixNumber * @return prefixNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -541,8 +500,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * Get prefixInteger * @return prefixInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -566,8 +524,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * Get prefixBoolean * @return prefixBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -599,8 +556,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * Get prefixArray * @return prefixArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -632,8 +588,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * Get prefixWrappedArray * @return prefixWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -657,8 +612,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * Get namespaceString * @return namespaceString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -682,8 +636,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * Get namespaceNumber * @return namespaceNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -707,8 +660,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * Get namespaceInteger * @return namespaceInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -732,8 +684,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * Get namespaceBoolean * @return namespaceBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -765,8 +716,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * Get namespaceArray * @return namespaceArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -798,8 +748,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * Get namespaceWrappedArray * @return namespaceWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -823,8 +772,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * Get prefixNsString * @return prefixNsString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -848,8 +796,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * Get prefixNsNumber * @return prefixNsNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -873,8 +820,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * Get prefixNsInteger * @return prefixNsInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -898,8 +844,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * Get prefixNsBoolean * @return prefixNsBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -931,8 +876,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * Get prefixNsArray * @return prefixNsArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -964,8 +908,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * Get prefixNsWrappedArray * @return prefixNsWrappedArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 936b8bafdbba..5c6aeb6c2161 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @javax.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 5a60fa128dda..4c10b80e49ee 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @javax.annotation.Nullable - private SingleRefType singleRefType; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * Get singleRefType * @return singleRefType */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java index 745689d7191a..dbea09ffc4fb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f58e3255492..c49cc5f2bc55 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f3d46916faa9..4b662a61dbcc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @javax.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java index 771578abd0ac..c9b8d66152d9 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @javax.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @javax.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java index 6cd94422b1cc..e34fd05e3c37 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java index f8705b67de58..3c7b879877a0 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java index 50b6ff1d6a27..46b862b17d1d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java index b436febdcc4a..c222ad581dce 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java index dbf6964fdad2..ad6952b6eb7f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java index 0be09220e7df..9614edc8acc4 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java index acdb137161a2..653f395fb852 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java index 8004beff9756..77e5abc774b0 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java index 42c505b11899..8578245ac910 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @javax.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java index 915ba1b91ce9..943480b6efe6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 0f3aaeb0af49..12979e0931b1 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap = new HashMap<>(); + @javax.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 6c10cc7d053f..a033667c4620 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files = new ArrayList<>(); + @javax.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java index 6c446b295f88..9aaf54744e6f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 395eecaf8b53..b432e1fe3599 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java index 2ecd18196210..241259a5ab68 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private AsyncFile binary; + @javax.annotation.Nullable private AsyncFile binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AsyncFile getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6dc15593463d..ae4b6ba19d1b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b772672c401f..d8e472a39557 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java index 03fcf6214210..cf65489efd5f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @javax.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @javax.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap = new HashMap<>(); + @javax.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @javax.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 27b5ebbd852b..402e91a9a0b7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map = new HashMap<>(); + @javax.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java index 0b83c6011405..dcd9d4a0b913 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0938a865de43..01a8f08a5e4e 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java index 73f5779de22f..5f6966cf7b29 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java index f8d50bc17620..ce8b0d976724 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java index 314794ba50b5..0496b4e8ac67 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java index 4789044c8530..45a18bdb0475 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java index bb516d7739da..40dfc8651ccc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @javax.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @javax.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java index 341017c96d26..b3d7cd4222fd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index c6a3cc14fade..25fd74c77db9 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars = new ArrayList<>(); + @javax.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java index 0136b2dcc833..834d17fb706a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java index c9b0b884ef29..b1979a9e65da 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 88cf19fe07a3..245d8fc67864 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b97f28bbcfd8..432bd35481bb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java index 8cfe9533fe17..dff2cdd7187a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @javax.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags = new ArrayList<>(); + @javax.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e0e1e8bb4bbd..7fd8fc08906c 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java index 8d7cee198797..2ce6677d2d2d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java index ebcb558efe5f..027b8542d358 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 89584fa7c936..ea68d8ffaf26 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java index 9d11826fc6b6..019c8bd1f88b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 720f54754f4e..61c853bf5906 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @jakarta.annotation.Nullable - private Map mapProperty = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapProperty = new HashMap<>(); public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @jakarta.annotation.Nullable - private Map> mapOfMapProperty = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapOfMapProperty = new HashMap<>(); public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index fbf8d61fa177..4131e083f8c2 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @jakarta.annotation.Nullable - private SingleRefType singleRefType; + @jakarta.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * Get singleRefType * @return singleRefType */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java index 86cc58eb17be..8254f51984da 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @jakarta.annotation.Nonnull - protected String className; + @jakarta.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @jakarta.annotation.Nullable - protected String color = "red"; + @jakarta.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * Get className * @return className */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * Get color * @return color */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 87cea9ecb8df..112685951372 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @jakarta.annotation.Nullable - private List> arrayArrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayNumber = new ArrayList<>(); public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index ddac35e167ae..350a7a8d6c35 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @jakarta.annotation.Nullable - private List arrayNumber = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayNumber = new ArrayList<>(); public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java index 69f13d66946d..547b3ba91e3f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @jakarta.annotation.Nullable - private List arrayOfString = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayOfString = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @jakarta.annotation.Nullable - private List> arrayArrayOfInteger = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfInteger = new ArrayList<>(); public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @jakarta.annotation.Nullable - private List> arrayArrayOfModel = new ArrayList<>(); + @jakarta.annotation.Nullable private List> arrayArrayOfModel = new ArrayList<>(); public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java index 4527c5efd07a..a6866e8046c8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @jakarta.annotation.Nullable - private String smallCamel; + @jakarta.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @jakarta.annotation.Nullable - private String capitalCamel; + @jakarta.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @jakarta.annotation.Nullable - private String smallSnake; + @jakarta.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @jakarta.annotation.Nullable - private String capitalSnake; + @jakarta.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @jakarta.annotation.Nullable - private String scAETHFlowPoints; + @jakarta.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @jakarta.annotation.Nullable - private String ATT_NAME; + @jakarta.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * Get smallCamel * @return smallCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * Get capitalCamel * @return capitalCamel */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * Get smallSnake * @return smallSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * Get capitalSnake * @return capitalSnake */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java index 73f8201c2c7f..cc7842a4e703 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @jakarta.annotation.Nullable - private Boolean declawed; + @jakarta.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java index c87cc6d9d033..ba77f405d3cc 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name = "default-name"; + @jakarta.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 55e6ce126788..15d1d6fa398e 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @jakarta.annotation.Nullable - private String otherProperty; + @jakarta.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * Get otherProperty * @return otherProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java index cc5edb0ddf1c..ee75fa53a654 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java index 7b7843af2080..59c80e3407c8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @jakarta.annotation.Nullable - private String client; + @jakarta.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * Get client * @return client */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java index da99cf340327..68a309d9f6e3 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java index 6a11ad89d6f9..be1d67ee5da9 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @jakarta.annotation.Nullable - private String breed; + @jakarta.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * Get breed * @return breed */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java index 3e2e08025830..7fda65e0a0b6 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @jakarta.annotation.Nullable - private JustSymbolEnum justSymbol; + @jakarta.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @jakarta.annotation.Nullable - private List arrayEnum = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayEnum = new ArrayList<>(); public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * Get justSymbol * @return justSymbol */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java index f9347fc97f5b..fa658f4a7201 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @jakarta.annotation.Nullable - private EnumStringEnum enumString; + @jakarta.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @jakarta.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @jakarta.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @jakarta.annotation.Nullable - private EnumIntegerEnum enumInteger; + @jakarta.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @jakarta.annotation.Nullable - private EnumNumberEnum enumNumber; + @jakarta.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @jakarta.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @jakarta.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @jakarta.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @jakarta.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @jakarta.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @jakarta.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * Get enumString * @return enumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * Get enumStringRequired * @return enumStringRequired */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * Get enumInteger * @return enumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * Get enumNumber * @return enumNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * Get outerEnumInteger * @return outerEnumInteger */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index e9edabdcfab3..c1bf2505e702 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @jakarta.annotation.Nullable - private BigDecimal someId; + @jakarta.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @jakarta.annotation.Nullable - private Map someMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map someMap = new HashMap<>(); public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * Get someId * @return someId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index d1b7648e7be4..5e473686a586 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @jakarta.annotation.Nullable - private ModelFile _file; + @jakarta.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @jakarta.annotation.Nullable - private List files = new ArrayList<>(); + @jakarta.annotation.Nullable private List files = new ArrayList<>(); public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java index e673cf968242..ac45378a32ce 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar = "bar"; + @jakarta.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 6c72b31783b5..0defc9cfc304 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private Foo string; + @jakarta.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java index 818b19b86bde..ac64ecde5f24 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @jakarta.annotation.Nullable - private Integer integer; + @jakarta.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @jakarta.annotation.Nullable - private Integer int32; + @jakarta.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @jakarta.annotation.Nullable - private Long int64; + @jakarta.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @jakarta.annotation.Nonnull - private BigDecimal number; + @jakarta.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @jakarta.annotation.Nullable - private Float _float; + @jakarta.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @jakarta.annotation.Nullable - private Double _double; + @jakarta.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @jakarta.annotation.Nullable - private BigDecimal decimal; + @jakarta.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @jakarta.annotation.Nullable - private String string; + @jakarta.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @jakarta.annotation.Nonnull - private byte[] _byte; + @jakarta.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @jakarta.annotation.Nullable - private File binary; + @jakarta.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @jakarta.annotation.Nonnull - private LocalDate date; + @jakarta.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nonnull - private String password; + @jakarta.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @jakarta.annotation.Nullable - private String patternWithDigits; + @jakarta.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @jakarta.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @jakarta.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * Get string * @return string */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * Get binary * @return binary */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * Get password * @return password */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 7fcd7679b146..9175e66b6a43 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @jakarta.annotation.Nullable - private String foo; + @jakarta.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java index e30ee78c1c43..b060e6d76085 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @jakarta.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@jakarta.annotation.Nullable String nul * Get nullableMessage * @return nullableMessage */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java index f279dad1037d..212a192152b5 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @jakarta.annotation.Nullable - private Map> mapMapOfString = new HashMap<>(); + @jakarta.annotation.Nullable private Map> mapMapOfString = new HashMap<>(); /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @jakarta.annotation.Nullable - private Map mapOfEnumString = new HashMap<>(); + @jakarta.annotation.Nullable private Map mapOfEnumString = new HashMap<>(); public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @jakarta.annotation.Nullable - private Map directMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map directMap = new HashMap<>(); public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @jakarta.annotation.Nullable - private Map indirectMap = new HashMap<>(); + @jakarta.annotation.Nullable private Map indirectMap = new HashMap<>(); public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0eb4099d56ea..fc0e66c11a0c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private UUID uuid; + @jakarta.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @jakarta.annotation.Nullable - private OffsetDateTime dateTime; + @jakarta.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @jakarta.annotation.Nullable - private Map map = new HashMap<>(); + @jakarta.annotation.Nullable private Map map = new HashMap<>(); public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * Get dateTime * @return dateTime */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java index 7d0bfb917073..afc1c6eb4b78 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private Integer name; + @jakarta.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @jakarta.annotation.Nullable - private String propertyClass; + @jakarta.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * Get propertyClass * @return propertyClass */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index dac5d47ec9ca..6a44a37dc5b8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @jakarta.annotation.Nullable - private Integer code; + @jakarta.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - private String type; + @jakarta.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @jakarta.annotation.Nullable - private String message; + @jakarta.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * Get code * @return code */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * Get message * @return message */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java index 3c99c5d565e0..a64bc8479ab8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @jakarta.annotation.Nullable - private String sourceURI; + @jakarta.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java index 54a220f2c63e..bc5646ddc0fb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @jakarta.annotation.Nullable - private String _123list; + @jakarta.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java index 3620721ba403..26c89830560f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @jakarta.annotation.Nullable - private Integer _return; + @jakarta.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java index d80704b7a715..a0c04a44dc52 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private Integer name; + @jakarta.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @jakarta.annotation.Nullable - private Integer snakeCase; + @jakarta.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @jakarta.annotation.Nullable - private String property; + @jakarta.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @jakarta.annotation.Nullable - private Integer _123number; + @jakarta.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * Get property * @return property */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * Get _123number * @return _123number */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java index 04989802ba7d..434bdad9a640 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @jakarta.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @jakarta.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @jakarta.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @jakarta.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @jakarta.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @jakarta.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @jakarta.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @jakarta.annotation.Nullable - private List arrayItemsNullable = new ArrayList<>(); + @jakarta.annotation.Nullable private List arrayItemsNullable = new ArrayList<>(); public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @jakarta.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @jakarta.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @jakarta.annotation.Nullable - private Map objectItemsNullable = new HashMap<>(); + @jakarta.annotation.Nullable private Map objectItemsNullable = new HashMap<>(); public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@jakarta.annotation.Nullable Integer integerPro * Get integerProp * @return integerProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@jakarta.annotation.Nullable BigDecimal numberPr * Get numberProp * @return numberProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@jakarta.annotation.Nullable Boolean booleanPro * Get booleanProp * @return booleanProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@jakarta.annotation.Nullable String stringProp) * Get stringProp * @return stringProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@jakarta.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@jakarta.annotation.Nullable OffsetDateTime da * Get datetimeProp * @return datetimeProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java index 3c21f20754c2..a05c6fa775bb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @jakarta.annotation.Nullable - private BigDecimal justNumber; + @jakarta.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * Get justNumber * @return justNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 2f0d9d3b946d..be6f75a6cd2e 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @jakarta.annotation.Nullable - private String uuid; + @jakarta.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private BigDecimal id; + @jakarta.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @jakarta.annotation.Nullable - private DeprecatedObject deprecatedRef; + @jakarta.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @jakarta.annotation.Nullable - private List bars = new ArrayList<>(); + @jakarta.annotation.Nullable private List bars = new ArrayList<>(); public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * Get uuid * @return uuid */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java index 8f4db12e8222..247b3cb6a1eb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @jakarta.annotation.Nullable - private Long petId; + @jakarta.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @jakarta.annotation.Nullable - private Integer quantity; + @jakarta.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @jakarta.annotation.Nullable - private OffsetDateTime shipDate; + @jakarta.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @jakarta.annotation.Nullable - private Boolean complete = false; + @jakarta.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * Get petId * @return petId */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java index b2b88b32009b..1e7fefed42a7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @jakarta.annotation.Nullable - private BigDecimal myNumber; + @jakarta.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @jakarta.annotation.Nullable - private String myString; + @jakarta.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @jakarta.annotation.Nullable - private Boolean myBoolean; + @jakarta.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * Get myNumber * @return myNumber */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * Get myString * @return myString */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * Get myBoolean * @return myBoolean */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 0b5fecce1ceb..d8061bcac68e 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @jakarta.annotation.Nonnull - private OuterEnumInteger value; + @jakarta.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * Get value * @return value */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 78772c7e27cc..54b1cb2a775d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @jakarta.annotation.Nullable - protected TypeEnum type; + @jakarta.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @jakarta.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @jakarta.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@jakarta.annotation.Nullable String n * Get nullableProperty * @return nullableProperty */ - @jakarta.annotation.Nullable - @JsonIgnore + @jakarta.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 893ffedd5f5c..eac9f8a65705 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @jakarta.annotation.Nullable - private Category category; + @jakarta.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nonnull - private String name; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @jakarta.annotation.Nonnull - private Set photoUrls = new LinkedHashSet<>(); + @jakarta.annotation.Nonnull private Set photoUrls = new LinkedHashSet<>(); public static final String JSON_PROPERTY_TAGS = "tags"; - @jakarta.annotation.Nullable - private List tags = new ArrayList<>(); + @jakarta.annotation.Nullable private List tags = new ArrayList<>(); /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @jakarta.annotation.Nullable - private StatusEnum status; + @jakarta.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * Get category * @return category */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * Get name * @return name */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f6d848fa88c6..d4289893c62b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @jakarta.annotation.Nullable - private String bar; + @jakarta.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @jakarta.annotation.Nullable - private String baz; + @jakarta.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * Get baz * @return baz */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java index fb9e96a8da6b..55f9de30302c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @jakarta.annotation.Nullable - private Long $specialPropertyName; + @jakarta.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java index f5c4ae0e4467..7db8054ece5f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @jakarta.annotation.Nullable - private String name; + @jakarta.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * Get name * @return name */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 58e2d9d3f8ec..b96e8d68dbeb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @jakarta.annotation.Nullable - private String someProperty; + @jakarta.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * Get someProperty * @return someProperty */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java index b0af4339edd8..b7dce057faca 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @jakarta.annotation.Nullable - private Long id; + @jakarta.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @jakarta.annotation.Nullable - private String username; + @jakarta.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @jakarta.annotation.Nullable - private String firstName; + @jakarta.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @jakarta.annotation.Nullable - private String lastName; + @jakarta.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @jakarta.annotation.Nullable - private String email; + @jakarta.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @jakarta.annotation.Nullable - private String password; + @jakarta.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @jakarta.annotation.Nullable - private String phone; + @jakarta.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @jakarta.annotation.Nullable - private Integer userStatus; + @jakarta.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * Get id * @return id */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@jakarta.annotation.Nullable String username) { * Get username * @return username */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@jakarta.annotation.Nullable String email) { * Get email * @return email */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@jakarta.annotation.Nullable String password) { * Get password * @return password */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * Get phone * @return phone */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index 25d798d8e1d1..c6576948ddad 100644 --- a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -39,26 +39,22 @@ ByteArrayObject.JSON_PROPERTY_INT_FIELD }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ByteArrayObject { public static final String JSON_PROPERTY_NULLABLE_ARRAY = "nullableArray"; - @javax.annotation.Nullable - private JsonNullable nullableArray = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableArray = JsonNullable.undefined(); public static final String JSON_PROPERTY_NORMAL_ARRAY = "normalArray"; - @javax.annotation.Nullable - private byte[] normalArray; + @javax.annotation.Nullable private byte[] normalArray; public static final String JSON_PROPERTY_NULLABLE_STRING = "nullableString"; - @javax.annotation.Nullable - private JsonNullable nullableString = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableString = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_FIELD = "stringField"; - @javax.annotation.Nullable - private String stringField; + @javax.annotation.Nullable private String stringField; public static final String JSON_PROPERTY_INT_FIELD = "intField"; - @javax.annotation.Nullable - private BigDecimal intField; + @javax.annotation.Nullable private BigDecimal intField; public ByteArrayObject() { } @@ -73,8 +69,7 @@ public ByteArrayObject nullableArray(@javax.annotation.Nullable byte[] nullableA * byte array. * @return nullableArray */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public byte[] getNullableArray() { return nullableArray.orElse(null); @@ -82,7 +77,6 @@ public byte[] getNullableArray() { @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableArray_JsonNullable() { return nullableArray; } @@ -106,8 +100,7 @@ public ByteArrayObject normalArray(@javax.annotation.Nullable byte[] normalArray * byte array. * @return normalArray */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getNormalArray() { @@ -131,8 +124,7 @@ public ByteArrayObject nullableString(@javax.annotation.Nullable String nullable * Get nullableString * @return nullableString */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableString() { return nullableString.orElse(null); @@ -140,7 +132,6 @@ public String getNullableString() { @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableString_JsonNullable() { return nullableString; } @@ -164,8 +155,7 @@ public ByteArrayObject stringField(@javax.annotation.Nullable String stringField * Get stringField * @return stringField */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStringField() { @@ -189,8 +179,7 @@ public ByteArrayObject intField(@javax.annotation.Nullable BigDecimal intField) * Get intField * @return intField */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT_FIELD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getIntField() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index d3f9c8a82577..255ad28fe4a2 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -34,14 +34,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } @@ -64,8 +63,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,8 +96,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> arrayArrayNumber; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 6d3ea3645bfc..8c8eb5eeb822 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -35,10 +35,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } @@ -61,8 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index 07a36c9fcc7b..7180969deac3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -37,18 +37,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } @@ -71,8 +69,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -105,8 +102,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -139,8 +135,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index 722e1eab2db0..bf1a678451da 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -36,30 +36,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -74,8 +69,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -100,8 +94,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -126,8 +119,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,8 +144,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -178,8 +169,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -204,8 +194,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index 827d2556beef..651095ac15fa 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -35,6 +35,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -43,8 +44,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -60,8 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index 07e5d75a4e56..d99af4abc3c7 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -32,14 +32,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -54,8 +53,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +78,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index d1da73a19c21..4a3be0720110 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -36,6 +36,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -44,8 +45,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -61,8 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 012dd2c278e9..57be0a47ffce 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,10 +32,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -50,8 +50,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index c2b9f484cd7c..685f5ff57b49 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -31,10 +31,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -49,8 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index d8dcc870c7f3..9ae32fab40cc 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -33,10 +33,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -51,8 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index 9165437575b7..c1448d83175f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -35,6 +35,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -43,8 +44,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -60,8 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index c9dd3f0c9681..37878980b78b 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -35,6 +35,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -70,10 +71,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -109,10 +108,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { } @@ -127,8 +124,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +157,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 351aa9ec9f5e..11cdf0631876 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -47,6 +47,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -84,10 +85,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -125,10 +124,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -164,10 +161,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -203,26 +198,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -237,8 +226,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -263,8 +251,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -289,8 +276,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -315,8 +301,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -341,8 +326,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public OuterEnum getOuterEnum() { @@ -351,7 +335,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -375,8 +358,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -401,8 +383,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -427,8 +408,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 8f0f6ff2a30d..ceecd7dc5b78 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -36,14 +36,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } @@ -58,8 +57,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +90,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 30064d176373..375bda4e0c8a 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -36,14 +36,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { } @@ -58,8 +57,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -92,8 +90,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index 51a7f657505a..1e41fdf940c4 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -31,10 +31,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -49,8 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index a022654bb582..3403b28e568e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -33,10 +33,10 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -51,8 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index fa42deddf156..644f4b6b9125 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -52,70 +52,55 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -132,8 +117,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,8 +144,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -186,8 +169,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +196,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -242,8 +223,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -270,8 +250,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -296,8 +275,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -322,8 +300,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -348,8 +325,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -374,8 +350,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -400,8 +375,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -426,8 +400,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -452,8 +425,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -478,8 +450,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -504,8 +475,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -530,8 +500,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index d2a07a0a8656..0e7f317c1bc0 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -33,14 +33,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -61,8 +60,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -76,8 +74,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 9a7bdf26b831..b6bfe8b23754 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -36,10 +36,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -54,8 +54,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getNullableMessage() { @@ -64,7 +63,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index c9895b73e1af..f11e9965139f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -36,10 +36,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString; + @javax.annotation.Nullable private Map> mapMapOfString; /** * Gets or Sets inner @@ -75,18 +75,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { } @@ -109,8 +105,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -143,8 +138,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,8 +171,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -211,8 +204,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 4d8a4c615811..127b54aa1698 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -38,18 +38,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -64,8 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -90,8 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -124,8 +120,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index 2245a4229be8..ffc65b1dd0a0 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -34,14 +34,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -56,8 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -82,8 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 575404902e5e..003a1bbde1e1 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -34,18 +34,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -60,8 +58,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,8 +83,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +108,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index f1d78d68b67a..634d2c8222a6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -33,10 +33,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -51,8 +51,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index 61d5ba8249a3..967dcba4dda6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -32,10 +32,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -50,8 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index bd1d313643d2..1beb5db06309 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -33,10 +33,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -51,8 +51,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index 030b8bb59fb8..215bd3dd7fa1 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -35,22 +35,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -77,8 +74,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -97,8 +93,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -118,8 +113,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +132,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index 0f2bdaf1cf42..4480b0a1962a 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -54,54 +54,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -117,8 +106,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Integer getIntegerProp() { @@ -127,7 +115,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -151,8 +138,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public BigDecimal getNumberProp() { @@ -161,7 +147,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -185,8 +170,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Boolean getBooleanProp() { @@ -195,7 +179,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -219,8 +202,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getStringProp() { @@ -229,7 +211,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -253,8 +234,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public LocalDate getDateProp() { @@ -263,7 +243,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -287,8 +266,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public OffsetDateTime getDatetimeProp() { @@ -297,7 +275,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -333,8 +310,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public List getArrayNullableProp() { @@ -343,7 +319,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -379,8 +354,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public List getArrayAndItemsNullableProp() { @@ -389,7 +363,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -421,8 +394,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -459,8 +431,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Map getObjectNullableProp() { @@ -469,7 +440,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -505,8 +475,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public Map getObjectAndItemsNullableProp() { @@ -515,7 +484,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -547,8 +515,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index 274b98cfe41a..7f701ffd8d51 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -32,10 +32,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -50,8 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index e9488f205464..bc00a8d35dee 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -39,22 +39,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } @@ -69,8 +66,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -97,8 +93,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,8 +120,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -161,8 +155,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index accc94613962..114f983b628f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -37,22 +37,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -90,14 +87,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -112,8 +106,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -138,8 +131,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -164,8 +156,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -190,8 +181,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -216,8 +206,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -242,8 +231,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index 68b3c557a01e..1dbd4b093c4f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -34,18 +34,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -60,8 +58,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -86,8 +83,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -112,8 +108,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index c1ed9389a564..d59200957afe 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -32,10 +32,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -50,8 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 414daf5832e8..0f8114a206e3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -39,6 +39,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -81,14 +82,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -103,8 +101,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -129,8 +126,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonIgnore public String getNullableProperty() { @@ -139,7 +135,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index a3045ad1ee99..1e4444012f75 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -44,26 +44,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags; + @javax.annotation.Nullable private List tags; /** * pet status in the store @@ -101,10 +97,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -119,8 +113,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -145,8 +138,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -171,8 +163,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -205,8 +196,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -240,8 +230,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +255,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 17fa54948d89..8e9e507f6860 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -32,14 +32,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -58,8 +57,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -79,8 +77,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index bb01969ec771..88f82f342192 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -50,8 +50,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index f30b547f2119..1b40d354dd58 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -32,14 +32,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -54,8 +53,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -80,8 +78,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 154fb1804bd6..2bba1ed1fa8e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -34,10 +34,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -53,8 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java index 15d035b47fbc..505ae3484a07 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -38,38 +38,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -84,8 +77,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -110,8 +102,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -136,8 +127,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,8 +152,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -188,8 +177,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -214,8 +202,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -240,8 +227,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -266,8 +252,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") + @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b61edd30f502..b2c61e98d5a0 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -33,14 +33,13 @@ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AdditionalPropertiesClass { public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property"; - @javax.annotation.Nullable - private Map mapProperty; + @javax.annotation.Nullable private Map mapProperty; public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property"; - @javax.annotation.Nullable - private Map> mapOfMapProperty; + @javax.annotation.Nullable private Map> mapOfMapProperty; public AdditionalPropertiesClass() { } @@ -63,8 +62,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapProperty * @return mapProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -96,8 +94,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 5a60fa128dda..4c10b80e49ee 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -32,14 +32,13 @@ AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class AllOfWithSingleRef { public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType"; - @javax.annotation.Nullable - private SingleRefType singleRefType; + @javax.annotation.Nullable private SingleRefType singleRefType; public AllOfWithSingleRef() { } @@ -54,8 +53,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -79,8 +77,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * Get singleRefType * @return singleRefType */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java index 745689d7191a..dbea09ffc4fb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java @@ -34,6 +34,7 @@ Animal.JSON_PROPERTY_COLOR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -46,12 +47,10 @@ public class Animal { public static final String JSON_PROPERTY_CLASS_NAME = "className"; - @javax.annotation.Nonnull - protected String className; + @javax.annotation.Nonnull protected String className; public static final String JSON_PROPERTY_COLOR = "color"; - @javax.annotation.Nullable - protected String color = "red"; + @javax.annotation.Nullable protected String color = "red"; public Animal() { } @@ -66,8 +65,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * Get className * @return className */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLASS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -91,8 +89,7 @@ public Animal color(@javax.annotation.Nullable String color) { * Get color * @return color */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ae711e2787da..6ac8678c996a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; - @javax.annotation.Nullable - private List> arrayArrayNumber; + @javax.annotation.Nullable private List> arrayArrayNumber; public ArrayOfArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * Get arrayArrayNumber * @return arrayArrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index a0ba0e0c16ec..3672ddf00c1b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,10 +34,10 @@ ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayOfNumberOnly { public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; - @javax.annotation.Nullable - private List arrayNumber; + @javax.annotation.Nullable private List arrayNumber; public ArrayOfNumberOnly() { } @@ -60,8 +60,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * Get arrayNumber * @return arrayNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java index e263e2ee4c26..7fc9aad38c7a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -36,18 +36,16 @@ ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ArrayTest { public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string"; - @javax.annotation.Nullable - private List arrayOfString; + @javax.annotation.Nullable private List arrayOfString; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; - @javax.annotation.Nullable - private List> arrayArrayOfInteger; + @javax.annotation.Nullable private List> arrayArrayOfInteger; public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; - @javax.annotation.Nullable - private List> arrayArrayOfModel; + @javax.annotation.Nullable private List> arrayArrayOfModel; public ArrayTest() { } @@ -70,8 +68,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayOfString * @return arrayOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -103,8 +100,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfInteger * @return arrayArrayOfInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -136,8 +132,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * Get arrayArrayOfModel * @return arrayArrayOfModel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java index 6cd94422b1cc..e34fd05e3c37 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -35,30 +35,25 @@ Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Capitalization { public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; - @javax.annotation.Nullable - private String smallCamel; + @javax.annotation.Nullable private String smallCamel; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; - @javax.annotation.Nullable - private String capitalCamel; + @javax.annotation.Nullable private String capitalCamel; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; - @javax.annotation.Nullable - private String smallSnake; + @javax.annotation.Nullable private String smallSnake; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; - @javax.annotation.Nullable - private String capitalSnake; + @javax.annotation.Nullable private String capitalSnake; public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; - @javax.annotation.Nullable - private String scAETHFlowPoints; + @javax.annotation.Nullable private String scAETHFlowPoints; public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME"; - @javax.annotation.Nullable - private String ATT_NAME; + @javax.annotation.Nullable private String ATT_NAME; public Capitalization() { } @@ -73,8 +68,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * Get smallCamel * @return smallCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -98,8 +92,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * Get capitalCamel * @return capitalCamel */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -123,8 +116,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * Get smallSnake * @return smallSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -148,8 +140,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * Get capitalSnake * @return capitalSnake */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -173,8 +164,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * Get scAETHFlowPoints * @return scAETHFlowPoints */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -198,8 +188,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * Name of the pet * @return ATT_NAME */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java index f8705b67de58..3c7b879877a0 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java @@ -34,6 +34,7 @@ Cat.JSON_PROPERTY_DECLAWED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Cat extends Animal { public static final String JSON_PROPERTY_DECLAWED = "declawed"; - @javax.annotation.Nullable - private Boolean declawed; + @javax.annotation.Nullable private Boolean declawed; public Cat() { @@ -59,8 +59,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * Get declawed * @return declawed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLAWED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java index 50b6ff1d6a27..46b862b17d1d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java @@ -31,14 +31,13 @@ Category.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Category { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name = "default-name"; + @javax.annotation.Nonnull private String name = "default-name"; public Category() { } @@ -53,8 +52,7 @@ public Category id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Category name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index b436febdcc4a..c222ad581dce 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -35,6 +35,7 @@ ChildWithNullable.JSON_PROPERTY_OTHER_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -43,8 +44,7 @@ public class ChildWithNullable extends ParentWithNullable { public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty"; - @javax.annotation.Nullable - private String otherProperty; + @javax.annotation.Nullable private String otherProperty; public ChildWithNullable() { @@ -60,8 +60,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * Get otherProperty * @return otherProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java index dbf6964fdad2..ad6952b6eb7f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,10 +30,10 @@ ClassModel.JSON_PROPERTY_PROPERTY_CLASS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ClassModel { public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public ClassModel() { } @@ -48,8 +48,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java index 0be09220e7df..9614edc8acc4 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java @@ -30,10 +30,10 @@ Client.JSON_PROPERTY_CLIENT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Client { public static final String JSON_PROPERTY_CLIENT = "client"; - @javax.annotation.Nullable - private String client; + @javax.annotation.Nullable private String client; public Client() { } @@ -48,8 +48,7 @@ public Client client(@javax.annotation.Nullable String client) { * Get client * @return client */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index acdb137161a2..653f395fb852 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -32,10 +32,10 @@ DeprecatedObject.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class DeprecatedObject { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public DeprecatedObject() { } @@ -50,8 +50,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java index 8004beff9756..77e5abc774b0 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java @@ -34,6 +34,7 @@ Dog.JSON_PROPERTY_BREED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -42,8 +43,7 @@ public class Dog extends Animal { public static final String JSON_PROPERTY_BREED = "breed"; - @javax.annotation.Nullable - private String breed; + @javax.annotation.Nullable private String breed; public Dog() { @@ -59,8 +59,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * Get breed * @return breed */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BREED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java index e6a5ddc351a3..8c127606e5e4 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -34,6 +34,7 @@ EnumArrays.JSON_PROPERTY_ARRAY_ENUM }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumArrays { /** * Gets or Sets justSymbol @@ -69,10 +70,8 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; - @javax.annotation.Nullable - private JustSymbolEnum justSymbol; + @javax.annotation.Nullable private JustSymbolEnum justSymbol; /** * Gets or Sets arrayEnum @@ -108,10 +107,8 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; - @javax.annotation.Nullable - private List arrayEnum; + @javax.annotation.Nullable private List arrayEnum; public EnumArrays() { } @@ -126,8 +123,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * Get justSymbol * @return justSymbol */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -159,8 +155,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * Get arrayEnum * @return arrayEnum */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java index 915ba1b91ce9..943480b6efe6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -46,6 +46,7 @@ }) @JsonTypeName("Enum_Test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class EnumTest { /** * Gets or Sets enumString @@ -83,10 +84,8 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; - @javax.annotation.Nullable - private EnumStringEnum enumString; + @javax.annotation.Nullable private EnumStringEnum enumString; /** * Gets or Sets enumStringRequired @@ -124,10 +123,8 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; - @javax.annotation.Nonnull - private EnumStringRequiredEnum enumStringRequired; + @javax.annotation.Nonnull private EnumStringRequiredEnum enumStringRequired; /** * Gets or Sets enumInteger @@ -163,10 +160,8 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; - @javax.annotation.Nullable - private EnumIntegerEnum enumInteger; + @javax.annotation.Nullable private EnumIntegerEnum enumInteger; /** * Gets or Sets enumNumber @@ -202,26 +197,20 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; - @javax.annotation.Nullable - private EnumNumberEnum enumNumber; + @javax.annotation.Nullable private EnumNumberEnum enumNumber; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; - @javax.annotation.Nullable - private JsonNullable outerEnum = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable outerEnum = JsonNullable.undefined(); public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger"; - @javax.annotation.Nullable - private OuterEnumInteger outerEnumInteger; + @javax.annotation.Nullable private OuterEnumInteger outerEnumInteger; public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue"; - @javax.annotation.Nullable - private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; + @javax.annotation.Nullable private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED; public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue"; - @javax.annotation.Nullable - private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; + @javax.annotation.Nullable private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0; public EnumTest() { } @@ -236,8 +225,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * Get enumString * @return enumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -261,8 +249,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * Get enumStringRequired * @return enumStringRequired */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -286,8 +273,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * Get enumInteger * @return enumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -311,8 +297,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * Get enumNumber * @return enumNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -336,8 +321,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * Get outerEnum * @return outerEnum */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OuterEnum getOuterEnum() { return outerEnum.orElse(null); @@ -345,7 +329,6 @@ public OuterEnum getOuterEnum() { @JsonProperty(JSON_PROPERTY_OUTER_ENUM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } @@ -369,8 +352,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * Get outerEnumInteger * @return outerEnumInteger */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -394,8 +376,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * Get outerEnumDefaultValue * @return outerEnumDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -419,8 +400,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index eb9c0d5618c7..ba980f05f303 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -35,14 +35,13 @@ }) @JsonTypeName("fakeBigDecimalMap_200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FakeBigDecimalMap200Response { public static final String JSON_PROPERTY_SOME_ID = "someId"; - @javax.annotation.Nullable - private BigDecimal someId; + @javax.annotation.Nullable private BigDecimal someId; public static final String JSON_PROPERTY_SOME_MAP = "someMap"; - @javax.annotation.Nullable - private Map someMap; + @javax.annotation.Nullable private Map someMap; public FakeBigDecimalMap200Response() { } @@ -57,8 +56,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * Get someId * @return someId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -90,8 +88,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * Get someMap * @return someMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index b413890feef5..9e8a92abde9a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -35,14 +35,13 @@ FileSchemaTestClass.JSON_PROPERTY_FILES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FileSchemaTestClass { public static final String JSON_PROPERTY_FILE = "file"; - @javax.annotation.Nullable - private ModelFile _file; + @javax.annotation.Nullable private ModelFile _file; public static final String JSON_PROPERTY_FILES = "files"; - @javax.annotation.Nullable - private List files; + @javax.annotation.Nullable private List files; public FileSchemaTestClass() { } @@ -57,8 +56,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * Get _file * @return _file */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -90,8 +88,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * Get files * @return files */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java index 6c446b295f88..9aaf54744e6f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java @@ -30,10 +30,10 @@ Foo.JSON_PROPERTY_BAR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Foo { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar = "bar"; + @javax.annotation.Nullable private String bar = "bar"; public Foo() { } @@ -48,8 +48,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 395eecaf8b53..b432e1fe3599 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -32,10 +32,10 @@ }) @JsonTypeName("_foo_get_default_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FooGetDefaultResponse { public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private Foo string; + @javax.annotation.Nullable private Foo string; public FooGetDefaultResponse() { } @@ -50,8 +50,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java index bb7fb37b6325..2c54f92df881 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -51,70 +51,55 @@ }) @JsonTypeName("format_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class FormatTest { public static final String JSON_PROPERTY_INTEGER = "integer"; - @javax.annotation.Nullable - private Integer integer; + @javax.annotation.Nullable private Integer integer; public static final String JSON_PROPERTY_INT32 = "int32"; - @javax.annotation.Nullable - private Integer int32; + @javax.annotation.Nullable private Integer int32; public static final String JSON_PROPERTY_INT64 = "int64"; - @javax.annotation.Nullable - private Long int64; + @javax.annotation.Nullable private Long int64; public static final String JSON_PROPERTY_NUMBER = "number"; - @javax.annotation.Nonnull - private BigDecimal number; + @javax.annotation.Nonnull private BigDecimal number; public static final String JSON_PROPERTY_FLOAT = "float"; - @javax.annotation.Nullable - private Float _float; + @javax.annotation.Nullable private Float _float; public static final String JSON_PROPERTY_DOUBLE = "double"; - @javax.annotation.Nullable - private Double _double; + @javax.annotation.Nullable private Double _double; public static final String JSON_PROPERTY_DECIMAL = "decimal"; - @javax.annotation.Nullable - private BigDecimal decimal; + @javax.annotation.Nullable private BigDecimal decimal; public static final String JSON_PROPERTY_STRING = "string"; - @javax.annotation.Nullable - private String string; + @javax.annotation.Nullable private String string; public static final String JSON_PROPERTY_BYTE = "byte"; - @javax.annotation.Nonnull - private byte[] _byte; + @javax.annotation.Nonnull private byte[] _byte; public static final String JSON_PROPERTY_BINARY = "binary"; - @javax.annotation.Nullable - private File binary; + @javax.annotation.Nullable private File binary; public static final String JSON_PROPERTY_DATE = "date"; - @javax.annotation.Nonnull - private LocalDate date; + @javax.annotation.Nonnull private LocalDate date; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nonnull - private String password; + @javax.annotation.Nonnull private String password; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits"; - @javax.annotation.Nullable - private String patternWithDigits; + @javax.annotation.Nullable private String patternWithDigits; public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter"; - @javax.annotation.Nullable - private String patternWithDigitsAndDelimiter; + @javax.annotation.Nullable private String patternWithDigitsAndDelimiter; public FormatTest() { } @@ -131,8 +116,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * maximum: 100 * @return integer */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -158,8 +142,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * maximum: 200 * @return int32 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT32) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -183,8 +166,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * Get int64 * @return int64 */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INT64) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -210,8 +192,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * maximum: 543.2 * @return number */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -237,8 +218,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * maximum: 987.6 * @return _float */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FLOAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -264,8 +244,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * maximum: 123.4 * @return _double */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOUBLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -289,8 +268,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * Get decimal * @return decimal */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECIMAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,8 +292,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * Get string * @return string */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -339,8 +316,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * Get _byte * @return _byte */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BYTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -364,8 +340,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * Get binary * @return binary */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BINARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -389,8 +364,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * Get date * @return date */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -414,8 +388,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -439,8 +412,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -464,8 +436,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * Get password * @return password */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -489,8 +460,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,8 +484,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6dc15593463d..ae4b6ba19d1b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -32,14 +32,13 @@ }) @JsonTypeName("hasOnlyReadOnly") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HasOnlyReadOnly { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_FOO = "foo"; - @javax.annotation.Nullable - private String foo; + @javax.annotation.Nullable private String foo; public HasOnlyReadOnly() { } @@ -60,8 +59,7 @@ public HasOnlyReadOnly( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,8 +72,7 @@ public String getBar() { * Get foo * @return foo */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FOO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b772672c401f..d8e472a39557 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -34,10 +34,10 @@ HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class HealthCheckResult { public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage"; - @javax.annotation.Nullable - private JsonNullable nullableMessage = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable nullableMessage = JsonNullable.undefined(); public HealthCheckResult() { } @@ -52,8 +52,7 @@ public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nulla * Get nullableMessage * @return nullableMessage */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableMessage() { return nullableMessage.orElse(null); @@ -61,7 +60,6 @@ public String getNullableMessage() { @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java index 3dfecb96db59..07bf2b1d9608 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -35,10 +35,10 @@ MapTest.JSON_PROPERTY_INDIRECT_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MapTest { public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string"; - @javax.annotation.Nullable - private Map> mapMapOfString; + @javax.annotation.Nullable private Map> mapMapOfString; /** * Gets or Sets inner @@ -74,18 +74,14 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string"; - @javax.annotation.Nullable - private Map mapOfEnumString; + @javax.annotation.Nullable private Map mapOfEnumString; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; - @javax.annotation.Nullable - private Map directMap; + @javax.annotation.Nullable private Map directMap; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; - @javax.annotation.Nullable - private Map indirectMap; + @javax.annotation.Nullable private Map indirectMap; public MapTest() { } @@ -108,8 +104,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapMapOfString * @return mapMapOfString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -141,8 +136,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get mapOfEnumString * @return mapOfEnumString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -174,8 +168,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get directMap * @return directMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -207,8 +200,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * Get indirectMap * @return indirectMap */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 55a43c42b316..b85017580efc 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,18 +37,16 @@ MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class MixedPropertiesAndAdditionalPropertiesClass { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private UUID uuid; + @javax.annotation.Nullable private UUID uuid; public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; - @javax.annotation.Nullable - private OffsetDateTime dateTime; + @javax.annotation.Nullable private OffsetDateTime dateTime; public static final String JSON_PROPERTY_MAP = "map"; - @javax.annotation.Nullable - private Map map; + @javax.annotation.Nullable private Map map; public MixedPropertiesAndAdditionalPropertiesClass() { } @@ -63,8 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -88,8 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * Get dateTime * @return dateTime */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -121,8 +117,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * Get map * @return map */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java index 0b83c6011405..dcd9d4a0b913 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,14 +32,13 @@ }) @JsonTypeName("200_response") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Model200Response { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private Integer name; + @javax.annotation.Nullable private Integer name; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - @javax.annotation.Nullable - private String propertyClass; + @javax.annotation.Nullable private String propertyClass; public Model200Response() { } @@ -54,8 +53,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -79,8 +77,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * Get propertyClass * @return propertyClass */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0938a865de43..01a8f08a5e4e 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -33,18 +33,16 @@ }) @JsonTypeName("ApiResponse") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelApiResponse { public static final String JSON_PROPERTY_CODE = "code"; - @javax.annotation.Nullable - private Integer code; + @javax.annotation.Nullable private Integer code; public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - private String type; + @javax.annotation.Nullable private String type; public static final String JSON_PROPERTY_MESSAGE = "message"; - @javax.annotation.Nullable - private String message; + @javax.annotation.Nullable private String message; public ModelApiResponse() { } @@ -59,8 +57,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * Get code * @return code */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -84,8 +81,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -109,8 +105,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * Get message * @return message */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java index 73f5779de22f..5f6966cf7b29 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -31,10 +31,10 @@ }) @JsonTypeName("File") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelFile { public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI"; - @javax.annotation.Nullable - private String sourceURI; + @javax.annotation.Nullable private String sourceURI; public ModelFile() { } @@ -49,8 +49,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * Test capitalization * @return sourceURI */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java index f8d50bc17620..ce8b0d976724 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -31,10 +31,10 @@ }) @JsonTypeName("List") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelList { public static final String JSON_PROPERTY_123LIST = "123-list"; - @javax.annotation.Nullable - private String _123list; + @javax.annotation.Nullable private String _123list; public ModelList() { } @@ -49,8 +49,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * Get _123list * @return _123list */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 314794ba50b5..0496b4e8ac67 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -31,10 +31,10 @@ }) @JsonTypeName("Return") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ModelReturn { public static final String JSON_PROPERTY_RETURN = "return"; - @javax.annotation.Nullable - private Integer _return; + @javax.annotation.Nullable private Integer _return; public ModelReturn() { } @@ -49,8 +49,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * Get _return * @return _return */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java index 4789044c8530..45a18bdb0475 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java @@ -33,22 +33,19 @@ Name.JSON_PROPERTY_123NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Name { public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private Integer name; + @javax.annotation.Nonnull private Integer name; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; - @javax.annotation.Nullable - private Integer snakeCase; + @javax.annotation.Nullable private Integer snakeCase; public static final String JSON_PROPERTY_PROPERTY = "property"; - @javax.annotation.Nullable - private String property; + @javax.annotation.Nullable private String property; public static final String JSON_PROPERTY_123NUMBER = "123Number"; - @javax.annotation.Nullable - private Integer _123number; + @javax.annotation.Nullable private Integer _123number; public Name() { } @@ -75,8 +72,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,8 +90,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * Get snakeCase * @return snakeCase */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SNAKE_CASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -114,8 +109,7 @@ public Name property(@javax.annotation.Nullable String property) { * Get property * @return property */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,8 +127,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * Get _123number * @return _123number */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_123NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java index d5a15f45614e..4427b193085a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -53,54 +53,43 @@ NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NullableClass extends HashMap { public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop"; - @javax.annotation.Nullable - private JsonNullable integerProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable integerProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop"; - @javax.annotation.Nullable - private JsonNullable numberProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable numberProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop"; - @javax.annotation.Nullable - private JsonNullable booleanProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable booleanProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_STRING_PROP = "string_prop"; - @javax.annotation.Nullable - private JsonNullable stringProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable stringProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATE_PROP = "date_prop"; - @javax.annotation.Nullable - private JsonNullable dateProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable dateProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop"; - @javax.annotation.Nullable - private JsonNullable datetimeProp = JsonNullable.undefined(); + @javax.annotation.Nullable private JsonNullable datetimeProp = JsonNullable.undefined(); public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> arrayAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable"; - @javax.annotation.Nullable - private List arrayItemsNullable; + @javax.annotation.Nullable private List arrayItemsNullable; public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop"; - @javax.annotation.Nullable - private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); + @javax.annotation.Nullable private JsonNullable> objectAndItemsNullableProp = JsonNullable.>undefined(); public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable"; - @javax.annotation.Nullable - private Map objectItemsNullable; + @javax.annotation.Nullable private Map objectItemsNullable; public NullableClass() { @@ -116,8 +105,7 @@ public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) * Get integerProp * @return integerProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Integer getIntegerProp() { return integerProp.orElse(null); @@ -125,7 +113,6 @@ public Integer getIntegerProp() { @JsonProperty(JSON_PROPERTY_INTEGER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } @@ -149,8 +136,7 @@ public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp * Get numberProp * @return numberProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public BigDecimal getNumberProp() { return numberProp.orElse(null); @@ -158,7 +144,6 @@ public BigDecimal getNumberProp() { @JsonProperty(JSON_PROPERTY_NUMBER_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNumberProp_JsonNullable() { return numberProp; } @@ -182,8 +167,7 @@ public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) * Get booleanProp * @return booleanProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Boolean getBooleanProp() { return booleanProp.orElse(null); @@ -191,7 +175,6 @@ public Boolean getBooleanProp() { @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } @@ -215,8 +198,7 @@ public NullableClass stringProp(@javax.annotation.Nullable String stringProp) { * Get stringProp * @return stringProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getStringProp() { return stringProp.orElse(null); @@ -224,7 +206,6 @@ public String getStringProp() { @JsonProperty(JSON_PROPERTY_STRING_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getStringProp_JsonNullable() { return stringProp; } @@ -248,8 +229,7 @@ public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) { * Get dateProp * @return dateProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public LocalDate getDateProp() { return dateProp.orElse(null); @@ -257,7 +237,6 @@ public LocalDate getDateProp() { @JsonProperty(JSON_PROPERTY_DATE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDateProp_JsonNullable() { return dateProp; } @@ -281,8 +260,7 @@ public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime date * Get datetimeProp * @return datetimeProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); @@ -290,7 +268,6 @@ public OffsetDateTime getDatetimeProp() { @JsonProperty(JSON_PROPERTY_DATETIME_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } @@ -326,8 +303,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayNullableProp * @return arrayNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayNullableProp() { return arrayNullableProp.orElse(null); @@ -335,7 +311,6 @@ public List getArrayNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } @@ -371,8 +346,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); @@ -380,7 +354,6 @@ public List getArrayAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } @@ -412,8 +385,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get arrayItemsNullable * @return arrayItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -449,8 +421,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectNullableProp * @return objectNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectNullableProp() { return objectNullableProp.orElse(null); @@ -458,7 +429,6 @@ public Map getObjectNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } @@ -494,8 +464,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); @@ -503,7 +472,6 @@ public Map getObjectAndItemsNullableProp() { @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } @@ -535,8 +503,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * Get objectItemsNullable * @return objectItemsNullable */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java index 341017c96d26..b3d7cd4222fd 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -31,10 +31,10 @@ NumberOnly.JSON_PROPERTY_JUST_NUMBER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class NumberOnly { public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; - @javax.annotation.Nullable - private BigDecimal justNumber; + @javax.annotation.Nullable private BigDecimal justNumber; public NumberOnly() { } @@ -49,8 +49,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * Get justNumber * @return justNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_JUST_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 9c7dd3385403..53651d39f812 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -38,22 +38,19 @@ ObjectWithDeprecatedFields.JSON_PROPERTY_BARS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ObjectWithDeprecatedFields { public static final String JSON_PROPERTY_UUID = "uuid"; - @javax.annotation.Nullable - private String uuid; + @javax.annotation.Nullable private String uuid; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private BigDecimal id; + @javax.annotation.Nullable private BigDecimal id; public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef"; - @javax.annotation.Nullable - private DeprecatedObject deprecatedRef; + @javax.annotation.Nullable private DeprecatedObject deprecatedRef; public static final String JSON_PROPERTY_BARS = "bars"; - @javax.annotation.Nullable - private List bars; + @javax.annotation.Nullable private List bars; public ObjectWithDeprecatedFields() { } @@ -68,8 +65,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * Get uuid * @return uuid */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -95,8 +91,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -122,8 +117,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -157,8 +151,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { * @deprecated */ @Deprecated - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BARS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java index 0136b2dcc833..834d17fb706a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java @@ -36,22 +36,19 @@ Order.JSON_PROPERTY_COMPLETE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Order { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_PET_ID = "petId"; - @javax.annotation.Nullable - private Long petId; + @javax.annotation.Nullable private Long petId; public static final String JSON_PROPERTY_QUANTITY = "quantity"; - @javax.annotation.Nullable - private Integer quantity; + @javax.annotation.Nullable private Integer quantity; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; - @javax.annotation.Nullable - private OffsetDateTime shipDate; + @javax.annotation.Nullable private OffsetDateTime shipDate; /** * Order Status @@ -89,14 +86,11 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public static final String JSON_PROPERTY_COMPLETE = "complete"; - @javax.annotation.Nullable - private Boolean complete = false; + @javax.annotation.Nullable private Boolean complete = false; public Order() { } @@ -111,8 +105,7 @@ public Order id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,8 +129,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * Get petId * @return petId */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PET_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -161,8 +153,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * Get quantity * @return quantity */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUANTITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -186,8 +177,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIP_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -211,8 +201,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * Order Status * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -236,8 +225,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * Get complete * @return complete */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java index c9b0b884ef29..b1979a9e65da 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -33,18 +33,16 @@ OuterComposite.JSON_PROPERTY_MY_BOOLEAN }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterComposite { public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; - @javax.annotation.Nullable - private BigDecimal myNumber; + @javax.annotation.Nullable private BigDecimal myNumber; public static final String JSON_PROPERTY_MY_STRING = "my_string"; - @javax.annotation.Nullable - private String myString; + @javax.annotation.Nullable private String myString; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; - @javax.annotation.Nullable - private Boolean myBoolean; + @javax.annotation.Nullable private Boolean myBoolean; public OuterComposite() { } @@ -59,8 +57,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * Get myNumber * @return myNumber */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -84,8 +81,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * Get myString * @return myString */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_STRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -109,8 +105,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * Get myBoolean * @return myBoolean */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 88cf19fe07a3..245d8fc67864 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -31,10 +31,10 @@ OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class OuterObjectWithEnumProperty { public static final String JSON_PROPERTY_VALUE = "value"; - @javax.annotation.Nonnull - private OuterEnumInteger value; + @javax.annotation.Nonnull private OuterEnumInteger value; public OuterObjectWithEnumProperty() { } @@ -49,8 +49,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * Get value * @return value */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b97f28bbcfd8..432bd35481bb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -38,6 +38,7 @@ ParentWithNullable.JSON_PROPERTY_NULLABLE_PROPERTY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -80,14 +81,11 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_TYPE = "type"; - @javax.annotation.Nullable - protected TypeEnum type; + @javax.annotation.Nullable protected TypeEnum type; public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty"; - @javax.annotation.Nullable - protected JsonNullable nullableProperty = JsonNullable.undefined(); + @javax.annotation.Nullable protected JsonNullable nullableProperty = JsonNullable.undefined(); public ParentWithNullable() { } @@ -102,8 +100,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * Get type * @return type */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -127,8 +124,7 @@ public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nul * Get nullableProperty * @return nullableProperty */ - @javax.annotation.Nullable - @JsonIgnore + @javax.annotation.Nullable @JsonIgnore public String getNullableProperty() { return nullableProperty.orElse(null); @@ -136,7 +132,6 @@ public String getNullableProperty() { @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java index 5a91c5d0773f..06756c2ca5b6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java @@ -43,26 +43,22 @@ Pet.JSON_PROPERTY_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Pet { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_CATEGORY = "category"; - @javax.annotation.Nullable - private Category category; + @javax.annotation.Nullable private Category category; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nonnull - private String name; + @javax.annotation.Nonnull private String name; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; - @javax.annotation.Nonnull - private Set photoUrls; + @javax.annotation.Nonnull private Set photoUrls; public static final String JSON_PROPERTY_TAGS = "tags"; - @javax.annotation.Nullable - private List tags; + @javax.annotation.Nullable private List tags; /** * pet status in the store @@ -100,10 +96,8 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - public static final String JSON_PROPERTY_STATUS = "status"; - @javax.annotation.Nullable - private StatusEnum status; + @javax.annotation.Nullable private StatusEnum status; public Pet() { } @@ -118,8 +112,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -143,8 +136,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * Get category * @return category */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -168,8 +160,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * Get name * @return name */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -201,8 +192,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @javax.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHOTO_URLS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -235,8 +225,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -260,8 +249,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * pet status in the store * @return status */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index e0e1e8bb4bbd..7fd8fc08906c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,14 +31,13 @@ ReadOnlyFirst.JSON_PROPERTY_BAZ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class ReadOnlyFirst { public static final String JSON_PROPERTY_BAR = "bar"; - @javax.annotation.Nullable - private String bar; + @javax.annotation.Nullable private String bar; public static final String JSON_PROPERTY_BAZ = "baz"; - @javax.annotation.Nullable - private String baz; + @javax.annotation.Nullable private String baz; public ReadOnlyFirst() { } @@ -57,8 +56,7 @@ public ReadOnlyFirst( * Get bar * @return bar */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,8 +75,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * Get baz * @return baz */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BAZ) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 8d7cee198797..2ce6677d2d2d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,10 +31,10 @@ }) @JsonTypeName("_special_model.name_") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class SpecialModelName { public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; - @javax.annotation.Nullable - private Long $specialPropertyName; + @javax.annotation.Nullable private Long $specialPropertyName; public SpecialModelName() { } @@ -49,8 +49,7 @@ public SpecialModelName() { * Get $specialPropertyName * @return $specialPropertyName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java index ebcb558efe5f..027b8542d358 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java @@ -31,14 +31,13 @@ Tag.JSON_PROPERTY_NAME }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class Tag { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_NAME = "name"; - @javax.annotation.Nullable - private String name; + @javax.annotation.Nullable private String name; public Tag() { } @@ -53,8 +52,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -78,8 +76,7 @@ public Tag name(@javax.annotation.Nullable String name) { * Get name * @return name */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 89584fa7c936..ea68d8ffaf26 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -33,10 +33,10 @@ }) @JsonTypeName("testInlineFreeformAdditionalProperties_request") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap { public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty"; - @javax.annotation.Nullable - private String someProperty; + @javax.annotation.Nullable private String someProperty; public TestInlineFreeformAdditionalPropertiesRequest() { @@ -52,8 +52,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * Get someProperty * @return someProperty */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java index 9d11826fc6b6..019c8bd1f88b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java @@ -37,38 +37,31 @@ User.JSON_PROPERTY_USER_STATUS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") + public class User { public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Long id; + @javax.annotation.Nullable private Long id; public static final String JSON_PROPERTY_USERNAME = "username"; - @javax.annotation.Nullable - private String username; + @javax.annotation.Nullable private String username; public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; - @javax.annotation.Nullable - private String firstName; + @javax.annotation.Nullable private String firstName; public static final String JSON_PROPERTY_LAST_NAME = "lastName"; - @javax.annotation.Nullable - private String lastName; + @javax.annotation.Nullable private String lastName; public static final String JSON_PROPERTY_EMAIL = "email"; - @javax.annotation.Nullable - private String email; + @javax.annotation.Nullable private String email; public static final String JSON_PROPERTY_PASSWORD = "password"; - @javax.annotation.Nullable - private String password; + @javax.annotation.Nullable private String password; public static final String JSON_PROPERTY_PHONE = "phone"; - @javax.annotation.Nullable - private String phone; + @javax.annotation.Nullable private String phone; public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; - @javax.annotation.Nullable - private Integer userStatus; + @javax.annotation.Nullable private Integer userStatus; public User() { } @@ -83,8 +76,7 @@ public User id(@javax.annotation.Nullable Long id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -108,8 +100,7 @@ public User username(@javax.annotation.Nullable String username) { * Get username * @return username */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USERNAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -133,8 +124,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * Get firstName * @return firstName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIRST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -158,8 +148,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * Get lastName * @return lastName */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -183,8 +172,7 @@ public User email(@javax.annotation.Nullable String email) { * Get email * @return email */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -208,8 +196,7 @@ public User password(@javax.annotation.Nullable String password) { * Get password * @return password */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSWORD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,8 +220,7 @@ public User phone(@javax.annotation.Nullable String phone) { * Get phone * @return phone */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -258,8 +244,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * User Status * @return userStatus */ - @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { diff --git a/samples/client/petstore/javascript-apollo/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-apollo/src/model/AdditionalPropertiesClass.js index 3849c00c5958..6053ed1c927d 100644 --- a/samples/client/petstore/javascript-apollo/src/model/AdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-apollo/src/model/AdditionalPropertiesClass.js @@ -88,4 +88,3 @@ AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; export default AdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Animal.js b/samples/client/petstore/javascript-apollo/src/model/Animal.js index f780272847ef..f07600c3f346 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Animal.js +++ b/samples/client/petstore/javascript-apollo/src/model/Animal.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Animal; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ApiResponse.js b/samples/client/petstore/javascript-apollo/src/model/ApiResponse.js index 6db561122f13..9e6527ecdf76 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ApiResponse.js +++ b/samples/client/petstore/javascript-apollo/src/model/ApiResponse.js @@ -104,4 +104,3 @@ ApiResponse.prototype['message'] = undefined; export default ApiResponse; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-apollo/src/model/ArrayOfArrayOfNumberOnly.js index 461c6b5b35bd..39ad22365e4e 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ArrayOfArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-apollo/src/model/ArrayOfArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined; export default ArrayOfArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-apollo/src/model/ArrayOfNumberOnly.js index 4c2513c10763..b723a5903077 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-apollo/src/model/ArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined; export default ArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ArrayTest.js b/samples/client/petstore/javascript-apollo/src/model/ArrayTest.js index 3fc3c9b7f926..eb54fd95503e 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ArrayTest.js +++ b/samples/client/petstore/javascript-apollo/src/model/ArrayTest.js @@ -109,4 +109,3 @@ ArrayTest.prototype['array_array_of_model'] = undefined; export default ArrayTest; - diff --git a/samples/client/petstore/javascript-apollo/src/model/BasquePig.js b/samples/client/petstore/javascript-apollo/src/model/BasquePig.js index 285ee12ca46d..c76c55ae71eb 100644 --- a/samples/client/petstore/javascript-apollo/src/model/BasquePig.js +++ b/samples/client/petstore/javascript-apollo/src/model/BasquePig.js @@ -106,4 +106,3 @@ BasquePig.prototype['color'] = undefined; export default BasquePig; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Capitalization.js b/samples/client/petstore/javascript-apollo/src/model/Capitalization.js index cf4ef4348ace..14c69308cb76 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Capitalization.js +++ b/samples/client/petstore/javascript-apollo/src/model/Capitalization.js @@ -145,4 +145,3 @@ Capitalization.prototype['ATT_NAME'] = undefined; export default Capitalization; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Cat.js b/samples/client/petstore/javascript-apollo/src/model/Cat.js index cfb0892ce412..e72d11f3bc30 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Cat.js +++ b/samples/client/petstore/javascript-apollo/src/model/Cat.js @@ -102,4 +102,3 @@ Animal.prototype['color'] = 'red'; export default Cat; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Category.js b/samples/client/petstore/javascript-apollo/src/model/Category.js index 829ecab0037e..ef1164424783 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Category.js +++ b/samples/client/petstore/javascript-apollo/src/model/Category.js @@ -101,4 +101,3 @@ Category.prototype['name'] = 'default-name'; export default Category; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ClassModel.js b/samples/client/petstore/javascript-apollo/src/model/ClassModel.js index ba614443ebfb..38bf66263381 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ClassModel.js +++ b/samples/client/petstore/javascript-apollo/src/model/ClassModel.js @@ -85,4 +85,3 @@ ClassModel.prototype['_class'] = undefined; export default ClassModel; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Client.js b/samples/client/petstore/javascript-apollo/src/model/Client.js index 4089ff37ee67..83dfb4c80497 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Client.js +++ b/samples/client/petstore/javascript-apollo/src/model/Client.js @@ -84,4 +84,3 @@ Client.prototype['client'] = undefined; export default Client; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Color.js b/samples/client/petstore/javascript-apollo/src/model/Color.js index 70daad82ce65..c93c8ed92964 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Color.js +++ b/samples/client/petstore/javascript-apollo/src/model/Color.js @@ -161,4 +161,3 @@ class Color { Color.OneOf = ["String", "[Number]"]; export default Color; - diff --git a/samples/client/petstore/javascript-apollo/src/model/DanishPig.js b/samples/client/petstore/javascript-apollo/src/model/DanishPig.js index 43cb640921a9..6a3458ae9d53 100644 --- a/samples/client/petstore/javascript-apollo/src/model/DanishPig.js +++ b/samples/client/petstore/javascript-apollo/src/model/DanishPig.js @@ -102,4 +102,3 @@ DanishPig.prototype['size'] = undefined; export default DanishPig; - diff --git a/samples/client/petstore/javascript-apollo/src/model/DeprecatedObject.js b/samples/client/petstore/javascript-apollo/src/model/DeprecatedObject.js index d7c874345f1d..c103ffe6cf25 100644 --- a/samples/client/petstore/javascript-apollo/src/model/DeprecatedObject.js +++ b/samples/client/petstore/javascript-apollo/src/model/DeprecatedObject.js @@ -84,4 +84,3 @@ DeprecatedObject.prototype['name'] = undefined; export default DeprecatedObject; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Dog.js b/samples/client/petstore/javascript-apollo/src/model/Dog.js index 5397bb99d328..41538d4ccc35 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Dog.js +++ b/samples/client/petstore/javascript-apollo/src/model/Dog.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Dog; - diff --git a/samples/client/petstore/javascript-apollo/src/model/EnumArrays.js b/samples/client/petstore/javascript-apollo/src/model/EnumArrays.js index 2289689e3498..b631496edb93 100644 --- a/samples/client/petstore/javascript-apollo/src/model/EnumArrays.js +++ b/samples/client/petstore/javascript-apollo/src/model/EnumArrays.js @@ -114,7 +114,6 @@ EnumArrays['JustSymbolEnum'] = { "DOLLAR": "$" }; - /** * Allowed values for the arrayEnum property. * @enum {String} @@ -136,6 +135,4 @@ EnumArrays['ArrayEnumEnum'] = { }; - export default EnumArrays; - diff --git a/samples/client/petstore/javascript-apollo/src/model/EnumClass.js b/samples/client/petstore/javascript-apollo/src/model/EnumClass.js index f0888e52d5ba..ebee1f6e8294 100644 --- a/samples/client/petstore/javascript-apollo/src/model/EnumClass.js +++ b/samples/client/petstore/javascript-apollo/src/model/EnumClass.js @@ -50,4 +50,3 @@ export default class EnumClass { return object; } } - diff --git a/samples/client/petstore/javascript-apollo/src/model/EnumTest.js b/samples/client/petstore/javascript-apollo/src/model/EnumTest.js index 708e37e4ac6e..8f1ab6bc8a08 100644 --- a/samples/client/petstore/javascript-apollo/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-apollo/src/model/EnumTest.js @@ -180,7 +180,6 @@ EnumTest['EnumStringEnum'] = { "empty": "" }; - /** * Allowed values for the enum_string_required property. * @enum {String} @@ -207,7 +206,6 @@ EnumTest['EnumStringRequiredEnum'] = { "empty": "" }; - /** * Allowed values for the enum_integer property. * @enum {Number} @@ -228,7 +226,6 @@ EnumTest['EnumIntegerEnum'] = { "-1": -1 }; - /** * Allowed values for the enum_number property. * @enum {Number} @@ -250,6 +247,4 @@ EnumTest['EnumNumberEnum'] = { }; - export default EnumTest; - diff --git a/samples/client/petstore/javascript-apollo/src/model/File.js b/samples/client/petstore/javascript-apollo/src/model/File.js index 5f5c9547a1fa..a8cf8bd152b0 100644 --- a/samples/client/petstore/javascript-apollo/src/model/File.js +++ b/samples/client/petstore/javascript-apollo/src/model/File.js @@ -86,4 +86,3 @@ File.prototype['sourceURI'] = undefined; export default File; - diff --git a/samples/client/petstore/javascript-apollo/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript-apollo/src/model/FileSchemaTestClass.js index 1b343c6835b3..d63aae8c30b6 100644 --- a/samples/client/petstore/javascript-apollo/src/model/FileSchemaTestClass.js +++ b/samples/client/petstore/javascript-apollo/src/model/FileSchemaTestClass.js @@ -102,4 +102,3 @@ FileSchemaTestClass.prototype['files'] = undefined; export default FileSchemaTestClass; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Foo.js b/samples/client/petstore/javascript-apollo/src/model/Foo.js index e808b774ec01..3705305e4e29 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Foo.js +++ b/samples/client/petstore/javascript-apollo/src/model/Foo.js @@ -86,4 +86,3 @@ Foo.prototype['bar'] = 'bar'; export default Foo; - diff --git a/samples/client/petstore/javascript-apollo/src/model/FooGetDefaultResponse.js b/samples/client/petstore/javascript-apollo/src/model/FooGetDefaultResponse.js index b11d88593719..f5a031a6c66a 100644 --- a/samples/client/petstore/javascript-apollo/src/model/FooGetDefaultResponse.js +++ b/samples/client/petstore/javascript-apollo/src/model/FooGetDefaultResponse.js @@ -85,4 +85,3 @@ FooGetDefaultResponse.prototype['string'] = undefined; export default FooGetDefaultResponse; - diff --git a/samples/client/petstore/javascript-apollo/src/model/FormatTest.js b/samples/client/petstore/javascript-apollo/src/model/FormatTest.js index 7205c80e6970..1a5485760538 100644 --- a/samples/client/petstore/javascript-apollo/src/model/FormatTest.js +++ b/samples/client/petstore/javascript-apollo/src/model/FormatTest.js @@ -236,4 +236,3 @@ FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; export default FormatTest; - diff --git a/samples/client/petstore/javascript-apollo/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-apollo/src/model/HasOnlyReadOnly.js index 90943b87aef2..2fce4c03ccb6 100644 --- a/samples/client/petstore/javascript-apollo/src/model/HasOnlyReadOnly.js +++ b/samples/client/petstore/javascript-apollo/src/model/HasOnlyReadOnly.js @@ -96,4 +96,3 @@ HasOnlyReadOnly.prototype['foo'] = undefined; export default HasOnlyReadOnly; - diff --git a/samples/client/petstore/javascript-apollo/src/model/HealthCheckResult.js b/samples/client/petstore/javascript-apollo/src/model/HealthCheckResult.js index 112fd7784265..922e9b3292a1 100644 --- a/samples/client/petstore/javascript-apollo/src/model/HealthCheckResult.js +++ b/samples/client/petstore/javascript-apollo/src/model/HealthCheckResult.js @@ -85,4 +85,3 @@ HealthCheckResult.prototype['NullableMessage'] = undefined; export default HealthCheckResult; - diff --git a/samples/client/petstore/javascript-apollo/src/model/List.js b/samples/client/petstore/javascript-apollo/src/model/List.js index ca916761c0fe..a84c29ec5e42 100644 --- a/samples/client/petstore/javascript-apollo/src/model/List.js +++ b/samples/client/petstore/javascript-apollo/src/model/List.js @@ -84,4 +84,3 @@ List.prototype['123-list'] = undefined; export default List; - diff --git a/samples/client/petstore/javascript-apollo/src/model/MapTest.js b/samples/client/petstore/javascript-apollo/src/model/MapTest.js index 478e2347fa79..806df7f056b0 100644 --- a/samples/client/petstore/javascript-apollo/src/model/MapTest.js +++ b/samples/client/petstore/javascript-apollo/src/model/MapTest.js @@ -123,6 +123,4 @@ MapTest['InnerEnum'] = { }; - export default MapTest; - diff --git a/samples/client/petstore/javascript-apollo/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-apollo/src/model/MixedPropertiesAndAdditionalPropertiesClass.js index 8131fa362034..6eb3686efd13 100644 --- a/samples/client/petstore/javascript-apollo/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-apollo/src/model/MixedPropertiesAndAdditionalPropertiesClass.js @@ -101,4 +101,3 @@ MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined; export default MixedPropertiesAndAdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Model200Response.js b/samples/client/petstore/javascript-apollo/src/model/Model200Response.js index 604683735fc8..ac5227bd246f 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Model200Response.js +++ b/samples/client/petstore/javascript-apollo/src/model/Model200Response.js @@ -93,4 +93,3 @@ Model200Response.prototype['class'] = undefined; export default Model200Response; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Name.js b/samples/client/petstore/javascript-apollo/src/model/Name.js index cd7f0a692e71..a7070c448665 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Name.js +++ b/samples/client/petstore/javascript-apollo/src/model/Name.js @@ -117,4 +117,3 @@ Name.prototype['123Number'] = undefined; export default Name; - diff --git a/samples/client/petstore/javascript-apollo/src/model/NestedColor.js b/samples/client/petstore/javascript-apollo/src/model/NestedColor.js index 5b611469036b..94a8f1db03a6 100644 --- a/samples/client/petstore/javascript-apollo/src/model/NestedColor.js +++ b/samples/client/petstore/javascript-apollo/src/model/NestedColor.js @@ -93,4 +93,3 @@ NestedColor.prototype['nested'] = undefined; export default NestedColor; - diff --git a/samples/client/petstore/javascript-apollo/src/model/NestedOneOf.js b/samples/client/petstore/javascript-apollo/src/model/NestedOneOf.js index 3ea6ed798b71..e5c83a1498eb 100644 --- a/samples/client/petstore/javascript-apollo/src/model/NestedOneOf.js +++ b/samples/client/petstore/javascript-apollo/src/model/NestedOneOf.js @@ -93,4 +93,3 @@ NestedOneOf.prototype['nested_pig'] = undefined; export default NestedOneOf; - diff --git a/samples/client/petstore/javascript-apollo/src/model/NullableClass.js b/samples/client/petstore/javascript-apollo/src/model/NullableClass.js index 33dd77a18201..abd69212fee6 100644 --- a/samples/client/petstore/javascript-apollo/src/model/NullableClass.js +++ b/samples/client/petstore/javascript-apollo/src/model/NullableClass.js @@ -188,4 +188,3 @@ NullableClass.prototype['object_items_nullable'] = undefined; export default NullableClass; - diff --git a/samples/client/petstore/javascript-apollo/src/model/NumberOnly.js b/samples/client/petstore/javascript-apollo/src/model/NumberOnly.js index deb4f2961f62..15859d536a08 100644 --- a/samples/client/petstore/javascript-apollo/src/model/NumberOnly.js +++ b/samples/client/petstore/javascript-apollo/src/model/NumberOnly.js @@ -80,4 +80,3 @@ NumberOnly.prototype['JustNumber'] = undefined; export default NumberOnly; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ObjectWithDeprecatedFields.js b/samples/client/petstore/javascript-apollo/src/model/ObjectWithDeprecatedFields.js index 29e80fd26648..eb81654436a7 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ObjectWithDeprecatedFields.js +++ b/samples/client/petstore/javascript-apollo/src/model/ObjectWithDeprecatedFields.js @@ -117,4 +117,3 @@ ObjectWithDeprecatedFields.prototype['bars'] = undefined; export default ObjectWithDeprecatedFields; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Order.js b/samples/client/petstore/javascript-apollo/src/model/Order.js index 0568b4733150..179d7fc89142 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Order.js +++ b/samples/client/petstore/javascript-apollo/src/model/Order.js @@ -152,6 +152,4 @@ Order['StatusEnum'] = { }; - export default Order; - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterComposite.js b/samples/client/petstore/javascript-apollo/src/model/OuterComposite.js index 1c6a3c9a8579..a324d9ff71fa 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterComposite.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterComposite.js @@ -100,4 +100,3 @@ OuterComposite.prototype['my_boolean'] = undefined; export default OuterComposite; - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterEnum.js b/samples/client/petstore/javascript-apollo/src/model/OuterEnum.js index 12fdff98026b..200bf20812e8 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterEnum.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterEnum.js @@ -50,4 +50,3 @@ export default class OuterEnum { return object; } } - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-apollo/src/model/OuterEnumDefaultValue.js index a65b1dd0a6be..9b13a19aa602 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterEnumDefaultValue.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterEnumDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-apollo/src/model/OuterEnumInteger.js index b6fc29568a02..9d6ce1056751 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterEnumInteger.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterEnumInteger.js @@ -50,4 +50,3 @@ export default class OuterEnumInteger { return object; } } - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-apollo/src/model/OuterEnumIntegerDefaultValue.js index 86a9d6b9467e..0e43feb22d1d 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterEnumIntegerDefaultValue.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterEnumIntegerDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumIntegerDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-apollo/src/model/OuterObjectWithEnumProperty.js b/samples/client/petstore/javascript-apollo/src/model/OuterObjectWithEnumProperty.js index 04fe08cbbf14..09551cf7e5d6 100644 --- a/samples/client/petstore/javascript-apollo/src/model/OuterObjectWithEnumProperty.js +++ b/samples/client/petstore/javascript-apollo/src/model/OuterObjectWithEnumProperty.js @@ -89,4 +89,3 @@ OuterObjectWithEnumProperty.prototype['value'] = undefined; export default OuterObjectWithEnumProperty; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Pet.js b/samples/client/petstore/javascript-apollo/src/model/Pet.js index ffe0b6598794..d4c757e76ac1 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Pet.js +++ b/samples/client/petstore/javascript-apollo/src/model/Pet.js @@ -184,6 +184,4 @@ Pet['StatusEnum'] = { }; - export default Pet; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Pig.js b/samples/client/petstore/javascript-apollo/src/model/Pig.js index 222a3e27d413..be2f0c1f5df2 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Pig.js +++ b/samples/client/petstore/javascript-apollo/src/model/Pig.js @@ -140,4 +140,3 @@ Pig.prototype['size'] = undefined; Pig.OneOf = ["BasquePig", "DanishPig"]; export default Pig; - diff --git a/samples/client/petstore/javascript-apollo/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-apollo/src/model/ReadOnlyFirst.js index b0fa7628f16d..22371d2c6f38 100644 --- a/samples/client/petstore/javascript-apollo/src/model/ReadOnlyFirst.js +++ b/samples/client/petstore/javascript-apollo/src/model/ReadOnlyFirst.js @@ -96,4 +96,3 @@ ReadOnlyFirst.prototype['baz'] = undefined; export default ReadOnlyFirst; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Return.js b/samples/client/petstore/javascript-apollo/src/model/Return.js index 616574b5fc32..11f7e3e3f49e 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Return.js +++ b/samples/client/petstore/javascript-apollo/src/model/Return.js @@ -81,4 +81,3 @@ Return.prototype['return'] = undefined; export default Return; - diff --git a/samples/client/petstore/javascript-apollo/src/model/SpecialModelName.js b/samples/client/petstore/javascript-apollo/src/model/SpecialModelName.js index b9ece722920f..c2d9e26c4e59 100644 --- a/samples/client/petstore/javascript-apollo/src/model/SpecialModelName.js +++ b/samples/client/petstore/javascript-apollo/src/model/SpecialModelName.js @@ -80,4 +80,3 @@ SpecialModelName.prototype['$special[property.name]'] = undefined; export default SpecialModelName; - diff --git a/samples/client/petstore/javascript-apollo/src/model/StringOrBoolean.js b/samples/client/petstore/javascript-apollo/src/model/StringOrBoolean.js index 029e14e41a72..f86a6169a534 100644 --- a/samples/client/petstore/javascript-apollo/src/model/StringOrBoolean.js +++ b/samples/client/petstore/javascript-apollo/src/model/StringOrBoolean.js @@ -116,4 +116,3 @@ class StringOrBoolean { StringOrBoolean.OneOf = ["Boolean", "String"]; export default StringOrBoolean; - diff --git a/samples/client/petstore/javascript-apollo/src/model/Tag.js b/samples/client/petstore/javascript-apollo/src/model/Tag.js index c24706b827ef..6ac42574a909 100644 --- a/samples/client/petstore/javascript-apollo/src/model/Tag.js +++ b/samples/client/petstore/javascript-apollo/src/model/Tag.js @@ -92,4 +92,3 @@ Tag.prototype['name'] = undefined; export default Tag; - diff --git a/samples/client/petstore/javascript-apollo/src/model/TestInlineFreeformAdditionalPropertiesRequest.js b/samples/client/petstore/javascript-apollo/src/model/TestInlineFreeformAdditionalPropertiesRequest.js index b28db6e166fe..90e67fa74c89 100644 --- a/samples/client/petstore/javascript-apollo/src/model/TestInlineFreeformAdditionalPropertiesRequest.js +++ b/samples/client/petstore/javascript-apollo/src/model/TestInlineFreeformAdditionalPropertiesRequest.js @@ -88,4 +88,3 @@ TestInlineFreeformAdditionalPropertiesRequest.prototype['someProperty'] = undefi export default TestInlineFreeformAdditionalPropertiesRequest; - diff --git a/samples/client/petstore/javascript-apollo/src/model/User.js b/samples/client/petstore/javascript-apollo/src/model/User.js index 145851f479b0..b31d8ce5cdc2 100644 --- a/samples/client/petstore/javascript-apollo/src/model/User.js +++ b/samples/client/petstore/javascript-apollo/src/model/User.js @@ -161,4 +161,3 @@ User.prototype['userStatus'] = undefined; export default User; - diff --git a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js index 3849c00c5958..6053ed1c927d 100644 --- a/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js @@ -88,4 +88,3 @@ AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; export default AdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-es6/src/model/Animal.js b/samples/client/petstore/javascript-es6/src/model/Animal.js index f780272847ef..f07600c3f346 100644 --- a/samples/client/petstore/javascript-es6/src/model/Animal.js +++ b/samples/client/petstore/javascript-es6/src/model/Animal.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Animal; - diff --git a/samples/client/petstore/javascript-es6/src/model/ApiResponse.js b/samples/client/petstore/javascript-es6/src/model/ApiResponse.js index 6db561122f13..9e6527ecdf76 100644 --- a/samples/client/petstore/javascript-es6/src/model/ApiResponse.js +++ b/samples/client/petstore/javascript-es6/src/model/ApiResponse.js @@ -104,4 +104,3 @@ ApiResponse.prototype['message'] = undefined; export default ApiResponse; - diff --git a/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js index 461c6b5b35bd..39ad22365e4e 100644 --- a/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined; export default ArrayOfArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js index 4c2513c10763..b723a5903077 100644 --- a/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined; export default ArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-es6/src/model/ArrayTest.js b/samples/client/petstore/javascript-es6/src/model/ArrayTest.js index 3fc3c9b7f926..eb54fd95503e 100644 --- a/samples/client/petstore/javascript-es6/src/model/ArrayTest.js +++ b/samples/client/petstore/javascript-es6/src/model/ArrayTest.js @@ -109,4 +109,3 @@ ArrayTest.prototype['array_array_of_model'] = undefined; export default ArrayTest; - diff --git a/samples/client/petstore/javascript-es6/src/model/BasquePig.js b/samples/client/petstore/javascript-es6/src/model/BasquePig.js index 285ee12ca46d..c76c55ae71eb 100644 --- a/samples/client/petstore/javascript-es6/src/model/BasquePig.js +++ b/samples/client/petstore/javascript-es6/src/model/BasquePig.js @@ -106,4 +106,3 @@ BasquePig.prototype['color'] = undefined; export default BasquePig; - diff --git a/samples/client/petstore/javascript-es6/src/model/Capitalization.js b/samples/client/petstore/javascript-es6/src/model/Capitalization.js index cf4ef4348ace..14c69308cb76 100644 --- a/samples/client/petstore/javascript-es6/src/model/Capitalization.js +++ b/samples/client/petstore/javascript-es6/src/model/Capitalization.js @@ -145,4 +145,3 @@ Capitalization.prototype['ATT_NAME'] = undefined; export default Capitalization; - diff --git a/samples/client/petstore/javascript-es6/src/model/Cat.js b/samples/client/petstore/javascript-es6/src/model/Cat.js index cfb0892ce412..e72d11f3bc30 100644 --- a/samples/client/petstore/javascript-es6/src/model/Cat.js +++ b/samples/client/petstore/javascript-es6/src/model/Cat.js @@ -102,4 +102,3 @@ Animal.prototype['color'] = 'red'; export default Cat; - diff --git a/samples/client/petstore/javascript-es6/src/model/Category.js b/samples/client/petstore/javascript-es6/src/model/Category.js index 829ecab0037e..ef1164424783 100644 --- a/samples/client/petstore/javascript-es6/src/model/Category.js +++ b/samples/client/petstore/javascript-es6/src/model/Category.js @@ -101,4 +101,3 @@ Category.prototype['name'] = 'default-name'; export default Category; - diff --git a/samples/client/petstore/javascript-es6/src/model/ClassModel.js b/samples/client/petstore/javascript-es6/src/model/ClassModel.js index ba614443ebfb..38bf66263381 100644 --- a/samples/client/petstore/javascript-es6/src/model/ClassModel.js +++ b/samples/client/petstore/javascript-es6/src/model/ClassModel.js @@ -85,4 +85,3 @@ ClassModel.prototype['_class'] = undefined; export default ClassModel; - diff --git a/samples/client/petstore/javascript-es6/src/model/Client.js b/samples/client/petstore/javascript-es6/src/model/Client.js index 4089ff37ee67..83dfb4c80497 100644 --- a/samples/client/petstore/javascript-es6/src/model/Client.js +++ b/samples/client/petstore/javascript-es6/src/model/Client.js @@ -84,4 +84,3 @@ Client.prototype['client'] = undefined; export default Client; - diff --git a/samples/client/petstore/javascript-es6/src/model/Color.js b/samples/client/petstore/javascript-es6/src/model/Color.js index 70daad82ce65..c93c8ed92964 100644 --- a/samples/client/petstore/javascript-es6/src/model/Color.js +++ b/samples/client/petstore/javascript-es6/src/model/Color.js @@ -161,4 +161,3 @@ class Color { Color.OneOf = ["String", "[Number]"]; export default Color; - diff --git a/samples/client/petstore/javascript-es6/src/model/DanishPig.js b/samples/client/petstore/javascript-es6/src/model/DanishPig.js index 43cb640921a9..6a3458ae9d53 100644 --- a/samples/client/petstore/javascript-es6/src/model/DanishPig.js +++ b/samples/client/petstore/javascript-es6/src/model/DanishPig.js @@ -102,4 +102,3 @@ DanishPig.prototype['size'] = undefined; export default DanishPig; - diff --git a/samples/client/petstore/javascript-es6/src/model/DeprecatedObject.js b/samples/client/petstore/javascript-es6/src/model/DeprecatedObject.js index d7c874345f1d..c103ffe6cf25 100644 --- a/samples/client/petstore/javascript-es6/src/model/DeprecatedObject.js +++ b/samples/client/petstore/javascript-es6/src/model/DeprecatedObject.js @@ -84,4 +84,3 @@ DeprecatedObject.prototype['name'] = undefined; export default DeprecatedObject; - diff --git a/samples/client/petstore/javascript-es6/src/model/Dog.js b/samples/client/petstore/javascript-es6/src/model/Dog.js index 5397bb99d328..41538d4ccc35 100644 --- a/samples/client/petstore/javascript-es6/src/model/Dog.js +++ b/samples/client/petstore/javascript-es6/src/model/Dog.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Dog; - diff --git a/samples/client/petstore/javascript-es6/src/model/EnumArrays.js b/samples/client/petstore/javascript-es6/src/model/EnumArrays.js index 2289689e3498..b631496edb93 100644 --- a/samples/client/petstore/javascript-es6/src/model/EnumArrays.js +++ b/samples/client/petstore/javascript-es6/src/model/EnumArrays.js @@ -114,7 +114,6 @@ EnumArrays['JustSymbolEnum'] = { "DOLLAR": "$" }; - /** * Allowed values for the arrayEnum property. * @enum {String} @@ -136,6 +135,4 @@ EnumArrays['ArrayEnumEnum'] = { }; - export default EnumArrays; - diff --git a/samples/client/petstore/javascript-es6/src/model/EnumClass.js b/samples/client/petstore/javascript-es6/src/model/EnumClass.js index f0888e52d5ba..ebee1f6e8294 100644 --- a/samples/client/petstore/javascript-es6/src/model/EnumClass.js +++ b/samples/client/petstore/javascript-es6/src/model/EnumClass.js @@ -50,4 +50,3 @@ export default class EnumClass { return object; } } - diff --git a/samples/client/petstore/javascript-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-es6/src/model/EnumTest.js index 708e37e4ac6e..8f1ab6bc8a08 100644 --- a/samples/client/petstore/javascript-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-es6/src/model/EnumTest.js @@ -180,7 +180,6 @@ EnumTest['EnumStringEnum'] = { "empty": "" }; - /** * Allowed values for the enum_string_required property. * @enum {String} @@ -207,7 +206,6 @@ EnumTest['EnumStringRequiredEnum'] = { "empty": "" }; - /** * Allowed values for the enum_integer property. * @enum {Number} @@ -228,7 +226,6 @@ EnumTest['EnumIntegerEnum'] = { "-1": -1 }; - /** * Allowed values for the enum_number property. * @enum {Number} @@ -250,6 +247,4 @@ EnumTest['EnumNumberEnum'] = { }; - export default EnumTest; - diff --git a/samples/client/petstore/javascript-es6/src/model/File.js b/samples/client/petstore/javascript-es6/src/model/File.js index 5f5c9547a1fa..a8cf8bd152b0 100644 --- a/samples/client/petstore/javascript-es6/src/model/File.js +++ b/samples/client/petstore/javascript-es6/src/model/File.js @@ -86,4 +86,3 @@ File.prototype['sourceURI'] = undefined; export default File; - diff --git a/samples/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js index 1b343c6835b3..d63aae8c30b6 100644 --- a/samples/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js +++ b/samples/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js @@ -102,4 +102,3 @@ FileSchemaTestClass.prototype['files'] = undefined; export default FileSchemaTestClass; - diff --git a/samples/client/petstore/javascript-es6/src/model/Foo.js b/samples/client/petstore/javascript-es6/src/model/Foo.js index e808b774ec01..3705305e4e29 100644 --- a/samples/client/petstore/javascript-es6/src/model/Foo.js +++ b/samples/client/petstore/javascript-es6/src/model/Foo.js @@ -86,4 +86,3 @@ Foo.prototype['bar'] = 'bar'; export default Foo; - diff --git a/samples/client/petstore/javascript-es6/src/model/FooGetDefaultResponse.js b/samples/client/petstore/javascript-es6/src/model/FooGetDefaultResponse.js index b11d88593719..f5a031a6c66a 100644 --- a/samples/client/petstore/javascript-es6/src/model/FooGetDefaultResponse.js +++ b/samples/client/petstore/javascript-es6/src/model/FooGetDefaultResponse.js @@ -85,4 +85,3 @@ FooGetDefaultResponse.prototype['string'] = undefined; export default FooGetDefaultResponse; - diff --git a/samples/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-es6/src/model/FormatTest.js index 7205c80e6970..1a5485760538 100644 --- a/samples/client/petstore/javascript-es6/src/model/FormatTest.js +++ b/samples/client/petstore/javascript-es6/src/model/FormatTest.js @@ -236,4 +236,3 @@ FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; export default FormatTest; - diff --git a/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js index 90943b87aef2..2fce4c03ccb6 100644 --- a/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js +++ b/samples/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js @@ -96,4 +96,3 @@ HasOnlyReadOnly.prototype['foo'] = undefined; export default HasOnlyReadOnly; - diff --git a/samples/client/petstore/javascript-es6/src/model/HealthCheckStatus.js b/samples/client/petstore/javascript-es6/src/model/HealthCheckStatus.js index 6299516cbbd8..c65e500cc505 100644 --- a/samples/client/petstore/javascript-es6/src/model/HealthCheckStatus.js +++ b/samples/client/petstore/javascript-es6/src/model/HealthCheckStatus.js @@ -85,4 +85,3 @@ HealthCheckStatus.prototype['NullableMessage'] = undefined; export default HealthCheckStatus; - diff --git a/samples/client/petstore/javascript-es6/src/model/List.js b/samples/client/petstore/javascript-es6/src/model/List.js index ca916761c0fe..a84c29ec5e42 100644 --- a/samples/client/petstore/javascript-es6/src/model/List.js +++ b/samples/client/petstore/javascript-es6/src/model/List.js @@ -84,4 +84,3 @@ List.prototype['123-list'] = undefined; export default List; - diff --git a/samples/client/petstore/javascript-es6/src/model/MapTest.js b/samples/client/petstore/javascript-es6/src/model/MapTest.js index 478e2347fa79..806df7f056b0 100644 --- a/samples/client/petstore/javascript-es6/src/model/MapTest.js +++ b/samples/client/petstore/javascript-es6/src/model/MapTest.js @@ -123,6 +123,4 @@ MapTest['InnerEnum'] = { }; - export default MapTest; - diff --git a/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js index 8131fa362034..6eb3686efd13 100644 --- a/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js @@ -101,4 +101,3 @@ MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined; export default MixedPropertiesAndAdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-es6/src/model/Model200Response.js b/samples/client/petstore/javascript-es6/src/model/Model200Response.js index 604683735fc8..ac5227bd246f 100644 --- a/samples/client/petstore/javascript-es6/src/model/Model200Response.js +++ b/samples/client/petstore/javascript-es6/src/model/Model200Response.js @@ -93,4 +93,3 @@ Model200Response.prototype['class'] = undefined; export default Model200Response; - diff --git a/samples/client/petstore/javascript-es6/src/model/Name.js b/samples/client/petstore/javascript-es6/src/model/Name.js index cd7f0a692e71..a7070c448665 100644 --- a/samples/client/petstore/javascript-es6/src/model/Name.js +++ b/samples/client/petstore/javascript-es6/src/model/Name.js @@ -117,4 +117,3 @@ Name.prototype['123Number'] = undefined; export default Name; - diff --git a/samples/client/petstore/javascript-es6/src/model/NestedColor.js b/samples/client/petstore/javascript-es6/src/model/NestedColor.js index 5b611469036b..94a8f1db03a6 100644 --- a/samples/client/petstore/javascript-es6/src/model/NestedColor.js +++ b/samples/client/petstore/javascript-es6/src/model/NestedColor.js @@ -93,4 +93,3 @@ NestedColor.prototype['nested'] = undefined; export default NestedColor; - diff --git a/samples/client/petstore/javascript-es6/src/model/NestedOneOf.js b/samples/client/petstore/javascript-es6/src/model/NestedOneOf.js index 3ea6ed798b71..e5c83a1498eb 100644 --- a/samples/client/petstore/javascript-es6/src/model/NestedOneOf.js +++ b/samples/client/petstore/javascript-es6/src/model/NestedOneOf.js @@ -93,4 +93,3 @@ NestedOneOf.prototype['nested_pig'] = undefined; export default NestedOneOf; - diff --git a/samples/client/petstore/javascript-es6/src/model/NullableClass.js b/samples/client/petstore/javascript-es6/src/model/NullableClass.js index 33dd77a18201..abd69212fee6 100644 --- a/samples/client/petstore/javascript-es6/src/model/NullableClass.js +++ b/samples/client/petstore/javascript-es6/src/model/NullableClass.js @@ -188,4 +188,3 @@ NullableClass.prototype['object_items_nullable'] = undefined; export default NullableClass; - diff --git a/samples/client/petstore/javascript-es6/src/model/NumberOnly.js b/samples/client/petstore/javascript-es6/src/model/NumberOnly.js index deb4f2961f62..15859d536a08 100644 --- a/samples/client/petstore/javascript-es6/src/model/NumberOnly.js +++ b/samples/client/petstore/javascript-es6/src/model/NumberOnly.js @@ -80,4 +80,3 @@ NumberOnly.prototype['JustNumber'] = undefined; export default NumberOnly; - diff --git a/samples/client/petstore/javascript-es6/src/model/ObjectWithDeprecatedFields.js b/samples/client/petstore/javascript-es6/src/model/ObjectWithDeprecatedFields.js index 29e80fd26648..eb81654436a7 100644 --- a/samples/client/petstore/javascript-es6/src/model/ObjectWithDeprecatedFields.js +++ b/samples/client/petstore/javascript-es6/src/model/ObjectWithDeprecatedFields.js @@ -117,4 +117,3 @@ ObjectWithDeprecatedFields.prototype['bars'] = undefined; export default ObjectWithDeprecatedFields; - diff --git a/samples/client/petstore/javascript-es6/src/model/Order.js b/samples/client/petstore/javascript-es6/src/model/Order.js index 0568b4733150..179d7fc89142 100644 --- a/samples/client/petstore/javascript-es6/src/model/Order.js +++ b/samples/client/petstore/javascript-es6/src/model/Order.js @@ -152,6 +152,4 @@ Order['StatusEnum'] = { }; - export default Order; - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterComposite.js b/samples/client/petstore/javascript-es6/src/model/OuterComposite.js index 1c6a3c9a8579..a324d9ff71fa 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterComposite.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterComposite.js @@ -100,4 +100,3 @@ OuterComposite.prototype['my_boolean'] = undefined; export default OuterComposite; - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnum.js b/samples/client/petstore/javascript-es6/src/model/OuterEnum.js index 12fdff98026b..200bf20812e8 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterEnum.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnum.js @@ -50,4 +50,3 @@ export default class OuterEnum { return object; } } - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js index a65b1dd0a6be..9b13a19aa602 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js index b6fc29568a02..9d6ce1056751 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumInteger.js @@ -50,4 +50,3 @@ export default class OuterEnumInteger { return object; } } - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js index 86a9d6b9467e..0e43feb22d1d 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumIntegerDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-es6/src/model/OuterObjectWithEnumProperty.js b/samples/client/petstore/javascript-es6/src/model/OuterObjectWithEnumProperty.js index 04fe08cbbf14..09551cf7e5d6 100644 --- a/samples/client/petstore/javascript-es6/src/model/OuterObjectWithEnumProperty.js +++ b/samples/client/petstore/javascript-es6/src/model/OuterObjectWithEnumProperty.js @@ -89,4 +89,3 @@ OuterObjectWithEnumProperty.prototype['value'] = undefined; export default OuterObjectWithEnumProperty; - diff --git a/samples/client/petstore/javascript-es6/src/model/Pet.js b/samples/client/petstore/javascript-es6/src/model/Pet.js index ffe0b6598794..d4c757e76ac1 100644 --- a/samples/client/petstore/javascript-es6/src/model/Pet.js +++ b/samples/client/petstore/javascript-es6/src/model/Pet.js @@ -184,6 +184,4 @@ Pet['StatusEnum'] = { }; - export default Pet; - diff --git a/samples/client/petstore/javascript-es6/src/model/Pig.js b/samples/client/petstore/javascript-es6/src/model/Pig.js index 222a3e27d413..be2f0c1f5df2 100644 --- a/samples/client/petstore/javascript-es6/src/model/Pig.js +++ b/samples/client/petstore/javascript-es6/src/model/Pig.js @@ -140,4 +140,3 @@ Pig.prototype['size'] = undefined; Pig.OneOf = ["BasquePig", "DanishPig"]; export default Pig; - diff --git a/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js index b0fa7628f16d..22371d2c6f38 100644 --- a/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js +++ b/samples/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js @@ -96,4 +96,3 @@ ReadOnlyFirst.prototype['baz'] = undefined; export default ReadOnlyFirst; - diff --git a/samples/client/petstore/javascript-es6/src/model/Return.js b/samples/client/petstore/javascript-es6/src/model/Return.js index 616574b5fc32..11f7e3e3f49e 100644 --- a/samples/client/petstore/javascript-es6/src/model/Return.js +++ b/samples/client/petstore/javascript-es6/src/model/Return.js @@ -81,4 +81,3 @@ Return.prototype['return'] = undefined; export default Return; - diff --git a/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js b/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js index b9ece722920f..c2d9e26c4e59 100644 --- a/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js +++ b/samples/client/petstore/javascript-es6/src/model/SpecialModelName.js @@ -80,4 +80,3 @@ SpecialModelName.prototype['$special[property.name]'] = undefined; export default SpecialModelName; - diff --git a/samples/client/petstore/javascript-es6/src/model/StringOrBoolean.js b/samples/client/petstore/javascript-es6/src/model/StringOrBoolean.js index 029e14e41a72..f86a6169a534 100644 --- a/samples/client/petstore/javascript-es6/src/model/StringOrBoolean.js +++ b/samples/client/petstore/javascript-es6/src/model/StringOrBoolean.js @@ -116,4 +116,3 @@ class StringOrBoolean { StringOrBoolean.OneOf = ["Boolean", "String"]; export default StringOrBoolean; - diff --git a/samples/client/petstore/javascript-es6/src/model/Tag.js b/samples/client/petstore/javascript-es6/src/model/Tag.js index c24706b827ef..6ac42574a909 100644 --- a/samples/client/petstore/javascript-es6/src/model/Tag.js +++ b/samples/client/petstore/javascript-es6/src/model/Tag.js @@ -92,4 +92,3 @@ Tag.prototype['name'] = undefined; export default Tag; - diff --git a/samples/client/petstore/javascript-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js b/samples/client/petstore/javascript-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js index b28db6e166fe..90e67fa74c89 100644 --- a/samples/client/petstore/javascript-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js +++ b/samples/client/petstore/javascript-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js @@ -88,4 +88,3 @@ TestInlineFreeformAdditionalPropertiesRequest.prototype['someProperty'] = undefi export default TestInlineFreeformAdditionalPropertiesRequest; - diff --git a/samples/client/petstore/javascript-es6/src/model/User.js b/samples/client/petstore/javascript-es6/src/model/User.js index 145851f479b0..b31d8ce5cdc2 100644 --- a/samples/client/petstore/javascript-es6/src/model/User.js +++ b/samples/client/petstore/javascript-es6/src/model/User.js @@ -161,4 +161,3 @@ User.prototype['userStatus'] = undefined; export default User; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js index 3849c00c5958..6053ed1c927d 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/AdditionalPropertiesClass.js @@ -88,4 +88,3 @@ AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined; export default AdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Animal.js b/samples/client/petstore/javascript-promise-es6/src/model/Animal.js index f780272847ef..f07600c3f346 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Animal.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Animal.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Animal; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js b/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js index 6db561122f13..9e6527ecdf76 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ApiResponse.js @@ -104,4 +104,3 @@ ApiResponse.prototype['message'] = undefined; export default ApiResponse; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js index 461c6b5b35bd..39ad22365e4e 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined; export default ArrayOfArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js index 4c2513c10763..b723a5903077 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayOfNumberOnly.js @@ -84,4 +84,3 @@ ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined; export default ArrayOfNumberOnly; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js b/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js index 3fc3c9b7f926..eb54fd95503e 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ArrayTest.js @@ -109,4 +109,3 @@ ArrayTest.prototype['array_array_of_model'] = undefined; export default ArrayTest; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/BasquePig.js b/samples/client/petstore/javascript-promise-es6/src/model/BasquePig.js index 285ee12ca46d..c76c55ae71eb 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/BasquePig.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/BasquePig.js @@ -106,4 +106,3 @@ BasquePig.prototype['color'] = undefined; export default BasquePig; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js b/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js index cf4ef4348ace..14c69308cb76 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Capitalization.js @@ -145,4 +145,3 @@ Capitalization.prototype['ATT_NAME'] = undefined; export default Capitalization; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Cat.js b/samples/client/petstore/javascript-promise-es6/src/model/Cat.js index cfb0892ce412..e72d11f3bc30 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Cat.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Cat.js @@ -102,4 +102,3 @@ Animal.prototype['color'] = 'red'; export default Cat; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Category.js b/samples/client/petstore/javascript-promise-es6/src/model/Category.js index 829ecab0037e..ef1164424783 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Category.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Category.js @@ -101,4 +101,3 @@ Category.prototype['name'] = 'default-name'; export default Category; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js b/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js index ba614443ebfb..38bf66263381 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ClassModel.js @@ -85,4 +85,3 @@ ClassModel.prototype['_class'] = undefined; export default ClassModel; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Client.js b/samples/client/petstore/javascript-promise-es6/src/model/Client.js index 4089ff37ee67..83dfb4c80497 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Client.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Client.js @@ -84,4 +84,3 @@ Client.prototype['client'] = undefined; export default Client; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Color.js b/samples/client/petstore/javascript-promise-es6/src/model/Color.js index 70daad82ce65..c93c8ed92964 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Color.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Color.js @@ -161,4 +161,3 @@ class Color { Color.OneOf = ["String", "[Number]"]; export default Color; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/DanishPig.js b/samples/client/petstore/javascript-promise-es6/src/model/DanishPig.js index 43cb640921a9..6a3458ae9d53 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/DanishPig.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/DanishPig.js @@ -102,4 +102,3 @@ DanishPig.prototype['size'] = undefined; export default DanishPig; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/DeprecatedObject.js b/samples/client/petstore/javascript-promise-es6/src/model/DeprecatedObject.js index d7c874345f1d..c103ffe6cf25 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/DeprecatedObject.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/DeprecatedObject.js @@ -84,4 +84,3 @@ DeprecatedObject.prototype['name'] = undefined; export default DeprecatedObject; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Dog.js b/samples/client/petstore/javascript-promise-es6/src/model/Dog.js index 5397bb99d328..41538d4ccc35 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Dog.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Dog.js @@ -106,4 +106,3 @@ Animal.prototype['color'] = 'red'; export default Dog; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js index 2289689e3498..b631496edb93 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumArrays.js @@ -114,7 +114,6 @@ EnumArrays['JustSymbolEnum'] = { "DOLLAR": "$" }; - /** * Allowed values for the arrayEnum property. * @enum {String} @@ -136,6 +135,4 @@ EnumArrays['ArrayEnumEnum'] = { }; - export default EnumArrays; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js index f0888e52d5ba..ebee1f6e8294 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumClass.js @@ -50,4 +50,3 @@ export default class EnumClass { return object; } } - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js index 708e37e4ac6e..8f1ab6bc8a08 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js @@ -180,7 +180,6 @@ EnumTest['EnumStringEnum'] = { "empty": "" }; - /** * Allowed values for the enum_string_required property. * @enum {String} @@ -207,7 +206,6 @@ EnumTest['EnumStringRequiredEnum'] = { "empty": "" }; - /** * Allowed values for the enum_integer property. * @enum {Number} @@ -228,7 +226,6 @@ EnumTest['EnumIntegerEnum'] = { "-1": -1 }; - /** * Allowed values for the enum_number property. * @enum {Number} @@ -250,6 +247,4 @@ EnumTest['EnumNumberEnum'] = { }; - export default EnumTest; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/File.js b/samples/client/petstore/javascript-promise-es6/src/model/File.js index 5f5c9547a1fa..a8cf8bd152b0 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/File.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/File.js @@ -86,4 +86,3 @@ File.prototype['sourceURI'] = undefined; export default File; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/FileSchemaTestClass.js b/samples/client/petstore/javascript-promise-es6/src/model/FileSchemaTestClass.js index 1b343c6835b3..d63aae8c30b6 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/FileSchemaTestClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/FileSchemaTestClass.js @@ -102,4 +102,3 @@ FileSchemaTestClass.prototype['files'] = undefined; export default FileSchemaTestClass; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Foo.js b/samples/client/petstore/javascript-promise-es6/src/model/Foo.js index e808b774ec01..3705305e4e29 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Foo.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Foo.js @@ -86,4 +86,3 @@ Foo.prototype['bar'] = 'bar'; export default Foo; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/FooGetDefaultResponse.js b/samples/client/petstore/javascript-promise-es6/src/model/FooGetDefaultResponse.js index b11d88593719..f5a031a6c66a 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/FooGetDefaultResponse.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/FooGetDefaultResponse.js @@ -85,4 +85,3 @@ FooGetDefaultResponse.prototype['string'] = undefined; export default FooGetDefaultResponse; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js index 7205c80e6970..1a5485760538 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/FormatTest.js @@ -236,4 +236,3 @@ FormatTest.prototype['pattern_with_digits_and_delimiter'] = undefined; export default FormatTest; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js index 90943b87aef2..2fce4c03ccb6 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/HasOnlyReadOnly.js @@ -96,4 +96,3 @@ HasOnlyReadOnly.prototype['foo'] = undefined; export default HasOnlyReadOnly; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js index 112fd7784265..922e9b3292a1 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/HealthCheckResult.js @@ -85,4 +85,3 @@ HealthCheckResult.prototype['NullableMessage'] = undefined; export default HealthCheckResult; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/List.js b/samples/client/petstore/javascript-promise-es6/src/model/List.js index ca916761c0fe..a84c29ec5e42 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/List.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/List.js @@ -84,4 +84,3 @@ List.prototype['123-list'] = undefined; export default List; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js b/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js index 478e2347fa79..806df7f056b0 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/MapTest.js @@ -123,6 +123,4 @@ MapTest['InnerEnum'] = { }; - export default MapTest; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js index 8131fa362034..6eb3686efd13 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js @@ -101,4 +101,3 @@ MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined; export default MixedPropertiesAndAdditionalPropertiesClass; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js b/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js index 604683735fc8..ac5227bd246f 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Model200Response.js @@ -93,4 +93,3 @@ Model200Response.prototype['class'] = undefined; export default Model200Response; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Name.js b/samples/client/petstore/javascript-promise-es6/src/model/Name.js index cd7f0a692e71..a7070c448665 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Name.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Name.js @@ -117,4 +117,3 @@ Name.prototype['123Number'] = undefined; export default Name; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/NestedColor.js b/samples/client/petstore/javascript-promise-es6/src/model/NestedColor.js index 5b611469036b..94a8f1db03a6 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/NestedColor.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/NestedColor.js @@ -93,4 +93,3 @@ NestedColor.prototype['nested'] = undefined; export default NestedColor; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/NestedOneOf.js b/samples/client/petstore/javascript-promise-es6/src/model/NestedOneOf.js index 3ea6ed798b71..e5c83a1498eb 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/NestedOneOf.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/NestedOneOf.js @@ -93,4 +93,3 @@ NestedOneOf.prototype['nested_pig'] = undefined; export default NestedOneOf; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js b/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js index 33dd77a18201..abd69212fee6 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/NullableClass.js @@ -188,4 +188,3 @@ NullableClass.prototype['object_items_nullable'] = undefined; export default NullableClass; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js b/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js index deb4f2961f62..15859d536a08 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/NumberOnly.js @@ -80,4 +80,3 @@ NumberOnly.prototype['JustNumber'] = undefined; export default NumberOnly; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ObjectWithDeprecatedFields.js b/samples/client/petstore/javascript-promise-es6/src/model/ObjectWithDeprecatedFields.js index 29e80fd26648..eb81654436a7 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ObjectWithDeprecatedFields.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ObjectWithDeprecatedFields.js @@ -117,4 +117,3 @@ ObjectWithDeprecatedFields.prototype['bars'] = undefined; export default ObjectWithDeprecatedFields; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Order.js b/samples/client/petstore/javascript-promise-es6/src/model/Order.js index 0568b4733150..179d7fc89142 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Order.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Order.js @@ -152,6 +152,4 @@ Order['StatusEnum'] = { }; - export default Order; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js index 1c6a3c9a8579..a324d9ff71fa 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterComposite.js @@ -100,4 +100,3 @@ OuterComposite.prototype['my_boolean'] = undefined; export default OuterComposite; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js index 12fdff98026b..200bf20812e8 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnum.js @@ -50,4 +50,3 @@ export default class OuterEnum { return object; } } - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js index a65b1dd0a6be..9b13a19aa602 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js index b6fc29568a02..9d6ce1056751 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumInteger.js @@ -50,4 +50,3 @@ export default class OuterEnumInteger { return object; } } - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js index 86a9d6b9467e..0e43feb22d1d 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterEnumIntegerDefaultValue.js @@ -50,4 +50,3 @@ export default class OuterEnumIntegerDefaultValue { return object; } } - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/OuterObjectWithEnumProperty.js b/samples/client/petstore/javascript-promise-es6/src/model/OuterObjectWithEnumProperty.js index 04fe08cbbf14..09551cf7e5d6 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/OuterObjectWithEnumProperty.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/OuterObjectWithEnumProperty.js @@ -89,4 +89,3 @@ OuterObjectWithEnumProperty.prototype['value'] = undefined; export default OuterObjectWithEnumProperty; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Pet.js b/samples/client/petstore/javascript-promise-es6/src/model/Pet.js index ffe0b6598794..d4c757e76ac1 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Pet.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Pet.js @@ -184,6 +184,4 @@ Pet['StatusEnum'] = { }; - export default Pet; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Pig.js b/samples/client/petstore/javascript-promise-es6/src/model/Pig.js index 222a3e27d413..be2f0c1f5df2 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Pig.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Pig.js @@ -140,4 +140,3 @@ Pig.prototype['size'] = undefined; Pig.OneOf = ["BasquePig", "DanishPig"]; export default Pig; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js b/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js index b0fa7628f16d..22371d2c6f38 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/ReadOnlyFirst.js @@ -96,4 +96,3 @@ ReadOnlyFirst.prototype['baz'] = undefined; export default ReadOnlyFirst; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Return.js b/samples/client/petstore/javascript-promise-es6/src/model/Return.js index 616574b5fc32..11f7e3e3f49e 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Return.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Return.js @@ -81,4 +81,3 @@ Return.prototype['return'] = undefined; export default Return; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js b/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js index b9ece722920f..c2d9e26c4e59 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/SpecialModelName.js @@ -80,4 +80,3 @@ SpecialModelName.prototype['$special[property.name]'] = undefined; export default SpecialModelName; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/StringOrBoolean.js b/samples/client/petstore/javascript-promise-es6/src/model/StringOrBoolean.js index 029e14e41a72..f86a6169a534 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/StringOrBoolean.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/StringOrBoolean.js @@ -116,4 +116,3 @@ class StringOrBoolean { StringOrBoolean.OneOf = ["Boolean", "String"]; export default StringOrBoolean; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/Tag.js b/samples/client/petstore/javascript-promise-es6/src/model/Tag.js index c24706b827ef..6ac42574a909 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/Tag.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/Tag.js @@ -92,4 +92,3 @@ Tag.prototype['name'] = undefined; export default Tag; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js b/samples/client/petstore/javascript-promise-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js index b28db6e166fe..90e67fa74c89 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/TestInlineFreeformAdditionalPropertiesRequest.js @@ -88,4 +88,3 @@ TestInlineFreeformAdditionalPropertiesRequest.prototype['someProperty'] = undefi export default TestInlineFreeformAdditionalPropertiesRequest; - diff --git a/samples/client/petstore/javascript-promise-es6/src/model/User.js b/samples/client/petstore/javascript-promise-es6/src/model/User.js index 145851f479b0..b31d8ce5cdc2 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/User.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/User.js @@ -161,4 +161,3 @@ User.prototype['userStatus'] = undefined; export default User; - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Category.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Category.java index dccf1f3db9c5..ef4be974003b 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Category.java @@ -94,4 +94,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/ModelApiResponse.java index af32c823d47a..e6056f419182 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -118,4 +118,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Order.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Order.java index 327e990d676d..e07f5915cfea 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Order.java @@ -227,4 +227,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Pet.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Pet.java index 4b8f9a1b9e6c..53375f6855bc 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Pet.java @@ -241,4 +241,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Tag.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Tag.java index 9c011ae12b41..a22a5331024e 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/Tag.java @@ -94,4 +94,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/User.java b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/User.java index 001a0b7437b4..1ee2532b13a5 100644 --- a/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/User.java +++ b/samples/client/petstore/jaxrs-cxf-client-jackson/src/gen/java/org/openapitools/model/User.java @@ -235,4 +235,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java index dccf1f3db9c5..ef4be974003b 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Category.java @@ -94,4 +94,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java index 43e7bd9e4329..a2148a9e92a4 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -117,4 +117,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java index ab98465791c0..cafebff6d3c5 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Order.java @@ -223,4 +223,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java index 73502e93895f..f3f5d2578166 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Pet.java @@ -237,4 +237,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java index 9c011ae12b41..a22a5331024e 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/Tag.java @@ -94,4 +94,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java index 001a0b7437b4..1ee2532b13a5 100644 --- a/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java +++ b/samples/client/petstore/jaxrs-cxf-client/src/gen/java/org/openapitools/model/User.java @@ -235,4 +235,3 @@ private static String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } } - diff --git a/samples/client/petstore/julia/src/models/model_ApiResponse.jl b/samples/client/petstore/julia/src/models/model_ApiResponse.jl index 107fab6677fb..f41b1e526623 100644 --- a/samples/client/petstore/julia/src/models/model_ApiResponse.jl +++ b/samples/client/petstore/julia/src/models/model_ApiResponse.jl @@ -39,4 +39,4 @@ function OpenAPI.validate_property(::Type{ ApiResponse }, name::Symbol, val) if name === Symbol("code") OpenAPI.validate_param(name, "ApiResponse", :format, val, "int32") end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_Category.jl b/samples/client/petstore/julia/src/models/model_Category.jl index bd583ab337c3..a0b743d9ee77 100644 --- a/samples/client/petstore/julia/src/models/model_Category.jl +++ b/samples/client/petstore/julia/src/models/model_Category.jl @@ -38,4 +38,4 @@ function OpenAPI.validate_property(::Type{ Category }, name::Symbol, val) if name === Symbol("name") OpenAPI.validate_param(name, "Category", :pattern, val, r"^[a-zA-Z0-9]+[a-zA-Z0-9\.\-_]*[a-zA-Z0-9]+$") end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_MappedModel.jl b/samples/client/petstore/julia/src/models/model_MappedModel.jl index 94bf2fe52a1b..7b588dc959ec 100644 --- a/samples/client/petstore/julia/src/models/model_MappedModel.jl +++ b/samples/client/petstore/julia/src/models/model_MappedModel.jl @@ -38,4 +38,4 @@ function OpenAPI.validate_property(::Type{ MappedModel }, name::Symbol, val) if name === Symbol("uuid_default_value") OpenAPI.validate_param(name, "MappedModel", :format, val, "uuid") end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_Order.jl b/samples/client/petstore/julia/src/models/model_Order.jl index 9443890b17b5..9e3a9b13b89e 100644 --- a/samples/client/petstore/julia/src/models/model_Order.jl +++ b/samples/client/petstore/julia/src/models/model_Order.jl @@ -63,4 +63,4 @@ function OpenAPI.validate_property(::Type{ Order }, name::Symbol, val) if name === Symbol("status") OpenAPI.validate_param(name, "Order", :enum, val, ["placed", "approved", "delivered"]) end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_Pet.jl b/samples/client/petstore/julia/src/models/model_Pet.jl index 569a9326912d..e9cce85000ce 100644 --- a/samples/client/petstore/julia/src/models/model_Pet.jl +++ b/samples/client/petstore/julia/src/models/model_Pet.jl @@ -56,4 +56,4 @@ function OpenAPI.validate_property(::Type{ Pet }, name::Symbol, val) if name === Symbol("status") OpenAPI.validate_param(name, "Pet", :enum, val, ["available", "pending", "sold"]) end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_Tag.jl b/samples/client/petstore/julia/src/models/model_Tag.jl index f717688e9963..21ebed072842 100644 --- a/samples/client/petstore/julia/src/models/model_Tag.jl +++ b/samples/client/petstore/julia/src/models/model_Tag.jl @@ -35,4 +35,4 @@ function OpenAPI.validate_property(::Type{ Tag }, name::Symbol, val) if name === Symbol("id") OpenAPI.validate_param(name, "Tag", :format, val, "int64") end -end +end \ No newline at end of file diff --git a/samples/client/petstore/julia/src/models/model_User.jl b/samples/client/petstore/julia/src/models/model_User.jl index 5af0ccd94da4..b1df0c040b1e 100644 --- a/samples/client/petstore/julia/src/models/model_User.jl +++ b/samples/client/petstore/julia/src/models/model_User.jl @@ -62,4 +62,4 @@ function OpenAPI.validate_property(::Type{ User }, name::Symbol, val) if name === Symbol("userStatus") OpenAPI.validate_param(name, "User", :format, val, "int32") end -end +end \ No newline at end of file diff --git a/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Animal.kt b/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Animal.kt index 9382d5519b21..db7af45e0d2b 100644 --- a/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Animal.kt +++ b/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Animal.kt @@ -25,7 +25,6 @@ import com.squareup.moshi.JsonClass * @param id */ - interface Animal { @Json(name = "id") diff --git a/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Bird.kt b/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Bird.kt index c368f1fd260c..6ac6a1194d03 100644 --- a/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Bird.kt +++ b/samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Bird.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param featherType */ - data class Bird ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-bigdecimal-default-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-bigdecimal-default-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt index 463c7ccc6235..efb6d9f514ff 100644 --- a/samples/client/petstore/kotlin-bigdecimal-default-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-bigdecimal-default-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt @@ -31,7 +31,6 @@ import kotlinx.serialization.encoding.* * @param gepa */ @Serializable - data class Apa ( @SerialName(value = "bepa") @Required val bepa: kotlin.Double = (0).toDouble(), diff --git a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt index b4117ed35dab..287b5093a700 100644 --- a/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-bigdecimal-default-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param gepa */ - data class Apa ( @Json(name = "bepa") diff --git a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt index db786666d4d2..7b24d183bd84 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-default-values-jvm-okhttp4/src/main/kotlin/org/openapitools/client/models/Apa.kt @@ -28,7 +28,6 @@ import com.squareup.moshi.JsonClass * @param n1 */ - data class Apa ( @Json(name = "i0") diff --git a/samples/client/petstore/kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/models/Apa.kt index db786666d4d2..7b24d183bd84 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-default-values-jvm-retrofit2/src/main/kotlin/org/openapitools/client/models/Apa.kt @@ -28,7 +28,6 @@ import com.squareup.moshi.JsonClass * @param n1 */ - data class Apa ( @Json(name = "i0") diff --git a/samples/client/petstore/kotlin-default-values-jvm-volley/src/main/java/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-default-values-jvm-volley/src/main/java/org/openapitools/client/models/Apa.kt index 6e7e8e340b62..831294e3122c 100644 --- a/samples/client/petstore/kotlin-default-values-jvm-volley/src/main/java/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-default-values-jvm-volley/src/main/java/org/openapitools/client/models/Apa.kt @@ -29,7 +29,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param n1 */ - data class Apa ( @SerializedName("i0") diff --git a/samples/client/petstore/kotlin-default-values-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt b/samples/client/petstore/kotlin-default-values-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt index 3098a799784e..711a05ea498d 100644 --- a/samples/client/petstore/kotlin-default-values-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt +++ b/samples/client/petstore/kotlin-default-values-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Apa.kt @@ -29,7 +29,6 @@ import kotlinx.serialization.encoding.* * @param n1 */ @Serializable - data class Apa ( @SerialName(value = "i0") @Required val i0: kotlin.Int, diff --git a/samples/client/petstore/kotlin-default-values-numbers/src/main/kotlin/org/openapitools/client/models/ModelWithPropertyHavingDefault.kt b/samples/client/petstore/kotlin-default-values-numbers/src/main/kotlin/org/openapitools/client/models/ModelWithPropertyHavingDefault.kt index b6ef2973e113..fef96438e628 100644 --- a/samples/client/petstore/kotlin-default-values-numbers/src/main/kotlin/org/openapitools/client/models/ModelWithPropertyHavingDefault.kt +++ b/samples/client/petstore/kotlin-default-values-numbers/src/main/kotlin/org/openapitools/client/models/ModelWithPropertyHavingDefault.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param propertyDouble3 */ - data class ModelWithPropertyHavingDefault ( @SerializedName("propertyInt") diff --git a/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/ModelWithEnumPropertyHavingDefault.kt b/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/ModelWithEnumPropertyHavingDefault.kt index f870c3b38d89..90b809cacf09 100644 --- a/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/ModelWithEnumPropertyHavingDefault.kt +++ b/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/ModelWithEnumPropertyHavingDefault.kt @@ -26,7 +26,6 @@ import java.io.Serializable * @param propertyName */ - data class ModelWithEnumPropertyHavingDefault ( @Json(name = "propertyName") diff --git a/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/PropertyOfDay.kt b/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/PropertyOfDay.kt index d0acf89342c0..bcc04dfa7241 100644 --- a/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/PropertyOfDay.kt +++ b/samples/client/petstore/kotlin-enum-default-value/src/main/kotlin/org/openapitools/client/models/PropertyOfDay.kt @@ -31,7 +31,6 @@ import java.io.Serializable * @param holidayTypes Holiday types */ - data class PropertyOfDay ( /* Name of property of day */ diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt index 87eacb1365a5..e592503cd3d0 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Category ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index fe2d51d4ef04..5255fa553b88 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -26,7 +26,6 @@ import com.google.gson.annotations.SerializedName * @param message */ - data class ModelApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt index b9f182f53b53..900276239f23 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -29,7 +29,6 @@ import com.google.gson.annotations.SerializedName * @param complete */ - data class Order ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 57c97dd3d089..717d92ebf2fa 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param status pet status in the store */ - data class Pet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt index f66db9ea55e8..93bb9c3ab092 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Tag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt index 62b3ce81f9bf..bf3265fe4300 100644 --- a/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-gson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param userStatus User Status */ - data class User ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index 557527ac07db..afe3a4a47bc1 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index ba16885da8c0..b65d7f1ed904 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt index b1b4fcc5f20a..72e2249888f0 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -35,7 +35,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class Category ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 4cda49a253ac..e1bdf94cb8cd 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -36,7 +36,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class ModelApiResponse ( @SerialName(value = "code") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt index ea9cd7d4bbb7..b61b5638b7eb 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -39,7 +39,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class Order ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt index 16800beb37c0..b4c62dc79f25 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -41,7 +41,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class Pet ( @SerialName(value = "name") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt index 82c2b16be4ca..d660c9682ecd 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -35,7 +35,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class Tag ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt index 79dae9e05bc7..b87e025da532 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/models/User.kt @@ -41,7 +41,6 @@ import kotlinx.parcelize.Parcelize */ @Parcelize @Serializable - data class User ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index 25adfbd2e077..79613ce25091 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index ac0ae8c1a15c..8be95648f9e5 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Category.kt index 87eacb1365a5..e592503cd3d0 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Category ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index fe2d51d4ef04..5255fa553b88 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -26,7 +26,6 @@ import com.google.gson.annotations.SerializedName * @param message */ - data class ModelApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Order.kt index 156297028fcd..eef51ce9a744 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -29,7 +29,6 @@ import com.google.gson.annotations.SerializedName * @param complete */ - data class Order ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 47a0509474c8..de94ddd23d32 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param status pet status in the store */ - data class Pet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt index f66db9ea55e8..93bb9c3ab092 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Tag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/User.kt index 62b3ce81f9bf..bf3265fe4300 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-gson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param userStatus User Status */ - data class User ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index 25adfbd2e077..79613ce25091 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 5d23b6fba1da..f45befcbfd85 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt index 85657c5904fa..c4d5979a0680 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.Contextual * @param name */ @Serializable - data class Category ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 43078d5d1e27..28b959b8ac9a 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import kotlinx.serialization.Contextual * @param message */ @Serializable - data class ModelApiResponse ( @SerialName(value = "code") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt index dcd2e9a437e2..fe0275b9ea46 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import kotlinx.serialization.Contextual * @param complete */ @Serializable - data class Order ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt index bdc59355c723..54fb08258a52 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.Contextual * @param status pet status in the store */ @Serializable - data class Pet ( @SerialName(value = "name") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt index 25f4d9e01af1..a9fafc236b92 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.Contextual * @param name */ @Serializable - data class Tag ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt index 6e269aa599ee..fc8819f61071 100644 --- a/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.Contextual * @param userStatus User Status */ @Serializable - data class User ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index f2ee725a1b14..5ab2f25b3660 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import java.io.Serializable * @param name */ - data class Category ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index e810679725bb..2bdb78b3a3d9 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param message */ - data class ModelApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index 8cfb5fb3a393..d73a4d2b1df1 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import java.io.Serializable * @param complete */ - data class Order ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt index dbee7c39476c..40c2bec2a300 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import java.io.Serializable * @param status pet status in the store */ - data class Pet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index 9916a1564854..55c4fa6a1b77 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import java.io.Serializable * @param name */ - data class Tag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index a7e8121c0566..493ed5a450dd 100644 --- a/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-okhttp4-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import java.io.Serializable * @param userStatus User Status */ - data class User ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt index 25adfbd2e077..79613ce25091 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index ac0ae8c1a15c..8be95648f9e5 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-2-webclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt index 25adfbd2e077..79613ce25091 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index ac0ae8c1a15c..8be95648f9e5 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-restclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt index 1da41b886ac5..539379e4945e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a7d222512aa2..18c20b33b74f 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt index 25adfbd2e077..79613ce25091 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt index ac0ae8c1a15c..8be95648f9e5 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt index 84d478258958..c19d5158cc7b 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt index ed66cc045701..ff5a42f0978e 100644 --- a/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-spring-3-webclient/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Category.kt index 87eacb1365a5..e592503cd3d0 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Category ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index fe2d51d4ef04..5255fa553b88 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -26,7 +26,6 @@ import com.google.gson.annotations.SerializedName * @param message */ - data class ModelApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Order.kt index b9f182f53b53..900276239f23 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -29,7 +29,6 @@ import com.google.gson.annotations.SerializedName * @param complete */ - data class Order ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt index ee5d18ec9900..0c5a9cd30dfe 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param status pet status in the store */ - data class Pet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt index f66db9ea55e8..93bb9c3ab092 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -25,7 +25,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class Tag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/User.kt index 62b3ce81f9bf..bf3265fe4300 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-gson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -31,7 +31,6 @@ import com.google.gson.annotations.SerializedName * @param userStatus User Status */ - data class User ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt index 4a68d1a3ebd2..4f89b4f4576f 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 2583efc725f9..1e5b7a65744b 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt index c9c227da18e0..53c7bfc16ee0 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt index 43bacb547ed8..f3f36bec71d9 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt index 7a2db5f93296..4de290e4967b 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt index 6e28ef27d09e..10ea32b91de9 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines/src/main/kotlin/org/openapitools/client/models/User.kt @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index 4a68d1a3ebd2..4f89b4f4576f 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 2583efc725f9..1e5b7a65744b 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -26,7 +26,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index c9c227da18e0..53c7bfc16ee0 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -29,7 +29,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index 43bacb547ed8..f3f36bec71d9 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index 7a2db5f93296..4de290e4967b 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -25,7 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index 6e28ef27d09e..10ea32b91de9 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -31,7 +31,6 @@ import com.fasterxml.jackson.annotation.JsonProperty * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Category.kt index bca19d5c6901..00a755dffab5 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index ea6bc0a04f89..59a54c9f229c 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Order.kt index ecd257a433a8..e3dc8fbabd52 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Pet.kt index 0c70f0558c3a..8097e036454e 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Tag.kt index 54bbd138c488..1933772b63de 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/User.kt index 5115585d1a4f..a2c50e00899e 100644 --- a/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-vertx-moshi/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Category.kt index 46188c0bc687..b19694ad5831 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param name */ - data class Category ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/ModelApiResponse.kt index 8f0f3e89cf46..48a11c7f1c0a 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param message */ - data class ModelApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Order.kt index 4a6dfd6cc85c..6ce962a94e97 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param complete */ - data class Order ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Pet.kt index 07c67fa9ea87..1cea9d36a03f 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param status pet status in the store */ - data class Pet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Tag.kt index 0afafa73777f..0db302bd2698 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param name */ - data class Tag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/User.kt index 2cec836e1f24..8f992768d98b 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import org.openapitools.client.infrastructure.ITransformForStorage * @param userStatus User Status */ - data class User ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/request/RequestFactory.kt b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/request/RequestFactory.kt index 87d83e3a44a0..bbaac85799f6 100644 --- a/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/request/RequestFactory.kt +++ b/samples/client/petstore/kotlin-jvm-volley/src/main/java/org/openapitools/client/request/RequestFactory.kt @@ -13,28 +13,26 @@ import java.util.UUID class RequestFactory(private val headerFactories : List<() -> Map> = listOf(), private val postProcessors :List <(Request<*>) -> Unit> = listOf(), private val gsonAdapters: Map = mapOf()): IRequestFactory { companion object Authentication { - // Where a header factory requires parameters a client will need to bind these - // TODO Generate appropriate header factories based on settings - // TODO: Oauth not implemented yet - comment out below as OAuth does not exist - // Api Key auth supports query header and cookie. - // Query is supported in the path generation only with a hardcoded value. - // TODO: Not sure about cookie auth form - // If implementing api key in query parameter use the ^isKeyInHeader property - - val apiKeyAuthHeaderFactoryBuilder = { - paramName: String, apiKeyPrefix: String?, apiKey: String? -> { - mapOf(paramName to - if (apiKeyPrefix != null) { - "$apiKeyPrefix $apiKey" - } else { - apiKey!! - } - ) - } - } - - } - + // Where a header factory requires parameters a client will need to bind these + // TODO Generate appropriate header factories based on settings + // TODO: Oauth not implemented yet - comment out below as OAuth does not exist + // Api Key auth supports query header and cookie. + // Query is supported in the path generation only with a hardcoded value. + // TODO: Not sure about cookie auth form + // If implementing api key in query parameter use the ^isKeyInHeader property + + val apiKeyAuthHeaderFactoryBuilder = { + paramName: String, apiKeyPrefix: String?, apiKey: String? -> { + mapOf(paramName to + if (apiKeyPrefix != null) { + "$apiKeyPrefix $apiKey" + } else { + apiKey!! + } + ) + } + } + } /** * {@inheritDoc} diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Category.kt index bca19d5c6901..00a755dffab5 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index ea6bc0a04f89..59a54c9f229c 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Order.kt index 17e3942b9e65..5e70ee84f769 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Pet.kt index 502297c92b0e..2905d7f0b9ec 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Tag.kt index 54bbd138c488..1933772b63de 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/User.kt index 5115585d1a4f..a2c50e00899e 100644 --- a/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-kotlinx-datetime/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnnotation.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnnotation.kt index bd33ca92746f..90b297dad16e 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnnotation.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnnotation.kt @@ -33,7 +33,6 @@ import com.google.gson.annotations.SerializedName * @param id */ - data class ApiAnnotation ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPet.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPet.kt index 3d523a450eac..98d3b07ddca3 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPet.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPet.kt @@ -36,7 +36,6 @@ import java.io.IOException * */ - data class ApiAnyOfUserOrPet(var actualInstance: Any? = null) { class CustomTypeAdapterFactory : TypeAdapterFactory { diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPetOrArrayString.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPetOrArrayString.kt index 1ec7549f45c0..9093672b580c 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPetOrArrayString.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiAnyOfUserOrPetOrArrayString.kt @@ -36,7 +36,6 @@ import java.io.IOException * */ - data class ApiAnyOfUserOrPetOrArrayString(var actualInstance: Any? = null) { class CustomTypeAdapterFactory : TypeAdapterFactory { diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiApiResponse.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiApiResponse.kt index 018bb458a120..d6840b92b04c 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiApiResponse.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiApiResponse.kt @@ -35,7 +35,6 @@ import com.google.gson.annotations.SerializedName * @param message */ - data class ApiApiResponse ( @SerializedName("code") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt index 4d2ab888bb38..fd14f4967570 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiCategory.kt @@ -34,7 +34,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class ApiCategory ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiOrder.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiOrder.kt index af39fc31cfc6..c07b84a5b4ea 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiOrder.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiOrder.kt @@ -38,7 +38,6 @@ import com.google.gson.annotations.SerializedName * @param complete */ - data class ApiOrder ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt index 35871da8730d..d6301b1e5a4b 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiPet.kt @@ -40,7 +40,6 @@ import com.google.gson.annotations.SerializedName * @param status pet status in the store */ - data class ApiPet ( @SerializedName("name") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt index 8f4b05dcd09d..7ff3663ffdf7 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiTag.kt @@ -34,7 +34,6 @@ import com.google.gson.annotations.SerializedName * @param name */ - data class ApiTag ( @SerializedName("id") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUser.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUser.kt index d47f6636a72a..e66b2cb1b18c 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUser.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUser.kt @@ -40,7 +40,6 @@ import com.google.gson.annotations.SerializedName * @param userStatus User Status */ - data class ApiUser ( @SerializedName("username") diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPet.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPet.kt index 372906b0e56b..2971b4e12e8b 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPet.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPet.kt @@ -36,7 +36,6 @@ import java.io.IOException * */ - data class ApiUserOrPet(var actualInstance: Any? = null) { class CustomTypeAdapterFactory : TypeAdapterFactory { diff --git a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPetOrArrayString.kt b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPetOrArrayString.kt index 009b3bef5230..5fed6974d35c 100644 --- a/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPetOrArrayString.kt +++ b/samples/client/petstore/kotlin-model-prefix-type-mappings/src/main/kotlin/org/openapitools/client/models/ApiUserOrPetOrArrayString.kt @@ -36,7 +36,6 @@ import java.io.IOException * */ - data class ApiUserOrPetOrArrayString(var actualInstance: Any? = null) { class CustomTypeAdapterFactory : TypeAdapterFactory { diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Category.kt index 4f64b7bdf568..5413494ec972 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index f0c2ca6dee3b..a2459901b5aa 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Order.kt index 7113fcaee15f..e90fb9cab5c6 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Pet.kt index 9b8aa326815c..d8be0c50f7d3 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Tag.kt index 93cdeaee6dce..1fae566358d7 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/User.kt index 9fc531984e90..363619f6cf9c 100644 --- a/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-modelMutable/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt index db0be0cf30d8..03e32cf68d54 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ @JsonClass(generateAdapter = true) - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index 60fb214fc001..4f11e46f5f9b 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ @JsonClass(generateAdapter = true) - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt index df61b819dd14..cb8995c6b28e 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ @JsonClass(generateAdapter = true) - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt index de5f7897c59c..9c1b743fd85b 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ @JsonClass(generateAdapter = true) - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt index b02ad29b9707..d128764b7c65 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ @JsonClass(generateAdapter = true) - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt index c7884e6d2765..0adbe331df8b 100644 --- a/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-moshi-codegen/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ @JsonClass(generateAdapter = true) - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt index ec709473d75a..de9efca10134 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt @@ -169,7 +169,6 @@ open class PetApi : ApiClient { override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) } } - /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -212,7 +211,6 @@ open class PetApi : ApiClient { override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) } } - /** * Find pet by ID * Returns a single pet diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt index 83a909297ee7..ce282a670da5 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -114,7 +114,6 @@ open class StoreApi : ApiClient { override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) } } - /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Category.kt index 9bc832793cbf..02326f33be68 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.encoding.* * @param name */ @Serializable - data class Category ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt index df786952b428..e2c8306f0fce 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import kotlinx.serialization.encoding.* * @param message */ @Serializable - data class ModelApiResponse ( @SerialName(value = "code") val code: kotlin.Int? = null, diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Order.kt index e763dafa5395..42682d5b19d3 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import kotlinx.serialization.encoding.* * @param complete */ @Serializable - data class Order ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt index cd3c3adaec29..6dbb3b965e64 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.encoding.* * @param status pet status in the store */ @Serializable - data class Pet ( @SerialName(value = "name") @Required val name: kotlin.String, diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt index 46af3323fd26..045fdee9c405 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.encoding.* * @param name */ @Serializable - data class Tag ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/User.kt index 18a1d52df683..515b24d13953 100644 --- a/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-multiplatform-kotlinx-datetime/src/commonMain/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.encoding.* * @param userStatus User Status */ @Serializable - data class User ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt index ec709473d75a..de9efca10134 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt @@ -169,7 +169,6 @@ open class PetApi : ApiClient { override fun deserialize(decoder: Decoder) = FindPetsByStatusResponse(serializer.deserialize(decoder)) } } - /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -212,7 +211,6 @@ open class PetApi : ApiClient { override fun deserialize(decoder: Decoder) = FindPetsByTagsResponse(serializer.deserialize(decoder)) } } - /** * Find pet by ID * Returns a single pet diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt index 83a909297ee7..ce282a670da5 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt @@ -114,7 +114,6 @@ open class StoreApi : ApiClient { override fun deserialize(decoder: Decoder) = GetInventoryResponse(serializer.deserialize(decoder)) } } - /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt index 9bc832793cbf..02326f33be68 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.encoding.* * @param name */ @Serializable - data class Category ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt index df786952b428..e2c8306f0fce 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import kotlinx.serialization.encoding.* * @param message */ @Serializable - data class ModelApiResponse ( @SerialName(value = "code") val code: kotlin.Int? = null, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt index e763dafa5395..42682d5b19d3 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import kotlinx.serialization.encoding.* * @param complete */ @Serializable - data class Order ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt index cd3c3adaec29..6dbb3b965e64 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.encoding.* * @param status pet status in the store */ @Serializable - data class Pet ( @SerialName(value = "name") @Required val name: kotlin.String, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt index 46af3323fd26..045fdee9c405 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import kotlinx.serialization.encoding.* * @param name */ @Serializable - data class Tag ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt index 18a1d52df683..515b24d13953 100644 --- a/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import kotlinx.serialization.encoding.* * @param userStatus User Status */ @Serializable - data class User ( @SerialName(value = "id") val id: kotlin.Long? = null, diff --git a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/Environment.kt b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/Environment.kt index 2f296143a654..d34ca3962874 100644 --- a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/Environment.kt +++ b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/Environment.kt @@ -25,7 +25,6 @@ import com.squareup.moshi.JsonClass * @param dummy */ - data class Environment ( @Json(name = "dummy") diff --git a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/PropertyNameMapping.kt b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/PropertyNameMapping.kt index 7bda8570622b..c9c81bf9bbfa 100644 --- a/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/PropertyNameMapping.kt +++ b/samples/client/petstore/kotlin-name-parameter-mappings/src/main/kotlin/org/openapitools/client/models/PropertyNameMapping.kt @@ -28,7 +28,6 @@ import com.squareup.moshi.JsonClass * @param typeWithUnderscore */ - data class PropertyNameMapping ( @Json(name = "http_debug_operation") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt index 73a0bfdf2527..c0efec85eb76 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - internal data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index feb4ba413e2d..58f39c261f82 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - internal data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt index 982adb551e38..3983fc040a07 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - internal data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt index 9d38f849e0ff..0eec0d8160d5 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - internal data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt index 7b8cc1436883..7226eeb34b2c 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - internal data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt index 84f66428177b..cd3d77be7064 100644 --- a/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-nonpublic/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - internal data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt index cde43a83f0c1..d6ea3d731ac0 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a4bef25364d7..424d0654bf20 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import java.io.Serializable * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt index a51d95c17765..0f47ce987f9b 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import java.io.Serializable * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt index b231b7819f22..7b7fae274c7c 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt index 3618e8680eb6..03064559fab5 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt index cabb3df832c2..c972d0587f9b 100644 --- a/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-nullable/src/main/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt index d855082fa406..ca64de7837a0 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import java.io.Serializable * @param name */ - data class Category ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index bf611b66b931..76554cbdde80 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param message */ - data class ModelApiResponse ( @get:JsonProperty("code") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt index 8918e30e9f81..d3c574c27ffb 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import java.io.Serializable * @param complete */ - data class Order ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt index e991db289fb2..a9baced579c6 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import java.io.Serializable * @param status pet status in the store */ - data class Pet ( @get:JsonProperty("name") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt index fe5730a01d36..29d739b128a9 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import java.io.Serializable * @param name */ - data class Tag ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt index 204111b94469..6cd4487ba53f 100644 --- a/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2-jackson/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import java.io.Serializable * @param userStatus User Status */ - data class User ( @get:JsonProperty("id") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt index ff6bdfb61ad5..9ccda4a73304 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -28,7 +28,6 @@ import java.io.Serializable * @param name */ @KSerializable - data class Category ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index f262e9a7e03c..bf8cfd3410da 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -29,7 +29,6 @@ import java.io.Serializable * @param message */ @KSerializable - data class ModelApiResponse ( @SerialName(value = "code") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt index 774a303b3dd0..9a92e715cd9c 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -32,7 +32,6 @@ import java.io.Serializable * @param complete */ @KSerializable - data class Order ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt index bb4c31e2c963..12417eeff004 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -34,7 +34,6 @@ import java.io.Serializable * @param status pet status in the store */ @KSerializable - data class Pet ( @SerialName(value = "name") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt index 1f533975b2b9..465964f19c51 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -28,7 +28,6 @@ import java.io.Serializable * @param name */ @KSerializable - data class Tag ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt index f803bc7ff69d..c01121c24600 100644 --- a/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2-kotlinx_serialization/src/main/kotlin/org/openapitools/client/models/User.kt @@ -34,7 +34,6 @@ import java.io.Serializable * @param userStatus User Status */ @KSerializable - data class User ( @SerialName(value = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Category.kt index bca19d5c6901..00a755dffab5 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index ea6bc0a04f89..59a54c9f229c 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Order.kt index ecd257a433a8..e3dc8fbabd52 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Pet.kt index 502297c92b0e..2905d7f0b9ec 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Tag.kt index 54bbd138c488..1933772b63de 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/User.kt index 5115585d1a4f..a2c50e00899e 100644 --- a/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2-rx3/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt index bca19d5c6901..00a755dffab5 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index ea6bc0a04f89..59a54c9f229c 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt index ecd257a433a8..e3dc8fbabd52 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt index 502297c92b0e..2905d7f0b9ec 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt index 54bbd138c488..1933772b63de 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt index 5115585d1a4f..a2c50e00899e 100644 --- a/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-retrofit2/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt index cde43a83f0c1..d6ea3d731ac0 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a4bef25364d7..424d0654bf20 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import java.io.Serializable * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt index 3d17352dbcc7..53d5d9ef942b 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import java.io.Serializable * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt index 9679a58490ba..e75498e2ef9a 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param status pet status in the store */ - data class Pet ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt index 3618e8680eb6..03064559fab5 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt index cabb3df832c2..c972d0587f9b 100644 --- a/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-string/src/main/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt index bca19d5c6901..00a755dffab5 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index ea6bc0a04f89..59a54c9f229c 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -27,7 +27,6 @@ import com.squareup.moshi.JsonClass * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt index 2612191cb21f..3967ee220aff 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -30,7 +30,6 @@ import com.squareup.moshi.JsonClass * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt index 502297c92b0e..2905d7f0b9ec 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt index 54bbd138c488..1933772b63de 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt index 5115585d1a4f..a2c50e00899e 100644 --- a/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin-threetenbp/src/main/kotlin/org/openapitools/client/models/User.kt @@ -32,7 +32,6 @@ import com.squareup.moshi.JsonClass * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt index cde43a83f0c1..d6ea3d731ac0 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Category.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Category ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt index a4bef25364d7..424d0654bf20 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/ModelApiResponse.kt @@ -28,7 +28,6 @@ import java.io.Serializable * @param message */ - data class ModelApiResponse ( @Json(name = "code") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt index a51d95c17765..0f47ce987f9b 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Order.kt @@ -31,7 +31,6 @@ import java.io.Serializable * @param complete */ - data class Order ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt index b231b7819f22..7b7fae274c7c 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Pet.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param status pet status in the store */ - data class Pet ( @Json(name = "name") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt index 3618e8680eb6..03064559fab5 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/Tag.kt @@ -27,7 +27,6 @@ import java.io.Serializable * @param name */ - data class Tag ( @Json(name = "id") diff --git a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt index cabb3df832c2..c972d0587f9b 100644 --- a/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt +++ b/samples/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/models/User.kt @@ -33,7 +33,6 @@ import java.io.Serializable * @param userStatus User Status */ - data class User ( @Json(name = "id") diff --git a/samples/client/petstore/lua/petstore/model/api_response.lua b/samples/client/petstore/lua/petstore/model/api_response.lua index a35211a807ef..f780f4a66037 100644 --- a/samples/client/petstore/lua/petstore/model/api_response.lua +++ b/samples/client/petstore/lua/petstore/model/api_response.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- api_response class local api_response = {} local api_response_mt = { diff --git a/samples/client/petstore/lua/petstore/model/category.lua b/samples/client/petstore/lua/petstore/model/category.lua index 95e1d3d45017..a8a627f1c2d2 100644 --- a/samples/client/petstore/lua/petstore/model/category.lua +++ b/samples/client/petstore/lua/petstore/model/category.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- category class local category = {} local category_mt = { diff --git a/samples/client/petstore/lua/petstore/model/order.lua b/samples/client/petstore/lua/petstore/model/order.lua index 207f154926ed..b4cb69ea0bf3 100644 --- a/samples/client/petstore/lua/petstore/model/order.lua +++ b/samples/client/petstore/lua/petstore/model/order.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- order class local order = {} local order_mt = { diff --git a/samples/client/petstore/lua/petstore/model/pet.lua b/samples/client/petstore/lua/petstore/model/pet.lua index 41edb1f9a292..13195c306354 100644 --- a/samples/client/petstore/lua/petstore/model/pet.lua +++ b/samples/client/petstore/lua/petstore/model/pet.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- pet class local pet = {} local pet_mt = { diff --git a/samples/client/petstore/lua/petstore/model/tag.lua b/samples/client/petstore/lua/petstore/model/tag.lua index 046fa31f4bf9..a37cd9ccabe1 100644 --- a/samples/client/petstore/lua/petstore/model/tag.lua +++ b/samples/client/petstore/lua/petstore/model/tag.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- tag class local tag = {} local tag_mt = { diff --git a/samples/client/petstore/lua/petstore/model/user.lua b/samples/client/petstore/lua/petstore/model/user.lua index 16f984685718..1f99d138adfc 100644 --- a/samples/client/petstore/lua/petstore/model/user.lua +++ b/samples/client/petstore/lua/petstore/model/user.lua @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech ]] - -- user class local user = {} local user_mt = { diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.h b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.h index 1b1309c48761..839eced9fcd6 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.h @@ -15,7 +15,6 @@ */ - @interface SWGPetApi: NSObject extern NSString* kSWGPetApiErrorDomain; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.h b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.h index 935845f72151..02514c5dfe96 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.h @@ -15,7 +15,6 @@ */ - @interface SWGStoreApi: NSObject extern NSString* kSWGStoreApiErrorDomain; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.h b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.h index 98a3a1756d5d..b7d1599faf60 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.h @@ -15,7 +15,6 @@ */ - @interface SWGUserApi: NSObject extern NSString* kSWGUserApiErrorDomain; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/JSONValueTransformer+ISO8601.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/JSONValueTransformer+ISO8601.h index 5179ca2e99b8..8757c929676a 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/JSONValueTransformer+ISO8601.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/JSONValueTransformer+ISO8601.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @interface JSONValueTransformer (ISO8601) @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApi.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApi.h index 6c0396f0cac5..2d85a24aa9ab 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApi.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApi.h @@ -14,7 +14,6 @@ * Do not edit the class manually. */ - @protocol SWGApi @property(readonly, nonatomic, strong) SWGApiClient *apiClient; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h index 761865f46933..f92477912ad2 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h @@ -15,7 +15,6 @@ * Do not edit the class manually. */ - /** * A key for `NSError` user info dictionaries. * diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGConfiguration.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGConfiguration.h index f6b12de5c5c3..db24f58cd350 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGConfiguration.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGConfiguration.h @@ -14,7 +14,6 @@ * Do not edit the class manually. */ - static NSString * const kSWGAPIVersion = @"1.0.0"; @protocol SWGConfiguration diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGDefaultConfiguration.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGDefaultConfiguration.h index e141e0d092d5..2e95dd471f79 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGDefaultConfiguration.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGDefaultConfiguration.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @class SWGApiClient; @interface SWGDefaultConfiguration : NSObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGJSONRequestSerializer.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGJSONRequestSerializer.h index 943ab1323133..e6d302baa95b 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGJSONRequestSerializer.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGJSONRequestSerializer.h @@ -13,6 +13,5 @@ * Do not edit the class manually. */ - @interface SWGJSONRequestSerializer : AFJSONRequestSerializer @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGLogger.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGLogger.h index 23f57acd7b8a..92d4addffc4b 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGLogger.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGLogger.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - #ifndef SWGDebugLogResponse #define SWGDebugLogResponse(response, responseObject,request, error) [[SWGLogger sharedLogger] logResponse:response responseObject:responseObject request:request error:error]; #endif diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGObject.h index 7d7112c5976a..fe654c40f811 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGObject.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @interface SWGObject : JSONModel @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGQueryParamCollection.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGQueryParamCollection.h index 4bd35d86f352..8e0fd2e0e79d 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGQueryParamCollection.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGQueryParamCollection.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - @interface SWGQueryParamCollection : NSObject @property(nonatomic, readonly) NSArray* values; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGResponseDeserializer.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGResponseDeserializer.h index 68f83704f495..f23926d4ce5b 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGResponseDeserializer.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGResponseDeserializer.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * A key for deserialization ErrorDomain */ diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGSanitizer.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGSanitizer.h index 83853bec8cf0..f02e544fdbc0 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGSanitizer.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGSanitizer.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - extern NSString * SWGPercentEscapedStringFromString(NSString *string); extern NSString * const kSWGApplicationJSONType; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategory.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategory.h index 31eb9e6b31ca..db6bb543a70d 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategory.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategory.h @@ -16,7 +16,6 @@ - @protocol SWGCategory @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObject.h index 8bcb655d0fbc..c2bb3d4c8239 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObject.h @@ -15,7 +15,6 @@ - NS_ASSUME_NONNULL_BEGIN @interface SWGCategoryManagedObject : NSManagedObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h index 18863d14baf7..ba3f68cf3717 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGCategoryManagedObjectBuilder.h @@ -17,7 +17,6 @@ * Do not edit the class manually. */ - @interface SWGCategoryManagedObjectBuilder : NSObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrder.h index 5ea7a94cfcbe..bfc33f9872b7 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrder.h @@ -16,7 +16,6 @@ - @protocol SWGOrder @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObject.h index 05f83ca11fd6..8a393fcb6691 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObject.h @@ -15,7 +15,6 @@ - NS_ASSUME_NONNULL_BEGIN @interface SWGOrderManagedObject : NSManagedObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObjectBuilder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObjectBuilder.h index f67159446bc9..f860c13c0a17 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObjectBuilder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGOrderManagedObjectBuilder.h @@ -17,7 +17,6 @@ * Do not edit the class manually. */ - @interface SWGOrderManagedObjectBuilder : NSObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPet.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPet.h index 4b3729193265..e3a90f6346ef 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPet.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPet.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - #import "SWGCategory.h" #import "SWGTag.h" @protocol SWGCategory; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObject.h index 6ad378e95f76..91924696a3cc 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObject.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - #import "SWGCategoryManagedObject.h" #import "SWGTagManagedObject.h" diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObjectBuilder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObjectBuilder.h index 112ba8bbff4f..96fab2ad0237 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObjectBuilder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGPetManagedObjectBuilder.h @@ -19,7 +19,6 @@ * Do not edit the class manually. */ - @interface SWGPetManagedObjectBuilder : NSObject @property (nonatomic, strong) SWGCategoryManagedObjectBuilder * categoryBuilder; diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTag.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTag.h index cdcedfd916bb..e71a6919ade3 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTag.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTag.h @@ -16,7 +16,6 @@ - @protocol SWGTag @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObject.h index a646e643d70c..15cce23e39c0 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObject.h @@ -15,7 +15,6 @@ - NS_ASSUME_NONNULL_BEGIN @interface SWGTagManagedObject : NSManagedObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObjectBuilder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObjectBuilder.h index fe1abf098e0c..4fa4bbf1aa49 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObjectBuilder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGTagManagedObjectBuilder.h @@ -17,7 +17,6 @@ * Do not edit the class manually. */ - @interface SWGTagManagedObjectBuilder : NSObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUser.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUser.h index 7786883ed29c..5d0b3cb349f2 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUser.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUser.h @@ -16,7 +16,6 @@ - @protocol SWGUser @end diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObject.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObject.h index 89f0f4938d81..bd93830ebf6b 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObject.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObject.h @@ -15,7 +15,6 @@ - NS_ASSUME_NONNULL_BEGIN @interface SWGUserManagedObject : NSManagedObject diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h index de1c284cde24..9bb6e01242cb 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGUserManagedObjectBuilder.h @@ -17,7 +17,6 @@ * Do not edit the class manually. */ - @interface SWGUserManagedObjectBuilder : NSObject diff --git a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.h b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.h index 1b1309c48761..839eced9fcd6 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.h @@ -15,7 +15,6 @@ */ - @interface SWGPetApi: NSObject extern NSString* kSWGPetApiErrorDomain; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.h b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.h index 935845f72151..02514c5dfe96 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.h @@ -15,7 +15,6 @@ */ - @interface SWGStoreApi: NSObject extern NSString* kSWGStoreApiErrorDomain; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.h b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.h index 98a3a1756d5d..b7d1599faf60 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.h @@ -15,7 +15,6 @@ */ - @interface SWGUserApi: NSObject extern NSString* kSWGUserApiErrorDomain; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/JSONValueTransformer+ISO8601.h b/samples/client/petstore/objc/default/SwaggerClient/Core/JSONValueTransformer+ISO8601.h index 5179ca2e99b8..8757c929676a 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/JSONValueTransformer+ISO8601.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/JSONValueTransformer+ISO8601.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @interface JSONValueTransformer (ISO8601) @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApi.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApi.h index 6c0396f0cac5..2d85a24aa9ab 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApi.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApi.h @@ -14,7 +14,6 @@ * Do not edit the class manually. */ - @protocol SWGApi @property(readonly, nonatomic, strong) SWGApiClient *apiClient; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h index 761865f46933..f92477912ad2 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h @@ -15,7 +15,6 @@ * Do not edit the class manually. */ - /** * A key for `NSError` user info dictionaries. * diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGConfiguration.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGConfiguration.h index f6b12de5c5c3..db24f58cd350 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGConfiguration.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGConfiguration.h @@ -14,7 +14,6 @@ * Do not edit the class manually. */ - static NSString * const kSWGAPIVersion = @"1.0.0"; @protocol SWGConfiguration diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGDefaultConfiguration.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGDefaultConfiguration.h index e141e0d092d5..2e95dd471f79 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGDefaultConfiguration.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGDefaultConfiguration.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @class SWGApiClient; @interface SWGDefaultConfiguration : NSObject diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONRequestSerializer.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONRequestSerializer.h index 943ab1323133..e6d302baa95b 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONRequestSerializer.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONRequestSerializer.h @@ -13,6 +13,5 @@ * Do not edit the class manually. */ - @interface SWGJSONRequestSerializer : AFJSONRequestSerializer @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGLogger.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGLogger.h index 23f57acd7b8a..92d4addffc4b 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGLogger.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGLogger.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - #ifndef SWGDebugLogResponse #define SWGDebugLogResponse(response, responseObject,request, error) [[SWGLogger sharedLogger] logResponse:response responseObject:responseObject request:request error:error]; #endif diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGObject.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGObject.h index 7d7112c5976a..fe654c40f811 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGObject.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGObject.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - @interface SWGObject : JSONModel @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGQueryParamCollection.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGQueryParamCollection.h index 4bd35d86f352..8e0fd2e0e79d 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGQueryParamCollection.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGQueryParamCollection.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - @interface SWGQueryParamCollection : NSObject @property(nonatomic, readonly) NSArray* values; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGResponseDeserializer.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGResponseDeserializer.h index 68f83704f495..f23926d4ce5b 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGResponseDeserializer.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGResponseDeserializer.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * A key for deserialization ErrorDomain */ diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGSanitizer.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGSanitizer.h index 83853bec8cf0..f02e544fdbc0 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGSanitizer.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGSanitizer.h @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - extern NSString * SWGPercentEscapedStringFromString(NSString *string); extern NSString * const kSWGApplicationJSONType; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGCategory.h b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGCategory.h index 31eb9e6b31ca..db6bb543a70d 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGCategory.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGCategory.h @@ -16,7 +16,6 @@ - @protocol SWGCategory @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGOrder.h b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGOrder.h index 5ea7a94cfcbe..bfc33f9872b7 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGOrder.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGOrder.h @@ -16,7 +16,6 @@ - @protocol SWGOrder @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGPet.h b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGPet.h index 4b3729193265..e3a90f6346ef 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGPet.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGPet.h @@ -13,7 +13,6 @@ * Do not edit the class manually. */ - #import "SWGCategory.h" #import "SWGTag.h" @protocol SWGCategory; diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGTag.h b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGTag.h index cdcedfd916bb..e71a6919ade3 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGTag.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGTag.h @@ -16,7 +16,6 @@ - @protocol SWGTag @end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGUser.h b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGUser.h index 7786883ed29c..5d0b3cb349f2 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGUser.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGUser.h @@ -16,7 +16,6 @@ - @protocol SWGUser @end diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AdditionalPropertiesClass.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AdditionalPropertiesClass.pm index fe3e6e9bf8db..7f9ffe643a59 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AdditionalPropertiesClass.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AdditionalPropertiesClass.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'AdditionalPropertiesClass', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Adult.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Adult.pm index fea05beae617..36854565537a 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Adult.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Adult.pm @@ -239,7 +239,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'A representation of an adult', class => 'Adult', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AllOfWithSingleRef.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AllOfWithSingleRef.pm index b032d5c460dd..3a571563d0b2 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AllOfWithSingleRef.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/AllOfWithSingleRef.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'AllOfWithSingleRef', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Animal.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Animal.pm index 610421d0af59..29498c286512 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Animal.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Animal.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Animal', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ApiResponse.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ApiResponse.pm index ad8dd55099e3..a895b69a51f9 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ApiResponse.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ApiResponse.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ApiResponse', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfArrayOfNumberOnly.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfArrayOfNumberOnly.pm index 8d5200bafb7a..2e17a387a887 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfArrayOfNumberOnly.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfArrayOfNumberOnly.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ArrayOfArrayOfNumberOnly', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfNumberOnly.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfNumberOnly.pm index 1248abfb9554..429a411e072f 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfNumberOnly.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayOfNumberOnly.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ArrayOfNumberOnly', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayTest.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayTest.pm index bd080ca5181f..faa956ffb5ab 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayTest.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ArrayTest.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ArrayTest', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Capitalization.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Capitalization.pm index a7e92a6bbd2c..ab110e05aaa7 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Capitalization.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Capitalization.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Capitalization', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Cat.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Cat.pm index dfaa6adbb85c..2f20ea79542c 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Cat.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Cat.pm @@ -225,7 +225,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Cat', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Category.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Category.pm index 3d6dfcc8b744..4ed25a973da9 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Category.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Category.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Category', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Child.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Child.pm index db41a61b5c4f..663524923db7 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Child.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Child.pm @@ -225,7 +225,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'A representation of a child', class => 'Child', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ChildWithNullable.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ChildWithNullable.pm index cc553f3c22f1..d01529124025 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ChildWithNullable.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ChildWithNullable.pm @@ -225,7 +225,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ChildWithNullable', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ClassModel.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ClassModel.pm index e980490b08b6..b771b2814738 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ClassModel.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ClassModel.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Model for testing model with \"_class\" property', class => 'ClassModel', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Client.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Client.pm index 2dd2ef044557..d3d5b9c34174 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Client.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Client.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Client', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/DeprecatedModel.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/DeprecatedModel.pm index 89952e95b95e..78a4dff390f5 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/DeprecatedModel.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/DeprecatedModel.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'DeprecatedModel', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Dog.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Dog.pm index 42559cbc14d6..6d7c28e1559d 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Dog.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Dog.pm @@ -225,7 +225,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Dog', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumArrays.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumArrays.pm index 76b8491df20c..9d1bd445d012 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumArrays.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumArrays.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'EnumArrays', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumClass.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumClass.pm index c9f89c7f9bac..3e7ce435f085 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumClass.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumClass.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'EnumClass', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumTest.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumTest.pm index a6c47f94ad06..6cd9dd23362c 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumTest.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/EnumTest.pm @@ -216,7 +216,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'EnumTest', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FakeBigDecimalMap200Response.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FakeBigDecimalMap200Response.pm index 9168a546778f..d9d4b36826aa 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FakeBigDecimalMap200Response.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FakeBigDecimalMap200Response.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'FakeBigDecimalMap200Response', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/File.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/File.pm index eed979a03ad9..866d0a20cb30 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/File.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/File.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Must be named `File` for test.', class => 'File', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FileSchemaTestClass.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FileSchemaTestClass.pm index 51a3e8c56328..5bd3fd22fe85 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FileSchemaTestClass.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FileSchemaTestClass.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'FileSchemaTestClass', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Foo.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Foo.pm index 455bc1d49517..488f5e89057e 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Foo.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Foo.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Foo', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FooGetDefaultResponse.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FooGetDefaultResponse.pm index ff23c2e1f1b2..ad8785373133 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FooGetDefaultResponse.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FooGetDefaultResponse.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'FooGetDefaultResponse', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FormatTest.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FormatTest.pm index 667b31ba9cb4..d23be068239c 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FormatTest.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/FormatTest.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'FormatTest', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HasOnlyReadOnly.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HasOnlyReadOnly.pm index 39d0391e7594..57ba88550fa2 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HasOnlyReadOnly.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HasOnlyReadOnly.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'HasOnlyReadOnly', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HealthCheckResult.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HealthCheckResult.pm index 000598c457cd..b35b0c8fec49 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HealthCheckResult.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/HealthCheckResult.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.', class => 'HealthCheckResult', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Human.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Human.pm index adf33739e979..39bd6c00ad36 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Human.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Human.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Human', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/List.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/List.pm index c7b5da6e2853..666f5f7e8061 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/List.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/List.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'List', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MapTest.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MapTest.pm index 23f774ba885f..306bae470c93 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MapTest.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MapTest.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'MapTest', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MixedPropertiesAndAdditionalPropertiesClass.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MixedPropertiesAndAdditionalPropertiesClass.pm index 94dd3db9c7d3..ee77773ac9d0 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MixedPropertiesAndAdditionalPropertiesClass.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/MixedPropertiesAndAdditionalPropertiesClass.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'MixedPropertiesAndAdditionalPropertiesClass', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Model200Response.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Model200Response.pm index 4cd7e3ce5d8b..360a45735d8d 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Model200Response.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Model200Response.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Model for testing model name starting with number', class => 'Model200Response', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ModelReturn.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ModelReturn.pm index fc7ab101d0f7..aefafa7f33ce 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ModelReturn.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ModelReturn.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Model for testing reserved words', class => 'ModelReturn', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Name.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Name.pm index 3a028d3558a6..b8589d01a4cc 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Name.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Name.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => 'Model for testing model name same as property name', class => 'Name', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NullableClass.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NullableClass.pm index 88ef76300dca..37980785d448 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NullableClass.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NullableClass.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'NullableClass', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NumberOnly.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NumberOnly.pm index a9183ffc6aff..45d1f4a7f4dc 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NumberOnly.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/NumberOnly.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'NumberOnly', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ObjectWithDeprecatedFields.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ObjectWithDeprecatedFields.pm index 61918ae1d1d1..a8863cfcc4d5 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ObjectWithDeprecatedFields.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ObjectWithDeprecatedFields.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ObjectWithDeprecatedFields', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Order.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Order.pm index 73168f90b7fc..7bee44cd74a7 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Order.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Order.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Order', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterComposite.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterComposite.pm index cc57dd41494d..fa10c0e977f4 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterComposite.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterComposite.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterComposite', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnum.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnum.pm index 9d430abd72f6..0fa9267215a2 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnum.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnum.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterEnum', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumDefaultValue.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumDefaultValue.pm index 014481ffc7cd..04cad60731df 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumDefaultValue.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumDefaultValue.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterEnumDefaultValue', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumInteger.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumInteger.pm index 78eb9b0d6f0b..cb342d9037d6 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumInteger.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumInteger.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterEnumInteger', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumIntegerDefaultValue.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumIntegerDefaultValue.pm index 929d7d1e82a5..1f2c860bb3e9 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumIntegerDefaultValue.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterEnumIntegerDefaultValue.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterEnumIntegerDefaultValue', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterObjectWithEnumProperty.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterObjectWithEnumProperty.pm index e714d6f1f52c..cc439cb7b5cf 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterObjectWithEnumProperty.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/OuterObjectWithEnumProperty.pm @@ -213,7 +213,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'OuterObjectWithEnumProperty', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ParentWithNullable.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ParentWithNullable.pm index 41e0c7927f2e..94b7f67db0be 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ParentWithNullable.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ParentWithNullable.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ParentWithNullable', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Person.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Person.pm index bd6c7e98f9a9..03a5ceb36856 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Person.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Person.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Person', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Pet.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Pet.pm index cb9ffa59e706..323acd2b88ce 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Pet.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Pet.pm @@ -214,7 +214,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Pet', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ReadOnlyFirst.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ReadOnlyFirst.pm index 59e15a1cb5b7..984ed174f831 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ReadOnlyFirst.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/ReadOnlyFirst.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'ReadOnlyFirst', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SingleRefType.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SingleRefType.pm index 66f108a0d739..5f38288e00dd 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SingleRefType.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SingleRefType.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'SingleRefType', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SpecialModelName.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SpecialModelName.pm index b09955a26fac..81535cbb76c2 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SpecialModelName.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/SpecialModelName.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'SpecialModelName', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Tag.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Tag.pm index 35466afbc42a..779cd225e49f 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Tag.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/Tag.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'Tag', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TestInlineFreeformAdditionalPropertiesRequest.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TestInlineFreeformAdditionalPropertiesRequest.pm index 6e0263b26393..0f80c8c59c6f 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TestInlineFreeformAdditionalPropertiesRequest.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TestInlineFreeformAdditionalPropertiesRequest.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'TestInlineFreeformAdditionalPropertiesRequest', required => [], # TODO diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/User.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/User.pm index 788dc1214286..15322f9a6408 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/User.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/User.pm @@ -212,7 +212,6 @@ sub _deserialize { } } - __PACKAGE__->class_documentation({description => '', class => 'User', required => [], # TODO diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/README.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/README.md index 11da5763dcc1..ea19ef22f989 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/README.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/README.md @@ -48,7 +48,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/AnotherFakeApi.md index ef6fa331bd85..74bf808f8c6f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/AnotherFakeApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/AnotherFakeApi.md @@ -24,7 +24,6 @@ To test special tags and operation ID starting with number require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/DefaultApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/DefaultApi.md index d603956cfaff..7d6896f1da9a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/DefaultApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/DefaultApi.md @@ -22,7 +22,6 @@ fooGet(): \OpenAPI\Client\Model\FooGetDefaultResponse require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md index 9f4cab79f2a1..bef6a5b58a2f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md @@ -46,7 +46,6 @@ for Java apache and Java native, test toUrlQueryString for maps with BegDecimal require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -97,7 +96,6 @@ test endpoint with enum parameter require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -155,7 +153,6 @@ Health check endpoint require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -207,7 +204,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -267,7 +263,6 @@ Test serialization of outer boolean types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -323,7 +318,6 @@ Test serialization of object with outer number type require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -379,7 +373,6 @@ Test serialization of outer number types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -435,7 +428,6 @@ Test serialization of outer string types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -491,7 +483,6 @@ Test serialization of enum (int) properties with examples require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -547,7 +538,6 @@ test referenced additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -602,7 +592,6 @@ For this test, the body has to be a binary file. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -657,7 +646,6 @@ For this test, the body for this request must reference a schema named `File`. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -710,7 +698,6 @@ testBodyWithQueryParams($query, $user) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -767,7 +754,6 @@ To test \"client\" model require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -828,7 +814,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -910,7 +895,6 @@ To test enum parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -984,7 +968,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer (JWT) authorization: bearer_test $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1055,7 +1038,6 @@ test inline additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1110,7 +1092,6 @@ test inline free-form additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1165,7 +1146,6 @@ test json serialization of form data require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1222,7 +1202,6 @@ test nullable parent property require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1277,7 +1256,6 @@ To test the collection format in query parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1344,7 +1322,6 @@ test referenced string map require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md index 7519d7924b42..80fd38aca40d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md @@ -29,7 +29,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/PetApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/PetApi.md index 03a95d599d9e..28ac2462d294 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/PetApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/PetApi.md @@ -50,7 +50,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -117,7 +116,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -178,7 +176,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -238,7 +235,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -300,7 +296,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -375,7 +370,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -442,7 +436,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -505,7 +498,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -569,7 +561,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/StoreApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/StoreApi.md index f704ceffbdf4..adff6401e59f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/StoreApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/StoreApi.md @@ -27,7 +27,6 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -87,7 +86,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -141,7 +139,6 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -197,7 +194,6 @@ Place an order for a pet require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/UserApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/UserApi.md index c5ff23c66a92..80a8e5278c4b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/UserApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/UserApi.md @@ -31,7 +31,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -141,7 +139,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -196,7 +193,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -251,7 +247,6 @@ Get user by user name require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -307,7 +302,6 @@ Logs user into the system require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -365,7 +359,6 @@ Logs out current logged in user session require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -417,7 +410,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php index 55bc4ec79a38..bef6685702ab 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php index a90d1ac121d8..f28837d0883c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php index 4a9b3f6fe3ce..d5c048fb684e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php index 43bbeb89f9fd..e633a1f1429e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php index 1ea07b45aaf0..3f1221768efb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php index 4611652dc90c..17a6578ffc5c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php index 32a7e42eed6f..c803317bfd6e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ApiException.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ApiException.php index 384c4d421339..671f27f66e76 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ApiException.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ApiException.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php index 14d6f2844cc3..2b325b183c3a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php index 01a389a30008..e09479ccb1eb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php @@ -17,7 +17,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php index 0561dbb4ebde..81398377e6d6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php index 2a478ca4c5af..b732df7313fd 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php index b77bd802eabb..039c73a83b0d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php index 48cb10581d9c..eb11be4ea2c7 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php index dc18f4345d9a..67c17318ac1a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php index 00b8205a8208..22db22ed5fa8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php index f6181b7fc1e0..ed190ad18ca6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php index c2c493ae20b7..d69f7aca9a10 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php index f3b0027e4cce..a4af1013b6e9 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php index f69e62385c2a..a454082cb689 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php index 2d61b0a979fd..731b9df955b9 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php index 536491586a9c..394db2b21032 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php index 52513c40432c..78ef9a716b11 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php index f71c8a05c971..d33ec39b9345 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php index da8b81a552e0..f575fb18bfaf 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php index d41d5092fc20..4d562a91724a 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumClass.php index 8fbdf92d3f7e..3f5c577b2e94 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumClass.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php index a8d6ba036143..d1d4fc727391 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php index 56eaedadb9b5..d231b61c90da 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php index 986eca8e73b6..f678f2de0de5 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php index 1d00d7a66612..3df60feae160 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php index 47d369793cf9..569e69244e67 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php index 559c604eedae..fd8f0a0c1199 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php index 4ebe8d8e0a19..a025899c594d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php index a17e4c18f973..e3a781d10a30 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php index 6f0c3ae87af7..02aad9580310 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php index c5adc3061f44..77c899dca3b6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php index 8f988b900785..c22557aeb552 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 6dd7fb7e8f41..8a445032e7cc 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php index c5f129fca98c..3c02a2d18ed6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelInterface.php index be5e39ab6fc0..ee1c8933d1ba 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelInterface.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelInterface.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php index 2c9cdcd3aedd..f455f12d9247 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php index d04e0841d815..30b4dfe217b5 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php index 20503361c7fc..7cbc7bb1cc78 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php index 2b612d7b1468..b8f3570393b6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php index 6c0e2c39b163..5f790c179103 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php index 5ab54920aefa..322a7fcc1466 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php index d43c8b5333e5..06204b8a05da 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php index f4a06b8cdff1..f801bda80298 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnum.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnum.php index c5c005a344aa..4206b7d5e96e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnum.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnum.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumDefaultValue.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumDefaultValue.php index 1c50757b72da..524484aa3fae 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumDefaultValue.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumDefaultValue.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumInteger.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumInteger.php index 46570e4de230..5d7d36606203 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumInteger.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumInteger.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumIntegerDefaultValue.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumIntegerDefaultValue.php index 5bf3c0dcbf6f..7649ccd8387e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumIntegerDefaultValue.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterEnumIntegerDefaultValue.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php index dfe4ee5ba5d8..46ad6a413e49 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php index 289c1f4f6e1a..b864633b2933 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php index e47db2573071..9d52b390754c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php index f32c05950f68..b59138909111 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SingleRefType.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SingleRefType.php index d8c2100a7955..8772c928baeb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SingleRefType.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SingleRefType.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php index 1cc759d32052..79cf819dab67 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php index fc6083edc07e..c3899f75cb62 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php index 50cf3172289e..c0df0091ef7f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php index 8475fd4a9f14..ff8b9adb85b8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ObjectSerializer.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ObjectSerializer.php index 6ac3f4d194f1..e826324245c8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ObjectSerializer.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ObjectSerializer.php @@ -18,7 +18,6 @@ * @generated Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md index b888c82f50fd..ec6fd7dcd0a5 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/README.md +++ b/samples/client/petstore/php/OpenAPIClient-php/README.md @@ -49,7 +49,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md index ef6fa331bd85..74bf808f8c6f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md @@ -24,7 +24,6 @@ To test special tags and operation ID starting with number require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/DefaultApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/DefaultApi.md index d603956cfaff..7d6896f1da9a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/DefaultApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/DefaultApi.md @@ -22,7 +22,6 @@ fooGet(): \OpenAPI\Client\Model\FooGetDefaultResponse require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md index 87e2653832dc..d32e96a71e49 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md @@ -46,7 +46,6 @@ for Java apache and Java native, test toUrlQueryString for maps with BegDecimal require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -97,7 +96,6 @@ test endpoint with enum parameter require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -155,7 +153,6 @@ Health check endpoint require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -207,7 +204,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -267,7 +263,6 @@ Test serialization of outer boolean types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -323,7 +318,6 @@ Test serialization of object with outer number type require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -379,7 +373,6 @@ Test serialization of outer number types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -435,7 +428,6 @@ Test serialization of outer string types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -491,7 +483,6 @@ Test serialization of enum (int) properties with examples require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -545,7 +536,6 @@ parameter name mapping test require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -608,7 +598,6 @@ test referenced additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -663,7 +652,6 @@ For this test, the body has to be a binary file. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -718,7 +706,6 @@ For this test, the body for this request must reference a schema named `File`. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -771,7 +758,6 @@ testBodyWithQueryParams($query, $user) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -828,7 +814,6 @@ To test \"client\" model require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -889,7 +874,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -971,7 +955,6 @@ To test enum parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1045,7 +1028,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer (JWT) authorization: bearer_test $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1116,7 +1098,6 @@ test inline additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1171,7 +1152,6 @@ test inline free-form additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1226,7 +1206,6 @@ test json serialization of form data require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1283,7 +1262,6 @@ To test the collection format in query parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -1350,7 +1328,6 @@ test referenced string map require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md index 7519d7924b42..80fd38aca40d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeClassnameTags123Api.md @@ -29,7 +29,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md index 527942413c6d..b4696c9cdaf5 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/PetApi.md @@ -50,7 +50,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -117,7 +116,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -178,7 +176,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -238,7 +235,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -300,7 +296,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -375,7 +370,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -442,7 +436,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -505,7 +498,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -569,7 +561,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md index f704ceffbdf4..adff6401e59f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/StoreApi.md @@ -27,7 +27,6 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -87,7 +86,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -141,7 +139,6 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -197,7 +194,6 @@ Place an order for a pet require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md index c5ff23c66a92..80a8e5278c4b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/UserApi.md @@ -31,7 +31,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -86,7 +85,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -141,7 +139,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -196,7 +193,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -251,7 +247,6 @@ Get user by user name require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -307,7 +302,6 @@ Logs user into the system require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -365,7 +359,6 @@ Logs out current logged in user session require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. @@ -417,7 +410,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php index eb53a66b5027..65ed7c014512 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php index 061cb57f2a09..84cedb82f900 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php index 20b4b8dd5395..94ff499e9f1b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php index bf936fa62c11..3d9b203ddb29 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php index 3167606788c9..02e4031bae96 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php index 427bb2413dff..c01856d02bdc 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php index 29e97f260ea8..d3c5fc820003 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php index 46eea9dd3d0d..1e5dd2169259 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php index ac5e3390e8ca..2d935f34471a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php b/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php index 4879098bcb0c..d8ab0cb59855 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php index e3500ff1cf05..69452bd33a3a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php index ef0ffcda46b8..f60d605ee208 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php index fe50ec66263a..59e990122a3a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php index 55cd41922419..201d08fb1d03 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php index 77d6b78867df..c26c7d204097 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php index 27007833c701..69b97550fb7e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php index 4e7e74bc0399..e1a3292f1da1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php index 438021d14f7b..bce212609846 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php index 4c14811a2b80..c14222b67943 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php index 4d895e8d3e3f..21317c7cce1e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php index 991bbab17ef9..30af23be3134 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php index aa37d7ddb33d..04c0b5485a57 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php index daf335fa2125..c21cb57fdcd9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php index 9eec0250c1c8..ee6a2bac6e29 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php index b8001ce7430e..ab49b4119721 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php index 178c20a513c3..3d4863e2bee3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php index 6f8b64eb83ad..80a22ca0436e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumWithNameAndDescription.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumWithNameAndDescription.php index 1c73ea9b1610..d14b252f793b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumWithNameAndDescription.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumWithNameAndDescription.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php index efcdb4e1e731..26f9b0017a4a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php index 0e0f31627090..c5520ffa1937 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php index 45197e300a3e..21e632071339 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php index 2e79ec11c8a5..3cbb1b9217a6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php index aff931cc00a8..d65352c94b17 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php index 8ce9b17cc399..86edc7b3d658 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php index 9dbba53e3ccf..b66903b12696 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php index 917f2bfc2ba8..f629b7f28cb1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php index 3f950722bc2f..ec86e76323d1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 24636d2fe6f6..037c0d893bb2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php index d43c8e70b2af..ff9f1d9a590b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php index c82d55ac875d..c66f776beb4d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php index c05f844e13f3..5e3a70176ee1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php index fc4eb6ff4cac..546cdfbca9d6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php index 8fb93461ec75..eaeaacf4bb48 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php index 05372f75e738..f28eba8df782 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php index f8ee52fdc365..f353ceec3ead 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php index 2c5586b12d5d..1cb09b931444 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php index 577d823d0a79..2102ac0907f4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php index d10f040797db..189ccd94c336 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php index d5f08c0c773f..51e0b69ee269 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php index 9aaae417b0a4..a075d657ac07 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php index efb5192891a6..96f99203bd44 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php index 554a23c1212d..0135401dc5ee 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php index d50bc1481131..7a0ebfcb74e4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php index c3a5e8258125..9a3e290cdd75 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php index 1622053c8869..c703efaea055 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php index ac94e2489228..065a452a291e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SingleRefType.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SingleRefType.php index e7aa8bd83b80..fdb6b352f977 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SingleRefType.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SingleRefType.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php index 05adae909d06..c390b1192468 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php index 6c2bd6f1ed0a..7b167d3734e1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php index 1c1e2d51f7ae..7459b55ca52e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php index d3be1293fbc6..1efaa8b62227 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php b/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php index f4641306ddf6..0134720bc728 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/README.md b/samples/client/petstore/php/psr-18/README.md index ab9cd09386d3..3e67f997d855 100644 --- a/samples/client/petstore/php/psr-18/README.md +++ b/samples/client/petstore/php/psr-18/README.md @@ -60,7 +60,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php/psr-18/docs/Api/AnotherFakeApi.md index 42a2243039b7..6979374ef12a 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/AnotherFakeApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/AnotherFakeApi.md @@ -24,7 +24,6 @@ To test special tags and operation ID starting with number require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/DefaultApi.md b/samples/client/petstore/php/psr-18/docs/Api/DefaultApi.md index b56d4df36e52..13b87aa1000f 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/DefaultApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/DefaultApi.md @@ -22,7 +22,6 @@ fooGet(): \OpenAPI\Client\Model\FooGetDefaultResponse require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\DefaultApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md b/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md index a63a2afacf0e..810c5dac03b1 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md @@ -46,7 +46,6 @@ for Java apache and Java native, test toUrlQueryString for maps with BegDecimal require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -97,7 +96,6 @@ test endpoint with enum parameter require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -155,7 +153,6 @@ Health check endpoint require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -207,7 +204,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -267,7 +263,6 @@ Test serialization of outer boolean types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -323,7 +318,6 @@ Test serialization of object with outer number type require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -379,7 +373,6 @@ Test serialization of outer number types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -435,7 +428,6 @@ Test serialization of outer string types require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -491,7 +483,6 @@ Test serialization of enum (int) properties with examples require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -545,7 +536,6 @@ parameter name mapping test require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -608,7 +598,6 @@ test referenced additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -663,7 +652,6 @@ For this test, the body has to be a binary file. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -718,7 +706,6 @@ For this test, the body for this request must reference a schema named `File`. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -771,7 +758,6 @@ testBodyWithQueryParams($query, $user) require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -828,7 +814,6 @@ To test \"client\" model require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -889,7 +874,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -971,7 +955,6 @@ To test enum parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1045,7 +1028,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer (JWT) authorization: bearer_test $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1113,7 +1095,6 @@ test inline additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1168,7 +1149,6 @@ test inline free-form additionalProperties require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1223,7 +1203,6 @@ test json serialization of form data require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1280,7 +1259,6 @@ To test the collection format in query parameters require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -1347,7 +1325,6 @@ test referenced string map require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\FakeApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/FakeClassnameTags123Api.md b/samples/client/petstore/php/psr-18/docs/Api/FakeClassnameTags123Api.md index 48b2139c35f1..9d9600d11777 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/FakeClassnameTags123Api.md +++ b/samples/client/petstore/php/psr-18/docs/Api/FakeClassnameTags123Api.md @@ -29,7 +29,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/PetApi.md b/samples/client/petstore/php/psr-18/docs/Api/PetApi.md index 568f6c4c6e9b..efa41561218f 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/PetApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/PetApi.md @@ -35,7 +35,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -94,7 +93,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -155,7 +153,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -215,7 +212,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -277,7 +273,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -337,7 +332,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -396,7 +390,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -459,7 +452,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -523,7 +515,6 @@ require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: petstore_auth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); - $apiInstance = new OpenAPI\Client\Api\PetApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/StoreApi.md b/samples/client/petstore/php/psr-18/docs/Api/StoreApi.md index b5036ae1b633..d3198edbf2d8 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/StoreApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/StoreApi.md @@ -27,7 +27,6 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -87,7 +86,6 @@ $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('ap // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -141,7 +139,6 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -197,7 +194,6 @@ Place an order for a pet require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\StoreApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/docs/Api/UserApi.md b/samples/client/petstore/php/psr-18/docs/Api/UserApi.md index 29ff9f51661e..9c89edcc5d54 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/UserApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/UserApi.md @@ -31,7 +31,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -86,7 +85,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -141,7 +139,6 @@ Creates list of users with given input array require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -196,7 +193,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -251,7 +247,6 @@ Get user by user name require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -307,7 +302,6 @@ Logs user into the system require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -365,7 +359,6 @@ Logs out current logged in user session require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface @@ -417,7 +410,6 @@ This can only be done by the logged in user. require_once(__DIR__ . '/vendor/autoload.php'); - $apiInstance = new OpenAPI\Client\Api\UserApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface diff --git a/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php index 342749361e05..49269af2edc7 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php b/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php index c232052431a3..a76185215732 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php index 89d1a1aada27..4546346f88ea 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php index cfb8709a228b..5946988d79d9 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php index 9a759f822b43..ec6eb0f3fd49 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php index 37cbcf6d8864..5fbc35cadc24 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php index 1840b5f59214..529ef45e6d7b 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/ApiException.php b/samples/client/petstore/php/psr-18/lib/ApiException.php index d9b58be8dfde..5e6b81f4b9cf 100644 --- a/samples/client/petstore/php/psr-18/lib/ApiException.php +++ b/samples/client/petstore/php/psr-18/lib/ApiException.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Configuration.php b/samples/client/petstore/php/psr-18/lib/Configuration.php index ac5e3390e8ca..2d935f34471a 100644 --- a/samples/client/petstore/php/psr-18/lib/Configuration.php +++ b/samples/client/petstore/php/psr-18/lib/Configuration.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/DebugPlugin.php b/samples/client/petstore/php/psr-18/lib/DebugPlugin.php index d8f9a563719d..e562f2e40410 100644 --- a/samples/client/petstore/php/psr-18/lib/DebugPlugin.php +++ b/samples/client/petstore/php/psr-18/lib/DebugPlugin.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/HeaderSelector.php b/samples/client/petstore/php/psr-18/lib/HeaderSelector.php index 4879098bcb0c..d8ab0cb59855 100644 --- a/samples/client/petstore/php/psr-18/lib/HeaderSelector.php +++ b/samples/client/petstore/php/psr-18/lib/HeaderSelector.php @@ -18,7 +18,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php index e3500ff1cf05..69452bd33a3a 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php b/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php index ef0ffcda46b8..f60d605ee208 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Animal.php b/samples/client/petstore/php/psr-18/lib/Model/Animal.php index fe50ec66263a..59e990122a3a 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Animal.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Animal.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php b/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php index 55cd41922419..201d08fb1d03 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php index 77d6b78867df..c26c7d204097 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php index 27007833c701..69b97550fb7e 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php index 4e7e74bc0399..e1a3292f1da1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php b/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php index 438021d14f7b..bce212609846 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Cat.php b/samples/client/petstore/php/psr-18/lib/Model/Cat.php index 4c14811a2b80..c14222b67943 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Cat.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Cat.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Category.php b/samples/client/petstore/php/psr-18/lib/Model/Category.php index 4d895e8d3e3f..21317c7cce1e 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Category.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Category.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php b/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php index 991bbab17ef9..30af23be3134 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Client.php b/samples/client/petstore/php/psr-18/lib/Model/Client.php index aa37d7ddb33d..04c0b5485a57 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Client.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Client.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php b/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php index daf335fa2125..c21cb57fdcd9 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php +++ b/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Dog.php b/samples/client/petstore/php/psr-18/lib/Model/Dog.php index 9eec0250c1c8..ee6a2bac6e29 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Dog.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Dog.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php b/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php index b8001ce7430e..ab49b4119721 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumClass.php b/samples/client/petstore/php/psr-18/lib/Model/EnumClass.php index 178c20a513c3..3d4863e2bee3 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php index 6f8b64eb83ad..80a22ca0436e 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumWithNameAndDescription.php b/samples/client/petstore/php/psr-18/lib/Model/EnumWithNameAndDescription.php index 1c73ea9b1610..d14b252f793b 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumWithNameAndDescription.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumWithNameAndDescription.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php index efcdb4e1e731..26f9b0017a4a 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/File.php b/samples/client/petstore/php/psr-18/lib/Model/File.php index 0e0f31627090..c5520ffa1937 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/File.php +++ b/samples/client/petstore/php/psr-18/lib/Model/File.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php b/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php index 45197e300a3e..21e632071339 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Foo.php b/samples/client/petstore/php/psr-18/lib/Model/Foo.php index 2e79ec11c8a5..3cbb1b9217a6 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Foo.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Foo.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php b/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php index aff931cc00a8..d65352c94b17 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php b/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php index 8ce9b17cc399..86edc7b3d658 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php index 9dbba53e3ccf..b66903b12696 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php b/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php index 917f2bfc2ba8..f629b7f28cb1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php +++ b/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/MapTest.php b/samples/client/petstore/php/psr-18/lib/Model/MapTest.php index 3f950722bc2f..ec86e76323d1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/MapTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/MapTest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 24636d2fe6f6..037c0d893bb2 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php b/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php index d43c8e70b2af..ff9f1d9a590b 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ModelInterface.php b/samples/client/petstore/php/psr-18/lib/Model/ModelInterface.php index c82d55ac875d..c66f776beb4d 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ModelInterface.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ModelInterface.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ModelList.php b/samples/client/petstore/php/psr-18/lib/Model/ModelList.php index c05f844e13f3..5e3a70176ee1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ModelList.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ModelList.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php b/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php index fc4eb6ff4cac..546cdfbca9d6 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Name.php b/samples/client/petstore/php/psr-18/lib/Model/Name.php index 8fb93461ec75..eaeaacf4bb48 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Name.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Name.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php b/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php index 05372f75e738..f28eba8df782 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php index f8ee52fdc365..f353ceec3ead 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php index 2c5586b12d5d..1cb09b931444 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Order.php b/samples/client/petstore/php/psr-18/lib/Model/Order.php index 577d823d0a79..2102ac0907f4 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Order.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Order.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php b/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php index d10f040797db..189ccd94c336 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterEnum.php b/samples/client/petstore/php/psr-18/lib/Model/OuterEnum.php index d5f08c0c773f..51e0b69ee269 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterEnum.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterEnum.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumDefaultValue.php b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumDefaultValue.php index 9aaae417b0a4..a075d657ac07 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumDefaultValue.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumDefaultValue.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumInteger.php b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumInteger.php index efb5192891a6..96f99203bd44 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumInteger.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumInteger.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumIntegerDefaultValue.php b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumIntegerDefaultValue.php index 554a23c1212d..0135401dc5ee 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterEnumIntegerDefaultValue.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterEnumIntegerDefaultValue.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php index d50bc1481131..7a0ebfcb74e4 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Pet.php b/samples/client/petstore/php/psr-18/lib/Model/Pet.php index c3a5e8258125..9a3e290cdd75 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Pet.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Pet.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php b/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php index 1622053c8869..c703efaea055 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php +++ b/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php index ac94e2489228..065a452a291e 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/SingleRefType.php b/samples/client/petstore/php/psr-18/lib/Model/SingleRefType.php index e7aa8bd83b80..fdb6b352f977 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/SingleRefType.php +++ b/samples/client/petstore/php/psr-18/lib/Model/SingleRefType.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php b/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php index 05adae909d06..c390b1192468 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/Tag.php b/samples/client/petstore/php/psr-18/lib/Model/Tag.php index 6c2bd6f1ed0a..7b167d3734e1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Tag.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Tag.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php index 1c1e2d51f7ae..7459b55ca52e 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/Model/User.php b/samples/client/petstore/php/psr-18/lib/Model/User.php index d3be1293fbc6..1efaa8b62227 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/User.php +++ b/samples/client/petstore/php/psr-18/lib/Model/User.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/php/psr-18/lib/ObjectSerializer.php b/samples/client/petstore/php/psr-18/lib/ObjectSerializer.php index f4641306ddf6..0134720bc728 100644 --- a/samples/client/petstore/php/psr-18/lib/ObjectSerializer.php +++ b/samples/client/petstore/php/psr-18/lib/ObjectSerializer.php @@ -19,7 +19,6 @@ * Generated by: https://openapi-generator.tech * Generator version: 7.10.0-SNAPSHOT */ - /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnum.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnum.ps1 index 0f7cd366d1aa..d30c5d460435 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnum.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnum.ps1 @@ -23,4 +23,3 @@ enum OuterEnum { # enum value: "delivered" delivered } - diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumDefaultValue.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumDefaultValue.ps1 index 2469d1e291d3..187ae6e5564f 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumDefaultValue.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumDefaultValue.ps1 @@ -23,4 +23,3 @@ enum OuterEnumDefaultValue { # enum value: "delivered" delivered } - diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumInteger.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumInteger.ps1 index 70f68d06e295..ba3f9b71f06f 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumInteger.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumInteger.ps1 @@ -23,4 +23,3 @@ enum OuterEnumInteger { # enum value: "2" NUMBER_2 } - diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumIntegerDefaultValue.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumIntegerDefaultValue.ps1 index ae57281c9757..3458e2821497 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumIntegerDefaultValue.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/OuterEnumIntegerDefaultValue.ps1 @@ -23,4 +23,3 @@ enum OuterEnumIntegerDefaultValue { # enum value: "2" NUMBER_2 } - diff --git a/samples/client/petstore/ruby-autoload/docs/AdditionalPropertiesClass.md b/samples/client/petstore/ruby-autoload/docs/AdditionalPropertiesClass.md index 4e1cdc869f5a..90ed515e2127 100644 --- a/samples/client/petstore/ruby-autoload/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-autoload/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ instance = Petstore::AdditionalPropertiesClass.new( map_of_map_property: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/AllOfWithSingleRef.md b/samples/client/petstore/ruby-autoload/docs/AllOfWithSingleRef.md index 3c14ac91c4aa..3584c4edba45 100644 --- a/samples/client/petstore/ruby-autoload/docs/AllOfWithSingleRef.md +++ b/samples/client/petstore/ruby-autoload/docs/AllOfWithSingleRef.md @@ -17,4 +17,3 @@ instance = Petstore::AllOfWithSingleRef.new( single_ref_type: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Animal.md b/samples/client/petstore/ruby-autoload/docs/Animal.md index 286ce80cb218..e58a9fc4b90f 100644 --- a/samples/client/petstore/ruby-autoload/docs/Animal.md +++ b/samples/client/petstore/ruby-autoload/docs/Animal.md @@ -17,4 +17,3 @@ instance = Petstore::Animal.new( color: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ApiResponse.md b/samples/client/petstore/ruby-autoload/docs/ApiResponse.md index be28c4fbb5a2..a00ec9a1c896 100644 --- a/samples/client/petstore/ruby-autoload/docs/ApiResponse.md +++ b/samples/client/petstore/ruby-autoload/docs/ApiResponse.md @@ -19,4 +19,3 @@ instance = Petstore::ApiResponse.new( message: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/ruby-autoload/docs/ArrayOfArrayOfNumberOnly.md index eb5b3f43bcdd..c13e9e4563ec 100644 --- a/samples/client/petstore/ruby-autoload/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-autoload/docs/ArrayOfArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfArrayOfNumberOnly.new( array_array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ArrayOfNumberOnly.md b/samples/client/petstore/ruby-autoload/docs/ArrayOfNumberOnly.md index 18b6c0f69040..9b3051a9d55f 100644 --- a/samples/client/petstore/ruby-autoload/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-autoload/docs/ArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfNumberOnly.new( array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ArrayTest.md b/samples/client/petstore/ruby-autoload/docs/ArrayTest.md index 8ee02d169eab..dd2973011624 100644 --- a/samples/client/petstore/ruby-autoload/docs/ArrayTest.md +++ b/samples/client/petstore/ruby-autoload/docs/ArrayTest.md @@ -19,4 +19,3 @@ instance = Petstore::ArrayTest.new( array_array_of_model: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Capitalization.md b/samples/client/petstore/ruby-autoload/docs/Capitalization.md index a34377e7976c..7e2575d4135a 100644 --- a/samples/client/petstore/ruby-autoload/docs/Capitalization.md +++ b/samples/client/petstore/ruby-autoload/docs/Capitalization.md @@ -25,4 +25,3 @@ instance = Petstore::Capitalization.new( att_name: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Cat.md b/samples/client/petstore/ruby-autoload/docs/Cat.md index 67168c776607..cf12a085e9fd 100644 --- a/samples/client/petstore/ruby-autoload/docs/Cat.md +++ b/samples/client/petstore/ruby-autoload/docs/Cat.md @@ -15,4 +15,3 @@ instance = Petstore::Cat.new( declawed: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Category.md b/samples/client/petstore/ruby-autoload/docs/Category.md index f92706fd24de..eaf9fec5d4a6 100644 --- a/samples/client/petstore/ruby-autoload/docs/Category.md +++ b/samples/client/petstore/ruby-autoload/docs/Category.md @@ -17,4 +17,3 @@ instance = Petstore::Category.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ChildWithNullable.md b/samples/client/petstore/ruby-autoload/docs/ChildWithNullable.md index 3e6ffffc4d30..11573805f866 100644 --- a/samples/client/petstore/ruby-autoload/docs/ChildWithNullable.md +++ b/samples/client/petstore/ruby-autoload/docs/ChildWithNullable.md @@ -15,4 +15,3 @@ instance = Petstore::ChildWithNullable.new( other_property: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ClassModel.md b/samples/client/petstore/ruby-autoload/docs/ClassModel.md index e88b4c0c7b4c..64271d8fef40 100644 --- a/samples/client/petstore/ruby-autoload/docs/ClassModel.md +++ b/samples/client/petstore/ruby-autoload/docs/ClassModel.md @@ -15,4 +15,3 @@ instance = Petstore::ClassModel.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Client.md b/samples/client/petstore/ruby-autoload/docs/Client.md index 17778a6b0f2e..c04f9baeaf82 100644 --- a/samples/client/petstore/ruby-autoload/docs/Client.md +++ b/samples/client/petstore/ruby-autoload/docs/Client.md @@ -15,4 +15,3 @@ instance = Petstore::Client.new( client: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/DeprecatedObject.md b/samples/client/petstore/ruby-autoload/docs/DeprecatedObject.md index 143be46c4115..bfaea6f73b43 100644 --- a/samples/client/petstore/ruby-autoload/docs/DeprecatedObject.md +++ b/samples/client/petstore/ruby-autoload/docs/DeprecatedObject.md @@ -15,4 +15,3 @@ instance = Petstore::DeprecatedObject.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Dog.md b/samples/client/petstore/ruby-autoload/docs/Dog.md index 2649c58c0052..7a5c60746fce 100644 --- a/samples/client/petstore/ruby-autoload/docs/Dog.md +++ b/samples/client/petstore/ruby-autoload/docs/Dog.md @@ -15,4 +15,3 @@ instance = Petstore::Dog.new( breed: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/EnumArrays.md b/samples/client/petstore/ruby-autoload/docs/EnumArrays.md index cd3d076ad971..044240f6f685 100644 --- a/samples/client/petstore/ruby-autoload/docs/EnumArrays.md +++ b/samples/client/petstore/ruby-autoload/docs/EnumArrays.md @@ -17,4 +17,3 @@ instance = Petstore::EnumArrays.new( array_enum: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/EnumClass.md b/samples/client/petstore/ruby-autoload/docs/EnumClass.md index 099e6e47ec84..3f539ca669de 100644 --- a/samples/client/petstore/ruby-autoload/docs/EnumClass.md +++ b/samples/client/petstore/ruby-autoload/docs/EnumClass.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::EnumClass.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/EnumTest.md b/samples/client/petstore/ruby-autoload/docs/EnumTest.md index fad21de8ae12..2b54c6a1b1e9 100644 --- a/samples/client/petstore/ruby-autoload/docs/EnumTest.md +++ b/samples/client/petstore/ruby-autoload/docs/EnumTest.md @@ -29,4 +29,3 @@ instance = Petstore::EnumTest.new( outer_enum_integer_default_value: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/ruby-autoload/docs/FakeBigDecimalMap200Response.md index f564c4385e8f..1f3811a99bc5 100644 --- a/samples/client/petstore/ruby-autoload/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/ruby-autoload/docs/FakeBigDecimalMap200Response.md @@ -17,4 +17,3 @@ instance = Petstore::FakeBigDecimalMap200Response.new( some_map: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/File.md b/samples/client/petstore/ruby-autoload/docs/File.md index 5cbc12979092..1f65d0cb0fd7 100644 --- a/samples/client/petstore/ruby-autoload/docs/File.md +++ b/samples/client/petstore/ruby-autoload/docs/File.md @@ -15,4 +15,3 @@ instance = Petstore::File.new( source_uri: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/FileSchemaTestClass.md b/samples/client/petstore/ruby-autoload/docs/FileSchemaTestClass.md index d9dbef2348e1..d6e73193058a 100644 --- a/samples/client/petstore/ruby-autoload/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/ruby-autoload/docs/FileSchemaTestClass.md @@ -17,4 +17,3 @@ instance = Petstore::FileSchemaTestClass.new( files: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Foo.md b/samples/client/petstore/ruby-autoload/docs/Foo.md index 3a826f6ae70d..faafe0606424 100644 --- a/samples/client/petstore/ruby-autoload/docs/Foo.md +++ b/samples/client/petstore/ruby-autoload/docs/Foo.md @@ -15,4 +15,3 @@ instance = Petstore::Foo.new( bar: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/FooGetDefaultResponse.md b/samples/client/petstore/ruby-autoload/docs/FooGetDefaultResponse.md index 915e059d9246..401a2d5dc272 100644 --- a/samples/client/petstore/ruby-autoload/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/ruby-autoload/docs/FooGetDefaultResponse.md @@ -15,4 +15,3 @@ instance = Petstore::FooGetDefaultResponse.new( string: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/FormatTest.md b/samples/client/petstore/ruby-autoload/docs/FormatTest.md index a790ce448359..24e4d6f1995a 100644 --- a/samples/client/petstore/ruby-autoload/docs/FormatTest.md +++ b/samples/client/petstore/ruby-autoload/docs/FormatTest.md @@ -45,4 +45,3 @@ instance = Petstore::FormatTest.new( pattern_with_digits_and_delimiter: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/HasOnlyReadOnly.md b/samples/client/petstore/ruby-autoload/docs/HasOnlyReadOnly.md index 6d8dbfd0ad69..9f2f436f0106 100644 --- a/samples/client/petstore/ruby-autoload/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/ruby-autoload/docs/HasOnlyReadOnly.md @@ -17,4 +17,3 @@ instance = Petstore::HasOnlyReadOnly.new( foo: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/HealthCheckResult.md b/samples/client/petstore/ruby-autoload/docs/HealthCheckResult.md index 5695ceb488e6..33827536e5aa 100644 --- a/samples/client/petstore/ruby-autoload/docs/HealthCheckResult.md +++ b/samples/client/petstore/ruby-autoload/docs/HealthCheckResult.md @@ -15,4 +15,3 @@ instance = Petstore::HealthCheckResult.new( nullable_message: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/List.md b/samples/client/petstore/ruby-autoload/docs/List.md index 42467415e727..bb9fbfdd9fdd 100644 --- a/samples/client/petstore/ruby-autoload/docs/List.md +++ b/samples/client/petstore/ruby-autoload/docs/List.md @@ -15,4 +15,3 @@ instance = Petstore::List.new( _123_list: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/MapTest.md b/samples/client/petstore/ruby-autoload/docs/MapTest.md index 58bc13272477..9bc874f644ce 100644 --- a/samples/client/petstore/ruby-autoload/docs/MapTest.md +++ b/samples/client/petstore/ruby-autoload/docs/MapTest.md @@ -21,4 +21,3 @@ instance = Petstore::MapTest.new( indirect_map: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/ruby-autoload/docs/MixedPropertiesAndAdditionalPropertiesClass.md index c7d57c85ddd0..c8e69f36d421 100644 --- a/samples/client/petstore/ruby-autoload/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-autoload/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -19,4 +19,3 @@ instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new( map: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Model200Response.md b/samples/client/petstore/ruby-autoload/docs/Model200Response.md index 2eee7ded7598..7cfa65aa7c9e 100644 --- a/samples/client/petstore/ruby-autoload/docs/Model200Response.md +++ b/samples/client/petstore/ruby-autoload/docs/Model200Response.md @@ -17,4 +17,3 @@ instance = Petstore::Model200Response.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ModelReturn.md b/samples/client/petstore/ruby-autoload/docs/ModelReturn.md index bbcb5307f4b2..37a5e5a0c8b9 100644 --- a/samples/client/petstore/ruby-autoload/docs/ModelReturn.md +++ b/samples/client/petstore/ruby-autoload/docs/ModelReturn.md @@ -15,4 +15,3 @@ instance = Petstore::ModelReturn.new( _return: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Name.md b/samples/client/petstore/ruby-autoload/docs/Name.md index 9ff05587cbd2..a91968fcd309 100644 --- a/samples/client/petstore/ruby-autoload/docs/Name.md +++ b/samples/client/petstore/ruby-autoload/docs/Name.md @@ -21,4 +21,3 @@ instance = Petstore::Name.new( _123_number: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/NullableClass.md b/samples/client/petstore/ruby-autoload/docs/NullableClass.md index 761bfd807320..df2aefc1b8a9 100644 --- a/samples/client/petstore/ruby-autoload/docs/NullableClass.md +++ b/samples/client/petstore/ruby-autoload/docs/NullableClass.md @@ -37,4 +37,3 @@ instance = Petstore::NullableClass.new( object_items_nullable: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/NumberOnly.md b/samples/client/petstore/ruby-autoload/docs/NumberOnly.md index 540e736c8a5b..2d2fba92c211 100644 --- a/samples/client/petstore/ruby-autoload/docs/NumberOnly.md +++ b/samples/client/petstore/ruby-autoload/docs/NumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::NumberOnly.new( just_number: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/ruby-autoload/docs/ObjectWithDeprecatedFields.md index 6658759209be..95957818b78b 100644 --- a/samples/client/petstore/ruby-autoload/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/ruby-autoload/docs/ObjectWithDeprecatedFields.md @@ -21,4 +21,3 @@ instance = Petstore::ObjectWithDeprecatedFields.new( bars: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Order.md b/samples/client/petstore/ruby-autoload/docs/Order.md index a3fd55138068..9ffc4b323076 100644 --- a/samples/client/petstore/ruby-autoload/docs/Order.md +++ b/samples/client/petstore/ruby-autoload/docs/Order.md @@ -25,4 +25,3 @@ instance = Petstore::Order.new( complete: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterComposite.md b/samples/client/petstore/ruby-autoload/docs/OuterComposite.md index 03f9386e5f18..f1308265d7a3 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterComposite.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterComposite.md @@ -19,4 +19,3 @@ instance = Petstore::OuterComposite.new( my_boolean: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterEnum.md b/samples/client/petstore/ruby-autoload/docs/OuterEnum.md index 9c81b44ae772..9a48108fc7a8 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterEnum.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterEnum.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnum.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterEnumDefaultValue.md b/samples/client/petstore/ruby-autoload/docs/OuterEnumDefaultValue.md index be1f48a846f9..348c3738a41b 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterEnumInteger.md b/samples/client/petstore/ruby-autoload/docs/OuterEnumInteger.md index 80f46c1e0d0d..c45063111fa7 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterEnumInteger.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumInteger.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/ruby-autoload/docs/OuterEnumIntegerDefaultValue.md index 38fbfd638aca..1ffa188c051d 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumIntegerDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/ruby-autoload/docs/OuterObjectWithEnumProperty.md index dfd9de4596ef..2588d07025c8 100644 --- a/samples/client/petstore/ruby-autoload/docs/OuterObjectWithEnumProperty.md +++ b/samples/client/petstore/ruby-autoload/docs/OuterObjectWithEnumProperty.md @@ -15,4 +15,3 @@ instance = Petstore::OuterObjectWithEnumProperty.new( value: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ParentWithNullable.md b/samples/client/petstore/ruby-autoload/docs/ParentWithNullable.md index 0c77bf999dcb..8b766109f24a 100644 --- a/samples/client/petstore/ruby-autoload/docs/ParentWithNullable.md +++ b/samples/client/petstore/ruby-autoload/docs/ParentWithNullable.md @@ -17,4 +17,3 @@ instance = Petstore::ParentWithNullable.new( nullable_property: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Pet.md b/samples/client/petstore/ruby-autoload/docs/Pet.md index 13f34d7d167e..78dda076209a 100644 --- a/samples/client/petstore/ruby-autoload/docs/Pet.md +++ b/samples/client/petstore/ruby-autoload/docs/Pet.md @@ -25,4 +25,3 @@ instance = Petstore::Pet.new( status: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/ReadOnlyFirst.md b/samples/client/petstore/ruby-autoload/docs/ReadOnlyFirst.md index bed355e261c3..d3ff74c7545e 100644 --- a/samples/client/petstore/ruby-autoload/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/ruby-autoload/docs/ReadOnlyFirst.md @@ -17,4 +17,3 @@ instance = Petstore::ReadOnlyFirst.new( baz: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/SingleRefType.md b/samples/client/petstore/ruby-autoload/docs/SingleRefType.md index 1f997e7bf8d9..6240cca7111e 100644 --- a/samples/client/petstore/ruby-autoload/docs/SingleRefType.md +++ b/samples/client/petstore/ruby-autoload/docs/SingleRefType.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::SingleRefType.new() ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/SpecialModelName.md b/samples/client/petstore/ruby-autoload/docs/SpecialModelName.md index 6a5169191d33..e072868445c3 100644 --- a/samples/client/petstore/ruby-autoload/docs/SpecialModelName.md +++ b/samples/client/petstore/ruby-autoload/docs/SpecialModelName.md @@ -15,4 +15,3 @@ instance = Petstore::SpecialModelName.new( special_property_name: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/Tag.md b/samples/client/petstore/ruby-autoload/docs/Tag.md index f29ee058b01a..197129df058f 100644 --- a/samples/client/petstore/ruby-autoload/docs/Tag.md +++ b/samples/client/petstore/ruby-autoload/docs/Tag.md @@ -17,4 +17,3 @@ instance = Petstore::Tag.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/ruby-autoload/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c976800c1818..4a12a9dba001 100644 --- a/samples/client/petstore/ruby-autoload/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/ruby-autoload/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -15,4 +15,3 @@ instance = Petstore::TestInlineFreeformAdditionalPropertiesRequest.new( some_property: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/docs/User.md b/samples/client/petstore/ruby-autoload/docs/User.md index 1dab27adba2b..dd7c16718597 100644 --- a/samples/client/petstore/ruby-autoload/docs/User.md +++ b/samples/client/petstore/ruby-autoload/docs/User.md @@ -29,4 +29,3 @@ instance = Petstore::User.new( user_status: null ) ``` - diff --git a/samples/client/petstore/ruby-autoload/lib/petstore.rb b/samples/client/petstore/ruby-autoload/lib/petstore.rb index 1df8bd876b38..96ddffeec879 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/another_fake_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/another_fake_api.rb index 2cd28463257d..b0b3001ed559 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/another_fake_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/another_fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/default_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/default_api.rb index 69b648b1f923..fd81f0e8169a 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/default_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/default_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb index 6cd08765cc92..7208e54188f4 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_classname_tags123_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_classname_tags123_api.rb index defb5d7dc947..80dbc48cb0ac 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_classname_tags123_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_classname_tags123_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb index bfe5db16a7f3..f8cb98322e5d 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/pet_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb index 87261710ee02..dab65a32ca00 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/store_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb index b03527389648..4b134741b717 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/user_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api_client.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api_client.rb index 9dccaa5b271a..75d1f79f6516 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api_client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -202,7 +201,6 @@ def download_file(request) tempfile end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api_error.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api_error.rb index 03b8f10b4f00..90e1aa0ea226 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api_error.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api_error.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/configuration.rb b/samples/client/petstore/ruby-autoload/lib/petstore/configuration.rb index a21cb27d2c0d..16464814d200 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/configuration.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore @@ -151,7 +150,6 @@ class Configuration # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 attr_accessor :params_encoding - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/additional_properties_class.rb index 08181524c0aa..c272a95715e7 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -221,7 +220,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb index c8a82eaacc1c..f849064886b3 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/all_of_with_single_ref.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -239,7 +238,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/animal.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/animal.rb index e0f55e9637da..d25724024458 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/animal.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/animal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -231,7 +230,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/api_response.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/api_response.rb index 54e3d1351226..fba838ec89d3 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/api_response.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/api_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_array_of_number_only.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_array_of_number_only.rb index e45247f6ea21..51264f41e45a 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_number_only.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_number_only.rb index 55934845105e..48064064fbd8 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_number_only.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_test.rb index a88e01c3bdc7..0995478313dd 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/array_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/array_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -260,7 +259,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/capitalization.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/capitalization.rb index 82692d850395..056e8e5fe974 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/capitalization.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/capitalization.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/cat.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/cat.rb index 64c6938b0aa5..9e6bbcc362ca 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/cat.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/cat.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/category.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/category.rb index e44364ee02ea..b65bb4d3a3a5 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/category.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/category.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -224,7 +223,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/child_with_nullable.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/child_with_nullable.rb index 6c2899b24ed0..cdae47501e23 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/child_with_nullable.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/child_with_nullable.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -241,7 +240,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/class_model.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/class_model.rb index 7c209246e3b5..4f16d4da00a1 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/class_model.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/class_model.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/client.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/client.rb index de0685d0b047..237af3e41dfa 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/client.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/deprecated_object.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/deprecated_object.rb index f2e7f9ecf087..a3d055b8e6f3 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/deprecated_object.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/deprecated_object.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/dog.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/dog.rb index 6b463d10e2a4..48bc263d35fe 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/dog.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/dog.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_arrays.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_arrays.rb index 9b6e43025b52..384df658efc6 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_arrays.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_arrays.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -253,7 +252,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_class.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_class.rb index a7b08629698d..8b842fc79cd4 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_class.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if EnumClass.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EnumClass" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb index 6313d9b94be7..a2941e29df5c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -353,7 +352,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/fake_big_decimal_map200_response.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/fake_big_decimal_map200_response.rb index db2e36a025b6..13764e427d1c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/fake_big_decimal_map200_response.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/fake_big_decimal_map200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/file.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/file.rb index 8edc5de06b67..c69536d23188 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/file.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/file.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/file_schema_test_class.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/file_schema_test_class.rb index e99905069f8c..d1224225bb0a 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/file_schema_test_class.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/file_schema_test_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/foo.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/foo.rb index 5bb64a989333..7fd661403460 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/foo.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/foo.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/foo_get_default_response.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/foo_get_default_response.rb index dd618bd66f3a..ce96c3e73b73 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/foo_get_default_response.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/foo_get_default_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb index 7f85817a5b93..f6f371396539 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/format_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -604,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/has_only_read_only.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/has_only_read_only.rb index 9b61c9ce75e6..1c6bdf4a7db4 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/has_only_read_only.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/has_only_read_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/health_check_result.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/health_check_result.rb index 43d4bf247e8b..6808e8bd875b 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/health_check_result.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/health_check_result.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/list.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/list.rb index 7e00018ae115..0fa355d72ad4 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/list.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/list.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/map_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/map_test.rb index 139752730bda..51714a23a499 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/map_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/map_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -265,7 +264,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index b7703c11d632..8130296d4059 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -228,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/model200_response.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/model200_response.rb index b0f319099189..843358f0cb99 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/model200_response.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/model200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -218,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/model_return.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/model_return.rb index a1b2791519bd..74c53e8453e2 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/model_return.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/model_return.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/name.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/name.rb index 05739286c7c1..ecb7b668ac4f 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/name.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/nullable_class.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/nullable_class.rb index 2c04a3c31eab..69d27bd530a6 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/nullable_class.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/nullable_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -329,7 +328,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/number_only.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/number_only.rb index d03d015a9c55..8a91a3a90371 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/number_only.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/object_with_deprecated_fields.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/object_with_deprecated_fields.rb index c02ef6bd20cd..2e6388844752 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/object_with_deprecated_fields.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/object_with_deprecated_fields.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/order.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/order.rb index e116c53034bc..11bee206b83d 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/order.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/order.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -290,7 +289,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_composite.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_composite.rb index a4a970788aaf..bcf50fa09d3d 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_composite.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_composite.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum.rb index 38254bd77b6b..e9859f39c9e2 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnum" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_default_value.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_default_value.rb index 74e0dbd8433a..ed092c06034c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_default_value.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer.rb index aafc9d66979c..dcdd8de64112 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumInteger.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumInteger" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer_default_value.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer_default_value.rb index 08e22c090514..fb5899a81d92 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer_default_value.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_enum_integer_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumIntegerDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumIntegerDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_object_with_enum_property.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_object_with_enum_property.rb index 107c1ead0127..15b15c7154e1 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_object_with_enum_property.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/outer_object_with_enum_property.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/parent_with_nullable.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/parent_with_nullable.rb index f4ded8f1490f..612a5a0a5c76 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/parent_with_nullable.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/parent_with_nullable.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -257,7 +256,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/pet.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/pet.rb index f3e6eb07f60d..fc59b5e0901b 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/pet.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/pet.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -316,7 +315,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/read_only_first.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/read_only_first.rb index 1cf4d334b369..c022a40d188c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/read_only_first.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/read_only_first.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/single_ref_type.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/single_ref_type.rb index be8431452858..b234793a9f28 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/single_ref_type.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/single_ref_type.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if SingleRefType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SingleRefType" end - end -end + endend diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/special_model_name.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/special_model_name.rb index e4f2aca8c203..6c9428aa5fb5 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/special_model_name.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/special_model_name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/tag.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/tag.rb index 9fb4a02e32af..6bb530ee1e1c 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/tag.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/tag.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/test_inline_freeform_additional_properties_request.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/test_inline_freeform_additional_properties_request.rb index a50b95435817..e4175513a6af 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/test_inline_freeform_additional_properties_request.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/test_inline_freeform_additional_properties_request.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/user.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/user.rb index 05bb872a984a..b60474f3b86d 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/user.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/user.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -272,7 +271,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/version.rb b/samples/client/petstore/ruby-autoload/lib/petstore/version.rb index 1e9e2dbfd9e4..b7ac1a5e784a 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/version.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/version.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-autoload/petstore.gemspec b/samples/client/petstore/ruby-autoload/petstore.gemspec index d0b9c9d056e5..02d3dca2b4a8 100644 --- a/samples/client/petstore/ruby-autoload/petstore.gemspec +++ b/samples/client/petstore/ruby-autoload/petstore.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/petstore/ruby-autoload/spec/spec_helper.rb b/samples/client/petstore/ruby-autoload/spec/spec_helper.rb index bef56f59327b..9f275730ffb4 100644 --- a/samples/client/petstore/ruby-autoload/spec/spec_helper.rb +++ b/samples/client/petstore/ruby-autoload/spec/spec_helper.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/petstore/ruby-faraday/docs/AdditionalPropertiesClass.md b/samples/client/petstore/ruby-faraday/docs/AdditionalPropertiesClass.md index 4e1cdc869f5a..90ed515e2127 100644 --- a/samples/client/petstore/ruby-faraday/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-faraday/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ instance = Petstore::AdditionalPropertiesClass.new( map_of_map_property: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/AllOfWithSingleRef.md b/samples/client/petstore/ruby-faraday/docs/AllOfWithSingleRef.md index 3c14ac91c4aa..3584c4edba45 100644 --- a/samples/client/petstore/ruby-faraday/docs/AllOfWithSingleRef.md +++ b/samples/client/petstore/ruby-faraday/docs/AllOfWithSingleRef.md @@ -17,4 +17,3 @@ instance = Petstore::AllOfWithSingleRef.new( single_ref_type: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Animal.md b/samples/client/petstore/ruby-faraday/docs/Animal.md index 286ce80cb218..e58a9fc4b90f 100644 --- a/samples/client/petstore/ruby-faraday/docs/Animal.md +++ b/samples/client/petstore/ruby-faraday/docs/Animal.md @@ -17,4 +17,3 @@ instance = Petstore::Animal.new( color: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ApiResponse.md b/samples/client/petstore/ruby-faraday/docs/ApiResponse.md index be28c4fbb5a2..a00ec9a1c896 100644 --- a/samples/client/petstore/ruby-faraday/docs/ApiResponse.md +++ b/samples/client/petstore/ruby-faraday/docs/ApiResponse.md @@ -19,4 +19,3 @@ instance = Petstore::ApiResponse.new( message: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/ruby-faraday/docs/ArrayOfArrayOfNumberOnly.md index eb5b3f43bcdd..c13e9e4563ec 100644 --- a/samples/client/petstore/ruby-faraday/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-faraday/docs/ArrayOfArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfArrayOfNumberOnly.new( array_array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ArrayOfNumberOnly.md b/samples/client/petstore/ruby-faraday/docs/ArrayOfNumberOnly.md index 18b6c0f69040..9b3051a9d55f 100644 --- a/samples/client/petstore/ruby-faraday/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-faraday/docs/ArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfNumberOnly.new( array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ArrayTest.md b/samples/client/petstore/ruby-faraday/docs/ArrayTest.md index 8ee02d169eab..dd2973011624 100644 --- a/samples/client/petstore/ruby-faraday/docs/ArrayTest.md +++ b/samples/client/petstore/ruby-faraday/docs/ArrayTest.md @@ -19,4 +19,3 @@ instance = Petstore::ArrayTest.new( array_array_of_model: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Capitalization.md b/samples/client/petstore/ruby-faraday/docs/Capitalization.md index a34377e7976c..7e2575d4135a 100644 --- a/samples/client/petstore/ruby-faraday/docs/Capitalization.md +++ b/samples/client/petstore/ruby-faraday/docs/Capitalization.md @@ -25,4 +25,3 @@ instance = Petstore::Capitalization.new( att_name: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Cat.md b/samples/client/petstore/ruby-faraday/docs/Cat.md index 67168c776607..cf12a085e9fd 100644 --- a/samples/client/petstore/ruby-faraday/docs/Cat.md +++ b/samples/client/petstore/ruby-faraday/docs/Cat.md @@ -15,4 +15,3 @@ instance = Petstore::Cat.new( declawed: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Category.md b/samples/client/petstore/ruby-faraday/docs/Category.md index f92706fd24de..eaf9fec5d4a6 100644 --- a/samples/client/petstore/ruby-faraday/docs/Category.md +++ b/samples/client/petstore/ruby-faraday/docs/Category.md @@ -17,4 +17,3 @@ instance = Petstore::Category.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ChildWithNullable.md b/samples/client/petstore/ruby-faraday/docs/ChildWithNullable.md index 3e6ffffc4d30..11573805f866 100644 --- a/samples/client/petstore/ruby-faraday/docs/ChildWithNullable.md +++ b/samples/client/petstore/ruby-faraday/docs/ChildWithNullable.md @@ -15,4 +15,3 @@ instance = Petstore::ChildWithNullable.new( other_property: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ClassModel.md b/samples/client/petstore/ruby-faraday/docs/ClassModel.md index e88b4c0c7b4c..64271d8fef40 100644 --- a/samples/client/petstore/ruby-faraday/docs/ClassModel.md +++ b/samples/client/petstore/ruby-faraday/docs/ClassModel.md @@ -15,4 +15,3 @@ instance = Petstore::ClassModel.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Client.md b/samples/client/petstore/ruby-faraday/docs/Client.md index 17778a6b0f2e..c04f9baeaf82 100644 --- a/samples/client/petstore/ruby-faraday/docs/Client.md +++ b/samples/client/petstore/ruby-faraday/docs/Client.md @@ -15,4 +15,3 @@ instance = Petstore::Client.new( client: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/DeprecatedObject.md b/samples/client/petstore/ruby-faraday/docs/DeprecatedObject.md index 143be46c4115..bfaea6f73b43 100644 --- a/samples/client/petstore/ruby-faraday/docs/DeprecatedObject.md +++ b/samples/client/petstore/ruby-faraday/docs/DeprecatedObject.md @@ -15,4 +15,3 @@ instance = Petstore::DeprecatedObject.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Dog.md b/samples/client/petstore/ruby-faraday/docs/Dog.md index 2649c58c0052..7a5c60746fce 100644 --- a/samples/client/petstore/ruby-faraday/docs/Dog.md +++ b/samples/client/petstore/ruby-faraday/docs/Dog.md @@ -15,4 +15,3 @@ instance = Petstore::Dog.new( breed: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/EnumArrays.md b/samples/client/petstore/ruby-faraday/docs/EnumArrays.md index cd3d076ad971..044240f6f685 100644 --- a/samples/client/petstore/ruby-faraday/docs/EnumArrays.md +++ b/samples/client/petstore/ruby-faraday/docs/EnumArrays.md @@ -17,4 +17,3 @@ instance = Petstore::EnumArrays.new( array_enum: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/EnumClass.md b/samples/client/petstore/ruby-faraday/docs/EnumClass.md index 099e6e47ec84..3f539ca669de 100644 --- a/samples/client/petstore/ruby-faraday/docs/EnumClass.md +++ b/samples/client/petstore/ruby-faraday/docs/EnumClass.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::EnumClass.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/EnumTest.md b/samples/client/petstore/ruby-faraday/docs/EnumTest.md index fad21de8ae12..2b54c6a1b1e9 100644 --- a/samples/client/petstore/ruby-faraday/docs/EnumTest.md +++ b/samples/client/petstore/ruby-faraday/docs/EnumTest.md @@ -29,4 +29,3 @@ instance = Petstore::EnumTest.new( outer_enum_integer_default_value: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/ruby-faraday/docs/FakeBigDecimalMap200Response.md index f564c4385e8f..1f3811a99bc5 100644 --- a/samples/client/petstore/ruby-faraday/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/ruby-faraday/docs/FakeBigDecimalMap200Response.md @@ -17,4 +17,3 @@ instance = Petstore::FakeBigDecimalMap200Response.new( some_map: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/File.md b/samples/client/petstore/ruby-faraday/docs/File.md index 5cbc12979092..1f65d0cb0fd7 100644 --- a/samples/client/petstore/ruby-faraday/docs/File.md +++ b/samples/client/petstore/ruby-faraday/docs/File.md @@ -15,4 +15,3 @@ instance = Petstore::File.new( source_uri: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/FileSchemaTestClass.md b/samples/client/petstore/ruby-faraday/docs/FileSchemaTestClass.md index d9dbef2348e1..d6e73193058a 100644 --- a/samples/client/petstore/ruby-faraday/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/ruby-faraday/docs/FileSchemaTestClass.md @@ -17,4 +17,3 @@ instance = Petstore::FileSchemaTestClass.new( files: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Foo.md b/samples/client/petstore/ruby-faraday/docs/Foo.md index 3a826f6ae70d..faafe0606424 100644 --- a/samples/client/petstore/ruby-faraday/docs/Foo.md +++ b/samples/client/petstore/ruby-faraday/docs/Foo.md @@ -15,4 +15,3 @@ instance = Petstore::Foo.new( bar: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/FooGetDefaultResponse.md b/samples/client/petstore/ruby-faraday/docs/FooGetDefaultResponse.md index 915e059d9246..401a2d5dc272 100644 --- a/samples/client/petstore/ruby-faraday/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/ruby-faraday/docs/FooGetDefaultResponse.md @@ -15,4 +15,3 @@ instance = Petstore::FooGetDefaultResponse.new( string: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/FormatTest.md b/samples/client/petstore/ruby-faraday/docs/FormatTest.md index a790ce448359..24e4d6f1995a 100644 --- a/samples/client/petstore/ruby-faraday/docs/FormatTest.md +++ b/samples/client/petstore/ruby-faraday/docs/FormatTest.md @@ -45,4 +45,3 @@ instance = Petstore::FormatTest.new( pattern_with_digits_and_delimiter: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/HasOnlyReadOnly.md b/samples/client/petstore/ruby-faraday/docs/HasOnlyReadOnly.md index 6d8dbfd0ad69..9f2f436f0106 100644 --- a/samples/client/petstore/ruby-faraday/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/ruby-faraday/docs/HasOnlyReadOnly.md @@ -17,4 +17,3 @@ instance = Petstore::HasOnlyReadOnly.new( foo: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/HealthCheckResult.md b/samples/client/petstore/ruby-faraday/docs/HealthCheckResult.md index 5695ceb488e6..33827536e5aa 100644 --- a/samples/client/petstore/ruby-faraday/docs/HealthCheckResult.md +++ b/samples/client/petstore/ruby-faraday/docs/HealthCheckResult.md @@ -15,4 +15,3 @@ instance = Petstore::HealthCheckResult.new( nullable_message: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/List.md b/samples/client/petstore/ruby-faraday/docs/List.md index 42467415e727..bb9fbfdd9fdd 100644 --- a/samples/client/petstore/ruby-faraday/docs/List.md +++ b/samples/client/petstore/ruby-faraday/docs/List.md @@ -15,4 +15,3 @@ instance = Petstore::List.new( _123_list: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/MapTest.md b/samples/client/petstore/ruby-faraday/docs/MapTest.md index 58bc13272477..9bc874f644ce 100644 --- a/samples/client/petstore/ruby-faraday/docs/MapTest.md +++ b/samples/client/petstore/ruby-faraday/docs/MapTest.md @@ -21,4 +21,3 @@ instance = Petstore::MapTest.new( indirect_map: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/ruby-faraday/docs/MixedPropertiesAndAdditionalPropertiesClass.md index c7d57c85ddd0..c8e69f36d421 100644 --- a/samples/client/petstore/ruby-faraday/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-faraday/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -19,4 +19,3 @@ instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new( map: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Model200Response.md b/samples/client/petstore/ruby-faraday/docs/Model200Response.md index 2eee7ded7598..7cfa65aa7c9e 100644 --- a/samples/client/petstore/ruby-faraday/docs/Model200Response.md +++ b/samples/client/petstore/ruby-faraday/docs/Model200Response.md @@ -17,4 +17,3 @@ instance = Petstore::Model200Response.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ModelReturn.md b/samples/client/petstore/ruby-faraday/docs/ModelReturn.md index bbcb5307f4b2..37a5e5a0c8b9 100644 --- a/samples/client/petstore/ruby-faraday/docs/ModelReturn.md +++ b/samples/client/petstore/ruby-faraday/docs/ModelReturn.md @@ -15,4 +15,3 @@ instance = Petstore::ModelReturn.new( _return: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Name.md b/samples/client/petstore/ruby-faraday/docs/Name.md index 9ff05587cbd2..a91968fcd309 100644 --- a/samples/client/petstore/ruby-faraday/docs/Name.md +++ b/samples/client/petstore/ruby-faraday/docs/Name.md @@ -21,4 +21,3 @@ instance = Petstore::Name.new( _123_number: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/NullableClass.md b/samples/client/petstore/ruby-faraday/docs/NullableClass.md index 761bfd807320..df2aefc1b8a9 100644 --- a/samples/client/petstore/ruby-faraday/docs/NullableClass.md +++ b/samples/client/petstore/ruby-faraday/docs/NullableClass.md @@ -37,4 +37,3 @@ instance = Petstore::NullableClass.new( object_items_nullable: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/NumberOnly.md b/samples/client/petstore/ruby-faraday/docs/NumberOnly.md index 540e736c8a5b..2d2fba92c211 100644 --- a/samples/client/petstore/ruby-faraday/docs/NumberOnly.md +++ b/samples/client/petstore/ruby-faraday/docs/NumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::NumberOnly.new( just_number: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/ruby-faraday/docs/ObjectWithDeprecatedFields.md index 6658759209be..95957818b78b 100644 --- a/samples/client/petstore/ruby-faraday/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/ruby-faraday/docs/ObjectWithDeprecatedFields.md @@ -21,4 +21,3 @@ instance = Petstore::ObjectWithDeprecatedFields.new( bars: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Order.md b/samples/client/petstore/ruby-faraday/docs/Order.md index a3fd55138068..9ffc4b323076 100644 --- a/samples/client/petstore/ruby-faraday/docs/Order.md +++ b/samples/client/petstore/ruby-faraday/docs/Order.md @@ -25,4 +25,3 @@ instance = Petstore::Order.new( complete: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterComposite.md b/samples/client/petstore/ruby-faraday/docs/OuterComposite.md index 03f9386e5f18..f1308265d7a3 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterComposite.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterComposite.md @@ -19,4 +19,3 @@ instance = Petstore::OuterComposite.new( my_boolean: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterEnum.md b/samples/client/petstore/ruby-faraday/docs/OuterEnum.md index 9c81b44ae772..9a48108fc7a8 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterEnum.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterEnum.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnum.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterEnumDefaultValue.md b/samples/client/petstore/ruby-faraday/docs/OuterEnumDefaultValue.md index be1f48a846f9..348c3738a41b 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterEnumInteger.md b/samples/client/petstore/ruby-faraday/docs/OuterEnumInteger.md index 80f46c1e0d0d..c45063111fa7 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterEnumInteger.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumInteger.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/ruby-faraday/docs/OuterEnumIntegerDefaultValue.md index 38fbfd638aca..1ffa188c051d 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumIntegerDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/ruby-faraday/docs/OuterObjectWithEnumProperty.md index dfd9de4596ef..2588d07025c8 100644 --- a/samples/client/petstore/ruby-faraday/docs/OuterObjectWithEnumProperty.md +++ b/samples/client/petstore/ruby-faraday/docs/OuterObjectWithEnumProperty.md @@ -15,4 +15,3 @@ instance = Petstore::OuterObjectWithEnumProperty.new( value: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ParentWithNullable.md b/samples/client/petstore/ruby-faraday/docs/ParentWithNullable.md index 0c77bf999dcb..8b766109f24a 100644 --- a/samples/client/petstore/ruby-faraday/docs/ParentWithNullable.md +++ b/samples/client/petstore/ruby-faraday/docs/ParentWithNullable.md @@ -17,4 +17,3 @@ instance = Petstore::ParentWithNullable.new( nullable_property: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Pet.md b/samples/client/petstore/ruby-faraday/docs/Pet.md index 13f34d7d167e..78dda076209a 100644 --- a/samples/client/petstore/ruby-faraday/docs/Pet.md +++ b/samples/client/petstore/ruby-faraday/docs/Pet.md @@ -25,4 +25,3 @@ instance = Petstore::Pet.new( status: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/ReadOnlyFirst.md b/samples/client/petstore/ruby-faraday/docs/ReadOnlyFirst.md index bed355e261c3..d3ff74c7545e 100644 --- a/samples/client/petstore/ruby-faraday/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/ruby-faraday/docs/ReadOnlyFirst.md @@ -17,4 +17,3 @@ instance = Petstore::ReadOnlyFirst.new( baz: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/SingleRefType.md b/samples/client/petstore/ruby-faraday/docs/SingleRefType.md index 1f997e7bf8d9..6240cca7111e 100644 --- a/samples/client/petstore/ruby-faraday/docs/SingleRefType.md +++ b/samples/client/petstore/ruby-faraday/docs/SingleRefType.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::SingleRefType.new() ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/SpecialModelName.md b/samples/client/petstore/ruby-faraday/docs/SpecialModelName.md index 6a5169191d33..e072868445c3 100644 --- a/samples/client/petstore/ruby-faraday/docs/SpecialModelName.md +++ b/samples/client/petstore/ruby-faraday/docs/SpecialModelName.md @@ -15,4 +15,3 @@ instance = Petstore::SpecialModelName.new( special_property_name: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/Tag.md b/samples/client/petstore/ruby-faraday/docs/Tag.md index f29ee058b01a..197129df058f 100644 --- a/samples/client/petstore/ruby-faraday/docs/Tag.md +++ b/samples/client/petstore/ruby-faraday/docs/Tag.md @@ -17,4 +17,3 @@ instance = Petstore::Tag.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/ruby-faraday/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c976800c1818..4a12a9dba001 100644 --- a/samples/client/petstore/ruby-faraday/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/ruby-faraday/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -15,4 +15,3 @@ instance = Petstore::TestInlineFreeformAdditionalPropertiesRequest.new( some_property: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/docs/User.md b/samples/client/petstore/ruby-faraday/docs/User.md index 1dab27adba2b..dd7c16718597 100644 --- a/samples/client/petstore/ruby-faraday/docs/User.md +++ b/samples/client/petstore/ruby-faraday/docs/User.md @@ -29,4 +29,3 @@ instance = Petstore::User.new( user_status: null ) ``` - diff --git a/samples/client/petstore/ruby-faraday/lib/petstore.rb b/samples/client/petstore/ruby-faraday/lib/petstore.rb index 0f86582b33a3..933f72fbc421 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb index 2cd28463257d..b0b3001ed559 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/default_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/default_api.rb index 69b648b1f923..fd81f0e8169a 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/default_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/default_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb index 6cd08765cc92..7208e54188f4 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb index defb5d7dc947..80dbc48cb0ac 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb index 6925a879e4ce..bfd1942d3e28 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb index 30dceabe9939..0e3d34fdf012 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb index 059d0d45b0b9..8d85a39bce57 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb index 3547949fb27b..cfb9d54fef19 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -245,7 +244,6 @@ def basic_auth(conn) end end end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api_error.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api_error.rb index 03b8f10b4f00..90e1aa0ea226 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api_error.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api_error.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb b/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb index a1104fc4f202..b423ea3050ff 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/configuration.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore @@ -150,7 +149,6 @@ class Configuration # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders attr_accessor :params_encoder - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/additional_properties_class.rb index 08181524c0aa..c272a95715e7 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -221,7 +220,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/all_of_with_single_ref.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/all_of_with_single_ref.rb index c8a82eaacc1c..f849064886b3 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/all_of_with_single_ref.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/all_of_with_single_ref.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -239,7 +238,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/animal.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/animal.rb index e0f55e9637da..d25724024458 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/animal.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/animal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -231,7 +230,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/api_response.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/api_response.rb index 54e3d1351226..fba838ec89d3 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/api_response.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/api_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_array_of_number_only.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_array_of_number_only.rb index e45247f6ea21..51264f41e45a 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_number_only.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_number_only.rb index 55934845105e..48064064fbd8 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_number_only.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_test.rb index a88e01c3bdc7..0995478313dd 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/array_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/array_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -260,7 +259,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/capitalization.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/capitalization.rb index 82692d850395..056e8e5fe974 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/capitalization.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/capitalization.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/cat.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/cat.rb index 64c6938b0aa5..9e6bbcc362ca 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/cat.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/cat.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/category.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/category.rb index e44364ee02ea..b65bb4d3a3a5 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/category.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/category.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -224,7 +223,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/child_with_nullable.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/child_with_nullable.rb index 6c2899b24ed0..cdae47501e23 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/child_with_nullable.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/child_with_nullable.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -241,7 +240,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/class_model.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/class_model.rb index 7c209246e3b5..4f16d4da00a1 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/class_model.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/class_model.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/client.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/client.rb index de0685d0b047..237af3e41dfa 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/client.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/deprecated_object.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/deprecated_object.rb index f2e7f9ecf087..a3d055b8e6f3 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/deprecated_object.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/deprecated_object.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/dog.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/dog.rb index 6b463d10e2a4..48bc263d35fe 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/dog.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/dog.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_arrays.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_arrays.rb index 9b6e43025b52..384df658efc6 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_arrays.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_arrays.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -253,7 +252,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_class.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_class.rb index a7b08629698d..8b842fc79cd4 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_class.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if EnumClass.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EnumClass" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb index 6313d9b94be7..a2941e29df5c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -353,7 +352,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/fake_big_decimal_map200_response.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/fake_big_decimal_map200_response.rb index db2e36a025b6..13764e427d1c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/fake_big_decimal_map200_response.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/fake_big_decimal_map200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/file.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/file.rb index 8edc5de06b67..c69536d23188 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/file.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/file.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/file_schema_test_class.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/file_schema_test_class.rb index e99905069f8c..d1224225bb0a 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/file_schema_test_class.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/file_schema_test_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/foo.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/foo.rb index 5bb64a989333..7fd661403460 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/foo.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/foo.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/foo_get_default_response.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/foo_get_default_response.rb index dd618bd66f3a..ce96c3e73b73 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/foo_get_default_response.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/foo_get_default_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb index 7f85817a5b93..f6f371396539 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/format_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -604,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/has_only_read_only.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/has_only_read_only.rb index 9b61c9ce75e6..1c6bdf4a7db4 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/has_only_read_only.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/has_only_read_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/health_check_result.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/health_check_result.rb index 43d4bf247e8b..6808e8bd875b 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/health_check_result.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/health_check_result.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/list.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/list.rb index 7e00018ae115..0fa355d72ad4 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/list.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/list.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/map_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/map_test.rb index 139752730bda..51714a23a499 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/map_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/map_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -265,7 +264,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index b7703c11d632..8130296d4059 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -228,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/model200_response.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/model200_response.rb index b0f319099189..843358f0cb99 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/model200_response.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/model200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -218,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/model_return.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/model_return.rb index a1b2791519bd..74c53e8453e2 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/model_return.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/model_return.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/name.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/name.rb index 05739286c7c1..ecb7b668ac4f 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/name.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/nullable_class.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/nullable_class.rb index 2c04a3c31eab..69d27bd530a6 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/nullable_class.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/nullable_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -329,7 +328,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/number_only.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/number_only.rb index d03d015a9c55..8a91a3a90371 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/number_only.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/object_with_deprecated_fields.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/object_with_deprecated_fields.rb index c02ef6bd20cd..2e6388844752 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/object_with_deprecated_fields.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/object_with_deprecated_fields.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/order.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/order.rb index e116c53034bc..11bee206b83d 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/order.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/order.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -290,7 +289,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_composite.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_composite.rb index a4a970788aaf..bcf50fa09d3d 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_composite.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_composite.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum.rb index 38254bd77b6b..e9859f39c9e2 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnum" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_default_value.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_default_value.rb index 74e0dbd8433a..ed092c06034c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_default_value.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer.rb index aafc9d66979c..dcdd8de64112 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumInteger.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumInteger" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer_default_value.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer_default_value.rb index 08e22c090514..fb5899a81d92 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer_default_value.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_enum_integer_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumIntegerDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumIntegerDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_object_with_enum_property.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_object_with_enum_property.rb index 107c1ead0127..15b15c7154e1 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_object_with_enum_property.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/outer_object_with_enum_property.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/parent_with_nullable.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/parent_with_nullable.rb index f4ded8f1490f..612a5a0a5c76 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/parent_with_nullable.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/parent_with_nullable.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -257,7 +256,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/pet.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/pet.rb index f3e6eb07f60d..fc59b5e0901b 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/pet.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/pet.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -316,7 +315,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/read_only_first.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/read_only_first.rb index 1cf4d334b369..c022a40d188c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/read_only_first.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/read_only_first.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/single_ref_type.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/single_ref_type.rb index be8431452858..b234793a9f28 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/single_ref_type.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/single_ref_type.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if SingleRefType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SingleRefType" end - end -end + endend diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/special_model_name.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/special_model_name.rb index e4f2aca8c203..6c9428aa5fb5 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/special_model_name.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/special_model_name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/tag.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/tag.rb index 9fb4a02e32af..6bb530ee1e1c 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/tag.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/tag.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/test_inline_freeform_additional_properties_request.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/test_inline_freeform_additional_properties_request.rb index a50b95435817..e4175513a6af 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/test_inline_freeform_additional_properties_request.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/test_inline_freeform_additional_properties_request.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/user.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/user.rb index 05bb872a984a..b60474f3b86d 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/user.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/user.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -272,7 +271,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/version.rb b/samples/client/petstore/ruby-faraday/lib/petstore/version.rb index 1e9e2dbfd9e4..b7ac1a5e784a 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/version.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/version.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-faraday/petstore.gemspec b/samples/client/petstore/ruby-faraday/petstore.gemspec index 75cae399884d..d1e0efb96fe6 100644 --- a/samples/client/petstore/ruby-faraday/petstore.gemspec +++ b/samples/client/petstore/ruby-faraday/petstore.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/petstore/ruby-faraday/spec/spec_helper.rb b/samples/client/petstore/ruby-faraday/spec/spec_helper.rb index bef56f59327b..9f275730ffb4 100644 --- a/samples/client/petstore/ruby-faraday/spec/spec_helper.rb +++ b/samples/client/petstore/ruby-faraday/spec/spec_helper.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/petstore/ruby-httpx/docs/AdditionalPropertiesClass.md b/samples/client/petstore/ruby-httpx/docs/AdditionalPropertiesClass.md index 4e1cdc869f5a..90ed515e2127 100644 --- a/samples/client/petstore/ruby-httpx/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-httpx/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ instance = Petstore::AdditionalPropertiesClass.new( map_of_map_property: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/AllOfWithSingleRef.md b/samples/client/petstore/ruby-httpx/docs/AllOfWithSingleRef.md index 3c14ac91c4aa..3584c4edba45 100644 --- a/samples/client/petstore/ruby-httpx/docs/AllOfWithSingleRef.md +++ b/samples/client/petstore/ruby-httpx/docs/AllOfWithSingleRef.md @@ -17,4 +17,3 @@ instance = Petstore::AllOfWithSingleRef.new( single_ref_type: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Animal.md b/samples/client/petstore/ruby-httpx/docs/Animal.md index 286ce80cb218..e58a9fc4b90f 100644 --- a/samples/client/petstore/ruby-httpx/docs/Animal.md +++ b/samples/client/petstore/ruby-httpx/docs/Animal.md @@ -17,4 +17,3 @@ instance = Petstore::Animal.new( color: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ApiResponse.md b/samples/client/petstore/ruby-httpx/docs/ApiResponse.md index be28c4fbb5a2..a00ec9a1c896 100644 --- a/samples/client/petstore/ruby-httpx/docs/ApiResponse.md +++ b/samples/client/petstore/ruby-httpx/docs/ApiResponse.md @@ -19,4 +19,3 @@ instance = Petstore::ApiResponse.new( message: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/ruby-httpx/docs/ArrayOfArrayOfNumberOnly.md index eb5b3f43bcdd..c13e9e4563ec 100644 --- a/samples/client/petstore/ruby-httpx/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-httpx/docs/ArrayOfArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfArrayOfNumberOnly.new( array_array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ArrayOfNumberOnly.md b/samples/client/petstore/ruby-httpx/docs/ArrayOfNumberOnly.md index 18b6c0f69040..9b3051a9d55f 100644 --- a/samples/client/petstore/ruby-httpx/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby-httpx/docs/ArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfNumberOnly.new( array_number: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ArrayTest.md b/samples/client/petstore/ruby-httpx/docs/ArrayTest.md index 8ee02d169eab..dd2973011624 100644 --- a/samples/client/petstore/ruby-httpx/docs/ArrayTest.md +++ b/samples/client/petstore/ruby-httpx/docs/ArrayTest.md @@ -19,4 +19,3 @@ instance = Petstore::ArrayTest.new( array_array_of_model: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Capitalization.md b/samples/client/petstore/ruby-httpx/docs/Capitalization.md index a34377e7976c..7e2575d4135a 100644 --- a/samples/client/petstore/ruby-httpx/docs/Capitalization.md +++ b/samples/client/petstore/ruby-httpx/docs/Capitalization.md @@ -25,4 +25,3 @@ instance = Petstore::Capitalization.new( att_name: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Cat.md b/samples/client/petstore/ruby-httpx/docs/Cat.md index 67168c776607..cf12a085e9fd 100644 --- a/samples/client/petstore/ruby-httpx/docs/Cat.md +++ b/samples/client/petstore/ruby-httpx/docs/Cat.md @@ -15,4 +15,3 @@ instance = Petstore::Cat.new( declawed: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Category.md b/samples/client/petstore/ruby-httpx/docs/Category.md index f92706fd24de..eaf9fec5d4a6 100644 --- a/samples/client/petstore/ruby-httpx/docs/Category.md +++ b/samples/client/petstore/ruby-httpx/docs/Category.md @@ -17,4 +17,3 @@ instance = Petstore::Category.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ClassModel.md b/samples/client/petstore/ruby-httpx/docs/ClassModel.md index e88b4c0c7b4c..64271d8fef40 100644 --- a/samples/client/petstore/ruby-httpx/docs/ClassModel.md +++ b/samples/client/petstore/ruby-httpx/docs/ClassModel.md @@ -15,4 +15,3 @@ instance = Petstore::ClassModel.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Client.md b/samples/client/petstore/ruby-httpx/docs/Client.md index 17778a6b0f2e..c04f9baeaf82 100644 --- a/samples/client/petstore/ruby-httpx/docs/Client.md +++ b/samples/client/petstore/ruby-httpx/docs/Client.md @@ -15,4 +15,3 @@ instance = Petstore::Client.new( client: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Cow.md b/samples/client/petstore/ruby-httpx/docs/Cow.md index 6fa7084b8a40..a693e09b1785 100644 --- a/samples/client/petstore/ruby-httpx/docs/Cow.md +++ b/samples/client/petstore/ruby-httpx/docs/Cow.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::Cow.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/DeprecatedObject.md b/samples/client/petstore/ruby-httpx/docs/DeprecatedObject.md index 143be46c4115..bfaea6f73b43 100644 --- a/samples/client/petstore/ruby-httpx/docs/DeprecatedObject.md +++ b/samples/client/petstore/ruby-httpx/docs/DeprecatedObject.md @@ -15,4 +15,3 @@ instance = Petstore::DeprecatedObject.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Dog.md b/samples/client/petstore/ruby-httpx/docs/Dog.md index 2649c58c0052..7a5c60746fce 100644 --- a/samples/client/petstore/ruby-httpx/docs/Dog.md +++ b/samples/client/petstore/ruby-httpx/docs/Dog.md @@ -15,4 +15,3 @@ instance = Petstore::Dog.new( breed: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/EnumArrays.md b/samples/client/petstore/ruby-httpx/docs/EnumArrays.md index cd3d076ad971..044240f6f685 100644 --- a/samples/client/petstore/ruby-httpx/docs/EnumArrays.md +++ b/samples/client/petstore/ruby-httpx/docs/EnumArrays.md @@ -17,4 +17,3 @@ instance = Petstore::EnumArrays.new( array_enum: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/EnumClass.md b/samples/client/petstore/ruby-httpx/docs/EnumClass.md index 099e6e47ec84..3f539ca669de 100644 --- a/samples/client/petstore/ruby-httpx/docs/EnumClass.md +++ b/samples/client/petstore/ruby-httpx/docs/EnumClass.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::EnumClass.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/EnumTest.md b/samples/client/petstore/ruby-httpx/docs/EnumTest.md index fad21de8ae12..2b54c6a1b1e9 100644 --- a/samples/client/petstore/ruby-httpx/docs/EnumTest.md +++ b/samples/client/petstore/ruby-httpx/docs/EnumTest.md @@ -29,4 +29,3 @@ instance = Petstore::EnumTest.new( outer_enum_integer_default_value: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/ruby-httpx/docs/FakeBigDecimalMap200Response.md index f564c4385e8f..1f3811a99bc5 100644 --- a/samples/client/petstore/ruby-httpx/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/ruby-httpx/docs/FakeBigDecimalMap200Response.md @@ -17,4 +17,3 @@ instance = Petstore::FakeBigDecimalMap200Response.new( some_map: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/File.md b/samples/client/petstore/ruby-httpx/docs/File.md index 5cbc12979092..1f65d0cb0fd7 100644 --- a/samples/client/petstore/ruby-httpx/docs/File.md +++ b/samples/client/petstore/ruby-httpx/docs/File.md @@ -15,4 +15,3 @@ instance = Petstore::File.new( source_uri: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/FileSchemaTestClass.md b/samples/client/petstore/ruby-httpx/docs/FileSchemaTestClass.md index d9dbef2348e1..d6e73193058a 100644 --- a/samples/client/petstore/ruby-httpx/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/ruby-httpx/docs/FileSchemaTestClass.md @@ -17,4 +17,3 @@ instance = Petstore::FileSchemaTestClass.new( files: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Foo.md b/samples/client/petstore/ruby-httpx/docs/Foo.md index 3a826f6ae70d..faafe0606424 100644 --- a/samples/client/petstore/ruby-httpx/docs/Foo.md +++ b/samples/client/petstore/ruby-httpx/docs/Foo.md @@ -15,4 +15,3 @@ instance = Petstore::Foo.new( bar: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/FooGetDefaultResponse.md b/samples/client/petstore/ruby-httpx/docs/FooGetDefaultResponse.md index 915e059d9246..401a2d5dc272 100644 --- a/samples/client/petstore/ruby-httpx/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/ruby-httpx/docs/FooGetDefaultResponse.md @@ -15,4 +15,3 @@ instance = Petstore::FooGetDefaultResponse.new( string: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/FormatTest.md b/samples/client/petstore/ruby-httpx/docs/FormatTest.md index a790ce448359..24e4d6f1995a 100644 --- a/samples/client/petstore/ruby-httpx/docs/FormatTest.md +++ b/samples/client/petstore/ruby-httpx/docs/FormatTest.md @@ -45,4 +45,3 @@ instance = Petstore::FormatTest.new( pattern_with_digits_and_delimiter: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/HasOnlyReadOnly.md b/samples/client/petstore/ruby-httpx/docs/HasOnlyReadOnly.md index 6d8dbfd0ad69..9f2f436f0106 100644 --- a/samples/client/petstore/ruby-httpx/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/ruby-httpx/docs/HasOnlyReadOnly.md @@ -17,4 +17,3 @@ instance = Petstore::HasOnlyReadOnly.new( foo: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/HealthCheckResult.md b/samples/client/petstore/ruby-httpx/docs/HealthCheckResult.md index 5695ceb488e6..33827536e5aa 100644 --- a/samples/client/petstore/ruby-httpx/docs/HealthCheckResult.md +++ b/samples/client/petstore/ruby-httpx/docs/HealthCheckResult.md @@ -15,4 +15,3 @@ instance = Petstore::HealthCheckResult.new( nullable_message: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/List.md b/samples/client/petstore/ruby-httpx/docs/List.md index 42467415e727..bb9fbfdd9fdd 100644 --- a/samples/client/petstore/ruby-httpx/docs/List.md +++ b/samples/client/petstore/ruby-httpx/docs/List.md @@ -15,4 +15,3 @@ instance = Petstore::List.new( _123_list: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md b/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md index 37b9252a2c82..aef3f618e327 100644 --- a/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md +++ b/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md @@ -44,4 +44,3 @@ Petstore::MamalWithEnum.build(data_that_doesnt_match) - `Cow` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby-httpx/docs/Mammal.md b/samples/client/petstore/ruby-httpx/docs/Mammal.md index 399834f63d30..7e900813d5c3 100644 --- a/samples/client/petstore/ruby-httpx/docs/Mammal.md +++ b/samples/client/petstore/ruby-httpx/docs/Mammal.md @@ -60,4 +60,3 @@ Petstore::Mammal.build(data_that_doesnt_match) - `Whale` - `Zebra` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby-httpx/docs/MammalAnyof.md b/samples/client/petstore/ruby-httpx/docs/MammalAnyof.md index bd21a482f1a6..11ce471c8025 100644 --- a/samples/client/petstore/ruby-httpx/docs/MammalAnyof.md +++ b/samples/client/petstore/ruby-httpx/docs/MammalAnyof.md @@ -21,4 +21,3 @@ instance = Petstore::MammalAnyof.new( type: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/MammalWithoutDiscriminator.md b/samples/client/petstore/ruby-httpx/docs/MammalWithoutDiscriminator.md index d68495030449..6d7462e72ebe 100644 --- a/samples/client/petstore/ruby-httpx/docs/MammalWithoutDiscriminator.md +++ b/samples/client/petstore/ruby-httpx/docs/MammalWithoutDiscriminator.md @@ -46,4 +46,3 @@ Petstore::MammalWithoutDiscriminator.build(data_that_doesnt_match) - `Whale` - `Zebra` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby-httpx/docs/MapTest.md b/samples/client/petstore/ruby-httpx/docs/MapTest.md index 58bc13272477..9bc874f644ce 100644 --- a/samples/client/petstore/ruby-httpx/docs/MapTest.md +++ b/samples/client/petstore/ruby-httpx/docs/MapTest.md @@ -21,4 +21,3 @@ instance = Petstore::MapTest.new( indirect_map: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/ruby-httpx/docs/MixedPropertiesAndAdditionalPropertiesClass.md index c7d57c85ddd0..c8e69f36d421 100644 --- a/samples/client/petstore/ruby-httpx/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby-httpx/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -19,4 +19,3 @@ instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new( map: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Model200Response.md b/samples/client/petstore/ruby-httpx/docs/Model200Response.md index 2eee7ded7598..7cfa65aa7c9e 100644 --- a/samples/client/petstore/ruby-httpx/docs/Model200Response.md +++ b/samples/client/petstore/ruby-httpx/docs/Model200Response.md @@ -17,4 +17,3 @@ instance = Petstore::Model200Response.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ModelReturn.md b/samples/client/petstore/ruby-httpx/docs/ModelReturn.md index bbcb5307f4b2..37a5e5a0c8b9 100644 --- a/samples/client/petstore/ruby-httpx/docs/ModelReturn.md +++ b/samples/client/petstore/ruby-httpx/docs/ModelReturn.md @@ -15,4 +15,3 @@ instance = Petstore::ModelReturn.new( _return: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Name.md b/samples/client/petstore/ruby-httpx/docs/Name.md index 9ff05587cbd2..a91968fcd309 100644 --- a/samples/client/petstore/ruby-httpx/docs/Name.md +++ b/samples/client/petstore/ruby-httpx/docs/Name.md @@ -21,4 +21,3 @@ instance = Petstore::Name.new( _123_number: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/NullableClass.md b/samples/client/petstore/ruby-httpx/docs/NullableClass.md index 761bfd807320..df2aefc1b8a9 100644 --- a/samples/client/petstore/ruby-httpx/docs/NullableClass.md +++ b/samples/client/petstore/ruby-httpx/docs/NullableClass.md @@ -37,4 +37,3 @@ instance = Petstore::NullableClass.new( object_items_nullable: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/NumberOnly.md b/samples/client/petstore/ruby-httpx/docs/NumberOnly.md index 540e736c8a5b..2d2fba92c211 100644 --- a/samples/client/petstore/ruby-httpx/docs/NumberOnly.md +++ b/samples/client/petstore/ruby-httpx/docs/NumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::NumberOnly.new( just_number: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/ruby-httpx/docs/ObjectWithDeprecatedFields.md index 6658759209be..95957818b78b 100644 --- a/samples/client/petstore/ruby-httpx/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/ruby-httpx/docs/ObjectWithDeprecatedFields.md @@ -21,4 +21,3 @@ instance = Petstore::ObjectWithDeprecatedFields.new( bars: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Order.md b/samples/client/petstore/ruby-httpx/docs/Order.md index a3fd55138068..9ffc4b323076 100644 --- a/samples/client/petstore/ruby-httpx/docs/Order.md +++ b/samples/client/petstore/ruby-httpx/docs/Order.md @@ -25,4 +25,3 @@ instance = Petstore::Order.new( complete: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterComposite.md b/samples/client/petstore/ruby-httpx/docs/OuterComposite.md index 03f9386e5f18..f1308265d7a3 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterComposite.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterComposite.md @@ -19,4 +19,3 @@ instance = Petstore::OuterComposite.new( my_boolean: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterEnum.md b/samples/client/petstore/ruby-httpx/docs/OuterEnum.md index 9c81b44ae772..9a48108fc7a8 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterEnum.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterEnum.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnum.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterEnumDefaultValue.md b/samples/client/petstore/ruby-httpx/docs/OuterEnumDefaultValue.md index be1f48a846f9..348c3738a41b 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterEnumInteger.md b/samples/client/petstore/ruby-httpx/docs/OuterEnumInteger.md index 80f46c1e0d0d..c45063111fa7 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterEnumInteger.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumInteger.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/ruby-httpx/docs/OuterEnumIntegerDefaultValue.md index 38fbfd638aca..1ffa188c051d 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumIntegerDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/ruby-httpx/docs/OuterObjectWithEnumProperty.md index dfd9de4596ef..2588d07025c8 100644 --- a/samples/client/petstore/ruby-httpx/docs/OuterObjectWithEnumProperty.md +++ b/samples/client/petstore/ruby-httpx/docs/OuterObjectWithEnumProperty.md @@ -15,4 +15,3 @@ instance = Petstore::OuterObjectWithEnumProperty.new( value: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Pet.md b/samples/client/petstore/ruby-httpx/docs/Pet.md index 13f34d7d167e..78dda076209a 100644 --- a/samples/client/petstore/ruby-httpx/docs/Pet.md +++ b/samples/client/petstore/ruby-httpx/docs/Pet.md @@ -25,4 +25,3 @@ instance = Petstore::Pet.new( status: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/PropertyNameMapping.md b/samples/client/petstore/ruby-httpx/docs/PropertyNameMapping.md index 91cd04c8687e..adcab8865e0b 100644 --- a/samples/client/petstore/ruby-httpx/docs/PropertyNameMapping.md +++ b/samples/client/petstore/ruby-httpx/docs/PropertyNameMapping.md @@ -21,4 +21,3 @@ instance = Petstore::PropertyNameMapping.new( type_: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/ReadOnlyFirst.md b/samples/client/petstore/ruby-httpx/docs/ReadOnlyFirst.md index bed355e261c3..d3ff74c7545e 100644 --- a/samples/client/petstore/ruby-httpx/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/ruby-httpx/docs/ReadOnlyFirst.md @@ -17,4 +17,3 @@ instance = Petstore::ReadOnlyFirst.new( baz: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/SingleRefType.md b/samples/client/petstore/ruby-httpx/docs/SingleRefType.md index 1f997e7bf8d9..6240cca7111e 100644 --- a/samples/client/petstore/ruby-httpx/docs/SingleRefType.md +++ b/samples/client/petstore/ruby-httpx/docs/SingleRefType.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::SingleRefType.new() ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/SpecialModelName.md b/samples/client/petstore/ruby-httpx/docs/SpecialModelName.md index 6a5169191d33..e072868445c3 100644 --- a/samples/client/petstore/ruby-httpx/docs/SpecialModelName.md +++ b/samples/client/petstore/ruby-httpx/docs/SpecialModelName.md @@ -15,4 +15,3 @@ instance = Petstore::SpecialModelName.new( special_property_name: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Tag.md b/samples/client/petstore/ruby-httpx/docs/Tag.md index f29ee058b01a..197129df058f 100644 --- a/samples/client/petstore/ruby-httpx/docs/Tag.md +++ b/samples/client/petstore/ruby-httpx/docs/Tag.md @@ -17,4 +17,3 @@ instance = Petstore::Tag.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/ruby-httpx/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c976800c1818..4a12a9dba001 100644 --- a/samples/client/petstore/ruby-httpx/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/ruby-httpx/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -15,4 +15,3 @@ instance = Petstore::TestInlineFreeformAdditionalPropertiesRequest.new( some_property: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/User.md b/samples/client/petstore/ruby-httpx/docs/User.md index 1dab27adba2b..dd7c16718597 100644 --- a/samples/client/petstore/ruby-httpx/docs/User.md +++ b/samples/client/petstore/ruby-httpx/docs/User.md @@ -29,4 +29,3 @@ instance = Petstore::User.new( user_status: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Whale.md b/samples/client/petstore/ruby-httpx/docs/Whale.md index 6cee971d867f..917a32cacc6e 100644 --- a/samples/client/petstore/ruby-httpx/docs/Whale.md +++ b/samples/client/petstore/ruby-httpx/docs/Whale.md @@ -19,4 +19,3 @@ instance = Petstore::Whale.new( classname: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/docs/Zebra.md b/samples/client/petstore/ruby-httpx/docs/Zebra.md index 24848fc87181..a7a9476e008c 100644 --- a/samples/client/petstore/ruby-httpx/docs/Zebra.md +++ b/samples/client/petstore/ruby-httpx/docs/Zebra.md @@ -17,4 +17,3 @@ instance = Petstore::Zebra.new( classname: null ) ``` - diff --git a/samples/client/petstore/ruby-httpx/lib/petstore.rb b/samples/client/petstore/ruby-httpx/lib/petstore.rb index 9e223c8506fc..4df0b4386a4a 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/another_fake_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/another_fake_api.rb index 2cd28463257d..b0b3001ed559 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/another_fake_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/another_fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/default_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/default_api.rb index 69b648b1f923..fd81f0e8169a 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/default_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/default_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb index c8462a70a1c3..e6ebf176e581 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_classname_tags123_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_classname_tags123_api.rb index defb5d7dc947..80dbc48cb0ac 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_classname_tags123_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_classname_tags123_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb index 6925a879e4ce..bfd1942d3e28 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/pet_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb index 30dceabe9939..0e3d34fdf012 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/store_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb index 059d0d45b0b9..8d85a39bce57 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/user_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api_client.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api_client.rb index 6db9ea697276..f99c450127c1 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api_client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -178,7 +177,6 @@ def session @session = session end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api_error.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api_error.rb index 03b8f10b4f00..90e1aa0ea226 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api_error.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api_error.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb b/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb index 9f3197b4ea52..91abfb392918 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/configuration.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore @@ -121,7 +120,6 @@ class Configuration # @return [Hash{Symbol => Object}, nil] attr_accessor :proxy - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/additional_properties_class.rb index 08181524c0aa..c272a95715e7 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -221,7 +220,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/all_of_with_single_ref.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/all_of_with_single_ref.rb index c8a82eaacc1c..f849064886b3 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/all_of_with_single_ref.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/all_of_with_single_ref.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -239,7 +238,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/animal.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/animal.rb index e0f55e9637da..d25724024458 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/animal.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/animal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -231,7 +230,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/api_response.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/api_response.rb index 54e3d1351226..fba838ec89d3 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/api_response.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/api_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_array_of_number_only.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_array_of_number_only.rb index e45247f6ea21..51264f41e45a 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_number_only.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_number_only.rb index 55934845105e..48064064fbd8 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_number_only.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_test.rb index a88e01c3bdc7..0995478313dd 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/array_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/array_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -260,7 +259,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/capitalization.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/capitalization.rb index 82692d850395..056e8e5fe974 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/capitalization.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/capitalization.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/cat.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/cat.rb index 64c6938b0aa5..9e6bbcc362ca 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/cat.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/cat.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/category.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/category.rb index e44364ee02ea..b65bb4d3a3a5 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/category.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/category.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -224,7 +223,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/class_model.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/class_model.rb index 7c209246e3b5..4f16d4da00a1 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/class_model.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/class_model.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/client.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/client.rb index de0685d0b047..237af3e41dfa 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/client.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/cow.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/cow.rb index 4ca7af1adf89..3ddd97990237 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/cow.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/cow.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if Cow.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Cow" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/deprecated_object.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/deprecated_object.rb index f2e7f9ecf087..a3d055b8e6f3 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/deprecated_object.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/deprecated_object.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/dog.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/dog.rb index 6b463d10e2a4..48bc263d35fe 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/dog.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/dog.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_arrays.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_arrays.rb index 9b6e43025b52..384df658efc6 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_arrays.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_arrays.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -253,7 +252,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_class.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_class.rb index a7b08629698d..8b842fc79cd4 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_class.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if EnumClass.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EnumClass" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb index 6313d9b94be7..a2941e29df5c 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -353,7 +352,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/fake_big_decimal_map200_response.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/fake_big_decimal_map200_response.rb index db2e36a025b6..13764e427d1c 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/fake_big_decimal_map200_response.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/fake_big_decimal_map200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/file.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/file.rb index 8edc5de06b67..c69536d23188 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/file.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/file.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/file_schema_test_class.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/file_schema_test_class.rb index e99905069f8c..d1224225bb0a 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/file_schema_test_class.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/file_schema_test_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/foo.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/foo.rb index 5bb64a989333..7fd661403460 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/foo.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/foo.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/foo_get_default_response.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/foo_get_default_response.rb index dd618bd66f3a..ce96c3e73b73 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/foo_get_default_response.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/foo_get_default_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb index 7f85817a5b93..f6f371396539 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/format_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -604,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/has_only_read_only.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/has_only_read_only.rb index 9b61c9ce75e6..1c6bdf4a7db4 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/has_only_read_only.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/has_only_read_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/health_check_result.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/health_check_result.rb index 43d4bf247e8b..6808e8bd875b 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/health_check_result.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/health_check_result.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/list.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/list.rb index 7e00018ae115..0fa355d72ad4 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/list.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/list.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb index c6b4f6ab35d0..3c5d5f2d43ae 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -100,5 +99,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal.rb index d2636f63673d..3e1e176780d6 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -39,5 +38,4 @@ def build(data) end end end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_anyof.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_anyof.rb index 7616977dfb0f..a6f92952ec69 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_anyof.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_anyof.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -100,5 +99,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_without_discriminator.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_without_discriminator.rb index a7380a7b1438..3678d4da0bed 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_without_discriminator.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_without_discriminator.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -101,5 +100,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/map_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/map_test.rb index 139752730bda..51714a23a499 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/map_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/map_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -265,7 +264,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index b7703c11d632..8130296d4059 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -228,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/model200_response.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/model200_response.rb index b0f319099189..843358f0cb99 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/model200_response.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/model200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -218,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/model_return.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/model_return.rb index a1b2791519bd..74c53e8453e2 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/model_return.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/model_return.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/name.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/name.rb index 05739286c7c1..ecb7b668ac4f 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/name.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/nullable_class.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/nullable_class.rb index 2c04a3c31eab..69d27bd530a6 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/nullable_class.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/nullable_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -329,7 +328,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/number_only.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/number_only.rb index d03d015a9c55..8a91a3a90371 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/number_only.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/object_with_deprecated_fields.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/object_with_deprecated_fields.rb index c02ef6bd20cd..2e6388844752 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/object_with_deprecated_fields.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/object_with_deprecated_fields.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/order.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/order.rb index e116c53034bc..11bee206b83d 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/order.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/order.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -290,7 +289,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_composite.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_composite.rb index a4a970788aaf..bcf50fa09d3d 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_composite.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_composite.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum.rb index 38254bd77b6b..e9859f39c9e2 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnum" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_default_value.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_default_value.rb index 74e0dbd8433a..ed092c06034c 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_default_value.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer.rb index aafc9d66979c..dcdd8de64112 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumInteger.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumInteger" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer_default_value.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer_default_value.rb index 08e22c090514..fb5899a81d92 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer_default_value.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_enum_integer_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumIntegerDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumIntegerDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_object_with_enum_property.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_object_with_enum_property.rb index 107c1ead0127..15b15c7154e1 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_object_with_enum_property.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/outer_object_with_enum_property.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/pet.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/pet.rb index f3e6eb07f60d..fc59b5e0901b 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/pet.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/pet.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -316,7 +315,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/property_name_mapping.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/property_name_mapping.rb index ccf09be355da..5bcd93573389 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/property_name_mapping.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/property_name_mapping.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -235,7 +234,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/read_only_first.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/read_only_first.rb index 1cf4d334b369..c022a40d188c 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/read_only_first.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/read_only_first.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/single_ref_type.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/single_ref_type.rb index be8431452858..b234793a9f28 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/single_ref_type.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/single_ref_type.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if SingleRefType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SingleRefType" end - end -end + endend diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/special_model_name.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/special_model_name.rb index e4f2aca8c203..6c9428aa5fb5 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/special_model_name.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/special_model_name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/tag.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/tag.rb index 9fb4a02e32af..6bb530ee1e1c 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/tag.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/tag.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/test_inline_freeform_additional_properties_request.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/test_inline_freeform_additional_properties_request.rb index a50b95435817..e4175513a6af 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/test_inline_freeform_additional_properties_request.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/test_inline_freeform_additional_properties_request.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/user.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/user.rb index 05bb872a984a..b60474f3b86d 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/user.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/user.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -272,7 +271,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/whale.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/whale.rb index d3e7535db704..cd5d3b40c841 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/whale.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/whale.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -233,7 +232,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/zebra.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/zebra.rb index c35400d20ab3..3c8d31aa6f5b 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/zebra.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/zebra.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -258,7 +257,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/version.rb b/samples/client/petstore/ruby-httpx/lib/petstore/version.rb index 1e9e2dbfd9e4..b7ac1a5e784a 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/version.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/version.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby-httpx/petstore.gemspec b/samples/client/petstore/ruby-httpx/petstore.gemspec index 384e59beb731..ab51e02c651d 100644 --- a/samples/client/petstore/ruby-httpx/petstore.gemspec +++ b/samples/client/petstore/ruby-httpx/petstore.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/petstore/ruby-httpx/spec/spec_helper.rb b/samples/client/petstore/ruby-httpx/spec/spec_helper.rb index bef56f59327b..9f275730ffb4 100644 --- a/samples/client/petstore/ruby-httpx/spec/spec_helper.rb +++ b/samples/client/petstore/ruby-httpx/spec/spec_helper.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md b/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md index 4e1cdc869f5a..90ed515e2127 100644 --- a/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md @@ -17,4 +17,3 @@ instance = Petstore::AdditionalPropertiesClass.new( map_of_map_property: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/AllOfWithSingleRef.md b/samples/client/petstore/ruby/docs/AllOfWithSingleRef.md index 3c14ac91c4aa..3584c4edba45 100644 --- a/samples/client/petstore/ruby/docs/AllOfWithSingleRef.md +++ b/samples/client/petstore/ruby/docs/AllOfWithSingleRef.md @@ -17,4 +17,3 @@ instance = Petstore::AllOfWithSingleRef.new( single_ref_type: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Animal.md b/samples/client/petstore/ruby/docs/Animal.md index 286ce80cb218..e58a9fc4b90f 100644 --- a/samples/client/petstore/ruby/docs/Animal.md +++ b/samples/client/petstore/ruby/docs/Animal.md @@ -17,4 +17,3 @@ instance = Petstore::Animal.new( color: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ApiResponse.md b/samples/client/petstore/ruby/docs/ApiResponse.md index be28c4fbb5a2..a00ec9a1c896 100644 --- a/samples/client/petstore/ruby/docs/ApiResponse.md +++ b/samples/client/petstore/ruby/docs/ApiResponse.md @@ -19,4 +19,3 @@ instance = Petstore::ApiResponse.new( message: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/ruby/docs/ArrayOfArrayOfNumberOnly.md index eb5b3f43bcdd..c13e9e4563ec 100644 --- a/samples/client/petstore/ruby/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby/docs/ArrayOfArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfArrayOfNumberOnly.new( array_array_number: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md b/samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md index 18b6c0f69040..9b3051a9d55f 100644 --- a/samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::ArrayOfNumberOnly.new( array_number: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ArrayTest.md b/samples/client/petstore/ruby/docs/ArrayTest.md index 8ee02d169eab..dd2973011624 100644 --- a/samples/client/petstore/ruby/docs/ArrayTest.md +++ b/samples/client/petstore/ruby/docs/ArrayTest.md @@ -19,4 +19,3 @@ instance = Petstore::ArrayTest.new( array_array_of_model: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Capitalization.md b/samples/client/petstore/ruby/docs/Capitalization.md index a34377e7976c..7e2575d4135a 100644 --- a/samples/client/petstore/ruby/docs/Capitalization.md +++ b/samples/client/petstore/ruby/docs/Capitalization.md @@ -25,4 +25,3 @@ instance = Petstore::Capitalization.new( att_name: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Cat.md b/samples/client/petstore/ruby/docs/Cat.md index 67168c776607..cf12a085e9fd 100644 --- a/samples/client/petstore/ruby/docs/Cat.md +++ b/samples/client/petstore/ruby/docs/Cat.md @@ -15,4 +15,3 @@ instance = Petstore::Cat.new( declawed: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Category.md b/samples/client/petstore/ruby/docs/Category.md index f92706fd24de..eaf9fec5d4a6 100644 --- a/samples/client/petstore/ruby/docs/Category.md +++ b/samples/client/petstore/ruby/docs/Category.md @@ -17,4 +17,3 @@ instance = Petstore::Category.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ClassModel.md b/samples/client/petstore/ruby/docs/ClassModel.md index e88b4c0c7b4c..64271d8fef40 100644 --- a/samples/client/petstore/ruby/docs/ClassModel.md +++ b/samples/client/petstore/ruby/docs/ClassModel.md @@ -15,4 +15,3 @@ instance = Petstore::ClassModel.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Client.md b/samples/client/petstore/ruby/docs/Client.md index 17778a6b0f2e..c04f9baeaf82 100644 --- a/samples/client/petstore/ruby/docs/Client.md +++ b/samples/client/petstore/ruby/docs/Client.md @@ -15,4 +15,3 @@ instance = Petstore::Client.new( client: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Cow.md b/samples/client/petstore/ruby/docs/Cow.md index 6fa7084b8a40..a693e09b1785 100644 --- a/samples/client/petstore/ruby/docs/Cow.md +++ b/samples/client/petstore/ruby/docs/Cow.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::Cow.new() ``` - diff --git a/samples/client/petstore/ruby/docs/DeprecatedObject.md b/samples/client/petstore/ruby/docs/DeprecatedObject.md index 143be46c4115..bfaea6f73b43 100644 --- a/samples/client/petstore/ruby/docs/DeprecatedObject.md +++ b/samples/client/petstore/ruby/docs/DeprecatedObject.md @@ -15,4 +15,3 @@ instance = Petstore::DeprecatedObject.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Dog.md b/samples/client/petstore/ruby/docs/Dog.md index 2649c58c0052..7a5c60746fce 100644 --- a/samples/client/petstore/ruby/docs/Dog.md +++ b/samples/client/petstore/ruby/docs/Dog.md @@ -15,4 +15,3 @@ instance = Petstore::Dog.new( breed: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/EnumArrays.md b/samples/client/petstore/ruby/docs/EnumArrays.md index cd3d076ad971..044240f6f685 100644 --- a/samples/client/petstore/ruby/docs/EnumArrays.md +++ b/samples/client/petstore/ruby/docs/EnumArrays.md @@ -17,4 +17,3 @@ instance = Petstore::EnumArrays.new( array_enum: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/EnumClass.md b/samples/client/petstore/ruby/docs/EnumClass.md index 099e6e47ec84..3f539ca669de 100644 --- a/samples/client/petstore/ruby/docs/EnumClass.md +++ b/samples/client/petstore/ruby/docs/EnumClass.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::EnumClass.new() ``` - diff --git a/samples/client/petstore/ruby/docs/EnumTest.md b/samples/client/petstore/ruby/docs/EnumTest.md index fad21de8ae12..2b54c6a1b1e9 100644 --- a/samples/client/petstore/ruby/docs/EnumTest.md +++ b/samples/client/petstore/ruby/docs/EnumTest.md @@ -29,4 +29,3 @@ instance = Petstore::EnumTest.new( outer_enum_integer_default_value: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/FakeBigDecimalMap200Response.md b/samples/client/petstore/ruby/docs/FakeBigDecimalMap200Response.md index f564c4385e8f..1f3811a99bc5 100644 --- a/samples/client/petstore/ruby/docs/FakeBigDecimalMap200Response.md +++ b/samples/client/petstore/ruby/docs/FakeBigDecimalMap200Response.md @@ -17,4 +17,3 @@ instance = Petstore::FakeBigDecimalMap200Response.new( some_map: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/File.md b/samples/client/petstore/ruby/docs/File.md index 5cbc12979092..1f65d0cb0fd7 100644 --- a/samples/client/petstore/ruby/docs/File.md +++ b/samples/client/petstore/ruby/docs/File.md @@ -15,4 +15,3 @@ instance = Petstore::File.new( source_uri: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/FileSchemaTestClass.md b/samples/client/petstore/ruby/docs/FileSchemaTestClass.md index d9dbef2348e1..d6e73193058a 100644 --- a/samples/client/petstore/ruby/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/ruby/docs/FileSchemaTestClass.md @@ -17,4 +17,3 @@ instance = Petstore::FileSchemaTestClass.new( files: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Foo.md b/samples/client/petstore/ruby/docs/Foo.md index 3a826f6ae70d..faafe0606424 100644 --- a/samples/client/petstore/ruby/docs/Foo.md +++ b/samples/client/petstore/ruby/docs/Foo.md @@ -15,4 +15,3 @@ instance = Petstore::Foo.new( bar: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/FooGetDefaultResponse.md b/samples/client/petstore/ruby/docs/FooGetDefaultResponse.md index 915e059d9246..401a2d5dc272 100644 --- a/samples/client/petstore/ruby/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/ruby/docs/FooGetDefaultResponse.md @@ -15,4 +15,3 @@ instance = Petstore::FooGetDefaultResponse.new( string: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/FormatTest.md b/samples/client/petstore/ruby/docs/FormatTest.md index a790ce448359..24e4d6f1995a 100644 --- a/samples/client/petstore/ruby/docs/FormatTest.md +++ b/samples/client/petstore/ruby/docs/FormatTest.md @@ -45,4 +45,3 @@ instance = Petstore::FormatTest.new( pattern_with_digits_and_delimiter: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/HasOnlyReadOnly.md b/samples/client/petstore/ruby/docs/HasOnlyReadOnly.md index 6d8dbfd0ad69..9f2f436f0106 100644 --- a/samples/client/petstore/ruby/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/ruby/docs/HasOnlyReadOnly.md @@ -17,4 +17,3 @@ instance = Petstore::HasOnlyReadOnly.new( foo: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/HealthCheckResult.md b/samples/client/petstore/ruby/docs/HealthCheckResult.md index 5695ceb488e6..33827536e5aa 100644 --- a/samples/client/petstore/ruby/docs/HealthCheckResult.md +++ b/samples/client/petstore/ruby/docs/HealthCheckResult.md @@ -15,4 +15,3 @@ instance = Petstore::HealthCheckResult.new( nullable_message: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/List.md b/samples/client/petstore/ruby/docs/List.md index 42467415e727..bb9fbfdd9fdd 100644 --- a/samples/client/petstore/ruby/docs/List.md +++ b/samples/client/petstore/ruby/docs/List.md @@ -15,4 +15,3 @@ instance = Petstore::List.new( _123_list: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/MamalWithEnum.md b/samples/client/petstore/ruby/docs/MamalWithEnum.md index 37b9252a2c82..aef3f618e327 100644 --- a/samples/client/petstore/ruby/docs/MamalWithEnum.md +++ b/samples/client/petstore/ruby/docs/MamalWithEnum.md @@ -44,4 +44,3 @@ Petstore::MamalWithEnum.build(data_that_doesnt_match) - `Cow` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby/docs/Mammal.md b/samples/client/petstore/ruby/docs/Mammal.md index 399834f63d30..7e900813d5c3 100644 --- a/samples/client/petstore/ruby/docs/Mammal.md +++ b/samples/client/petstore/ruby/docs/Mammal.md @@ -60,4 +60,3 @@ Petstore::Mammal.build(data_that_doesnt_match) - `Whale` - `Zebra` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby/docs/MammalAnyof.md b/samples/client/petstore/ruby/docs/MammalAnyof.md index bd21a482f1a6..11ce471c8025 100644 --- a/samples/client/petstore/ruby/docs/MammalAnyof.md +++ b/samples/client/petstore/ruby/docs/MammalAnyof.md @@ -21,4 +21,3 @@ instance = Petstore::MammalAnyof.new( type: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/MammalWithoutDiscriminator.md b/samples/client/petstore/ruby/docs/MammalWithoutDiscriminator.md index d68495030449..6d7462e72ebe 100644 --- a/samples/client/petstore/ruby/docs/MammalWithoutDiscriminator.md +++ b/samples/client/petstore/ruby/docs/MammalWithoutDiscriminator.md @@ -46,4 +46,3 @@ Petstore::MammalWithoutDiscriminator.build(data_that_doesnt_match) - `Whale` - `Zebra` - `nil` (if no type matches) - diff --git a/samples/client/petstore/ruby/docs/MapTest.md b/samples/client/petstore/ruby/docs/MapTest.md index 58bc13272477..9bc874f644ce 100644 --- a/samples/client/petstore/ruby/docs/MapTest.md +++ b/samples/client/petstore/ruby/docs/MapTest.md @@ -21,4 +21,3 @@ instance = Petstore::MapTest.new( indirect_map: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/ruby/docs/MixedPropertiesAndAdditionalPropertiesClass.md index c7d57c85ddd0..c8e69f36d421 100644 --- a/samples/client/petstore/ruby/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/ruby/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -19,4 +19,3 @@ instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new( map: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Model200Response.md b/samples/client/petstore/ruby/docs/Model200Response.md index 2eee7ded7598..7cfa65aa7c9e 100644 --- a/samples/client/petstore/ruby/docs/Model200Response.md +++ b/samples/client/petstore/ruby/docs/Model200Response.md @@ -17,4 +17,3 @@ instance = Petstore::Model200Response.new( _class: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ModelReturn.md b/samples/client/petstore/ruby/docs/ModelReturn.md index bbcb5307f4b2..37a5e5a0c8b9 100644 --- a/samples/client/petstore/ruby/docs/ModelReturn.md +++ b/samples/client/petstore/ruby/docs/ModelReturn.md @@ -15,4 +15,3 @@ instance = Petstore::ModelReturn.new( _return: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Name.md b/samples/client/petstore/ruby/docs/Name.md index 9ff05587cbd2..a91968fcd309 100644 --- a/samples/client/petstore/ruby/docs/Name.md +++ b/samples/client/petstore/ruby/docs/Name.md @@ -21,4 +21,3 @@ instance = Petstore::Name.new( _123_number: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/NullableClass.md b/samples/client/petstore/ruby/docs/NullableClass.md index 761bfd807320..df2aefc1b8a9 100644 --- a/samples/client/petstore/ruby/docs/NullableClass.md +++ b/samples/client/petstore/ruby/docs/NullableClass.md @@ -37,4 +37,3 @@ instance = Petstore::NullableClass.new( object_items_nullable: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/NumberOnly.md b/samples/client/petstore/ruby/docs/NumberOnly.md index 540e736c8a5b..2d2fba92c211 100644 --- a/samples/client/petstore/ruby/docs/NumberOnly.md +++ b/samples/client/petstore/ruby/docs/NumberOnly.md @@ -15,4 +15,3 @@ instance = Petstore::NumberOnly.new( just_number: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/ruby/docs/ObjectWithDeprecatedFields.md index 6658759209be..95957818b78b 100644 --- a/samples/client/petstore/ruby/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/ruby/docs/ObjectWithDeprecatedFields.md @@ -21,4 +21,3 @@ instance = Petstore::ObjectWithDeprecatedFields.new( bars: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Order.md b/samples/client/petstore/ruby/docs/Order.md index a3fd55138068..9ffc4b323076 100644 --- a/samples/client/petstore/ruby/docs/Order.md +++ b/samples/client/petstore/ruby/docs/Order.md @@ -25,4 +25,3 @@ instance = Petstore::Order.new( complete: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/OuterComposite.md b/samples/client/petstore/ruby/docs/OuterComposite.md index 03f9386e5f18..f1308265d7a3 100644 --- a/samples/client/petstore/ruby/docs/OuterComposite.md +++ b/samples/client/petstore/ruby/docs/OuterComposite.md @@ -19,4 +19,3 @@ instance = Petstore::OuterComposite.new( my_boolean: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/OuterEnum.md b/samples/client/petstore/ruby/docs/OuterEnum.md index 9c81b44ae772..9a48108fc7a8 100644 --- a/samples/client/petstore/ruby/docs/OuterEnum.md +++ b/samples/client/petstore/ruby/docs/OuterEnum.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnum.new() ``` - diff --git a/samples/client/petstore/ruby/docs/OuterEnumDefaultValue.md b/samples/client/petstore/ruby/docs/OuterEnumDefaultValue.md index be1f48a846f9..348c3738a41b 100644 --- a/samples/client/petstore/ruby/docs/OuterEnumDefaultValue.md +++ b/samples/client/petstore/ruby/docs/OuterEnumDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby/docs/OuterEnumInteger.md b/samples/client/petstore/ruby/docs/OuterEnumInteger.md index 80f46c1e0d0d..c45063111fa7 100644 --- a/samples/client/petstore/ruby/docs/OuterEnumInteger.md +++ b/samples/client/petstore/ruby/docs/OuterEnumInteger.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumInteger.new() ``` - diff --git a/samples/client/petstore/ruby/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/ruby/docs/OuterEnumIntegerDefaultValue.md index 38fbfd638aca..1ffa188c051d 100644 --- a/samples/client/petstore/ruby/docs/OuterEnumIntegerDefaultValue.md +++ b/samples/client/petstore/ruby/docs/OuterEnumIntegerDefaultValue.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::OuterEnumIntegerDefaultValue.new() ``` - diff --git a/samples/client/petstore/ruby/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/ruby/docs/OuterObjectWithEnumProperty.md index dfd9de4596ef..2588d07025c8 100644 --- a/samples/client/petstore/ruby/docs/OuterObjectWithEnumProperty.md +++ b/samples/client/petstore/ruby/docs/OuterObjectWithEnumProperty.md @@ -15,4 +15,3 @@ instance = Petstore::OuterObjectWithEnumProperty.new( value: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Pet.md b/samples/client/petstore/ruby/docs/Pet.md index 13f34d7d167e..78dda076209a 100644 --- a/samples/client/petstore/ruby/docs/Pet.md +++ b/samples/client/petstore/ruby/docs/Pet.md @@ -25,4 +25,3 @@ instance = Petstore::Pet.new( status: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/PropertyNameMapping.md b/samples/client/petstore/ruby/docs/PropertyNameMapping.md index ce425ac82032..a9db37351223 100644 --- a/samples/client/petstore/ruby/docs/PropertyNameMapping.md +++ b/samples/client/petstore/ruby/docs/PropertyNameMapping.md @@ -21,4 +21,3 @@ instance = Petstore::PropertyNameMapping.new( type_with_underscore: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/ReadOnlyFirst.md b/samples/client/petstore/ruby/docs/ReadOnlyFirst.md index bed355e261c3..d3ff74c7545e 100644 --- a/samples/client/petstore/ruby/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/ruby/docs/ReadOnlyFirst.md @@ -17,4 +17,3 @@ instance = Petstore::ReadOnlyFirst.new( baz: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/SingleRefType.md b/samples/client/petstore/ruby/docs/SingleRefType.md index 1f997e7bf8d9..6240cca7111e 100644 --- a/samples/client/petstore/ruby/docs/SingleRefType.md +++ b/samples/client/petstore/ruby/docs/SingleRefType.md @@ -12,4 +12,3 @@ require 'petstore' instance = Petstore::SingleRefType.new() ``` - diff --git a/samples/client/petstore/ruby/docs/SpecialModelName.md b/samples/client/petstore/ruby/docs/SpecialModelName.md index 6a5169191d33..e072868445c3 100644 --- a/samples/client/petstore/ruby/docs/SpecialModelName.md +++ b/samples/client/petstore/ruby/docs/SpecialModelName.md @@ -15,4 +15,3 @@ instance = Petstore::SpecialModelName.new( special_property_name: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Tag.md b/samples/client/petstore/ruby/docs/Tag.md index f29ee058b01a..197129df058f 100644 --- a/samples/client/petstore/ruby/docs/Tag.md +++ b/samples/client/petstore/ruby/docs/Tag.md @@ -17,4 +17,3 @@ instance = Petstore::Tag.new( name: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/ruby/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c976800c1818..4a12a9dba001 100644 --- a/samples/client/petstore/ruby/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/ruby/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -15,4 +15,3 @@ instance = Petstore::TestInlineFreeformAdditionalPropertiesRequest.new( some_property: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/User.md b/samples/client/petstore/ruby/docs/User.md index 1dab27adba2b..dd7c16718597 100644 --- a/samples/client/petstore/ruby/docs/User.md +++ b/samples/client/petstore/ruby/docs/User.md @@ -29,4 +29,3 @@ instance = Petstore::User.new( user_status: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Whale.md b/samples/client/petstore/ruby/docs/Whale.md index 6cee971d867f..917a32cacc6e 100644 --- a/samples/client/petstore/ruby/docs/Whale.md +++ b/samples/client/petstore/ruby/docs/Whale.md @@ -19,4 +19,3 @@ instance = Petstore::Whale.new( classname: null ) ``` - diff --git a/samples/client/petstore/ruby/docs/Zebra.md b/samples/client/petstore/ruby/docs/Zebra.md index 24848fc87181..a7a9476e008c 100644 --- a/samples/client/petstore/ruby/docs/Zebra.md +++ b/samples/client/petstore/ruby/docs/Zebra.md @@ -17,4 +17,3 @@ instance = Petstore::Zebra.new( classname: null ) ``` - diff --git a/samples/client/petstore/ruby/lib/petstore.rb b/samples/client/petstore/ruby/lib/petstore.rb index 9e223c8506fc..4df0b4386a4a 100644 --- a/samples/client/petstore/ruby/lib/petstore.rb +++ b/samples/client/petstore/ruby/lib/petstore.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # Common files diff --git a/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb index 2cd28463257d..b0b3001ed559 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/default_api.rb b/samples/client/petstore/ruby/lib/petstore/api/default_api.rb index 69b648b1f923..fd81f0e8169a 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/default_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/default_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index faa1407e207a..0f92c5d912a8 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb index defb5d7dc947..80dbc48cb0ac 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb index bfe5db16a7f3..f8cb98322e5d 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/pet_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb index 87261710ee02..dab65a32ca00 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/store_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/store_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb index b03527389648..4b134741b717 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/user_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/user_api.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'cgi' diff --git a/samples/client/petstore/ruby/lib/petstore/api_client.rb b/samples/client/petstore/ruby/lib/petstore/api_client.rb index 9dccaa5b271a..75d1f79f6516 100644 --- a/samples/client/petstore/ruby/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby/lib/petstore/api_client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -202,7 +201,6 @@ def download_file(request) tempfile end - # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json diff --git a/samples/client/petstore/ruby/lib/petstore/api_error.rb b/samples/client/petstore/ruby/lib/petstore/api_error.rb index 03b8f10b4f00..90e1aa0ea226 100644 --- a/samples/client/petstore/ruby/lib/petstore/api_error.rb +++ b/samples/client/petstore/ruby/lib/petstore/api_error.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby/lib/petstore/configuration.rb b/samples/client/petstore/ruby/lib/petstore/configuration.rb index 5cff44b03ae0..e5b6930d28d8 100644 --- a/samples/client/petstore/ruby/lib/petstore/configuration.rb +++ b/samples/client/petstore/ruby/lib/petstore/configuration.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore @@ -151,7 +150,6 @@ class Configuration # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 attr_accessor :params_encoding - attr_accessor :inject_format attr_accessor :force_ending_format diff --git a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb index 08181524c0aa..c272a95715e7 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -221,7 +220,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/all_of_with_single_ref.rb b/samples/client/petstore/ruby/lib/petstore/models/all_of_with_single_ref.rb index c8a82eaacc1c..f849064886b3 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/all_of_with_single_ref.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/all_of_with_single_ref.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -239,7 +238,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/animal.rb b/samples/client/petstore/ruby/lib/petstore/models/animal.rb index e0f55e9637da..d25724024458 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/animal.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/animal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -231,7 +230,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/api_response.rb b/samples/client/petstore/ruby/lib/petstore/models/api_response.rb index 54e3d1351226..fba838ec89d3 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/api_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/api_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb index e45247f6ea21..51264f41e45a 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_of_array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb index 55934845105e..48064064fbd8 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_of_number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/array_test.rb b/samples/client/petstore/ruby/lib/petstore/models/array_test.rb index a88e01c3bdc7..0995478313dd 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/array_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/array_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -260,7 +259,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb b/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb index 82692d850395..056e8e5fe974 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/capitalization.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -254,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/cat.rb b/samples/client/petstore/ruby/lib/petstore/models/cat.rb index 64c6938b0aa5..9e6bbcc362ca 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/cat.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/cat.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/category.rb b/samples/client/petstore/ruby/lib/petstore/models/category.rb index e44364ee02ea..b65bb4d3a3a5 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/category.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/category.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -224,7 +223,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/class_model.rb b/samples/client/petstore/ruby/lib/petstore/models/class_model.rb index 7c209246e3b5..4f16d4da00a1 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/class_model.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/class_model.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/client.rb b/samples/client/petstore/ruby/lib/petstore/models/client.rb index de0685d0b047..237af3e41dfa 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/client.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/client.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/cow.rb b/samples/client/petstore/ruby/lib/petstore/models/cow.rb index 4ca7af1adf89..3ddd97990237 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/cow.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/cow.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if Cow.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Cow" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/deprecated_object.rb b/samples/client/petstore/ruby/lib/petstore/models/deprecated_object.rb index f2e7f9ecf087..a3d055b8e6f3 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/deprecated_object.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/deprecated_object.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/dog.rb b/samples/client/petstore/ruby/lib/petstore/models/dog.rb index 6b463d10e2a4..48bc263d35fe 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/dog.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/dog.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb index 9b6e43025b52..384df658efc6 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_arrays.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -253,7 +252,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_class.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_class.rb index a7b08629698d..8b842fc79cd4 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if EnumClass.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EnumClass" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb index 6313d9b94be7..a2941e29df5c 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -353,7 +352,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/fake_big_decimal_map200_response.rb b/samples/client/petstore/ruby/lib/petstore/models/fake_big_decimal_map200_response.rb index db2e36a025b6..13764e427d1c 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/fake_big_decimal_map200_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/fake_big_decimal_map200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/file.rb b/samples/client/petstore/ruby/lib/petstore/models/file.rb index 8edc5de06b67..c69536d23188 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/file.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/file.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb b/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb index e99905069f8c..d1224225bb0a 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/file_schema_test_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -219,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/foo.rb b/samples/client/petstore/ruby/lib/petstore/models/foo.rb index 5bb64a989333..7fd661403460 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/foo.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/foo.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/foo_get_default_response.rb b/samples/client/petstore/ruby/lib/petstore/models/foo_get_default_response.rb index dd618bd66f3a..ce96c3e73b73 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/foo_get_default_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/foo_get_default_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb index 7f85817a5b93..f6f371396539 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/format_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/format_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -604,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb b/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb index 9b61c9ce75e6..1c6bdf4a7db4 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/has_only_read_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/health_check_result.rb b/samples/client/petstore/ruby/lib/petstore/models/health_check_result.rb index 43d4bf247e8b..6808e8bd875b 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/health_check_result.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/health_check_result.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -210,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/list.rb b/samples/client/petstore/ruby/lib/petstore/models/list.rb index 7e00018ae115..0fa355d72ad4 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/list.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/list.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb b/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb index c6b4f6ab35d0..3c5d5f2d43ae 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -100,5 +99,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/mammal.rb b/samples/client/petstore/ruby/lib/petstore/models/mammal.rb index d2636f63673d..3e1e176780d6 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mammal.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mammal.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -39,5 +38,4 @@ def build(data) end end end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/mammal_anyof.rb b/samples/client/petstore/ruby/lib/petstore/models/mammal_anyof.rb index 7616977dfb0f..a6f92952ec69 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mammal_anyof.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mammal_anyof.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -100,5 +99,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/mammal_without_discriminator.rb b/samples/client/petstore/ruby/lib/petstore/models/mammal_without_discriminator.rb index a7380a7b1438..3678d4da0bed 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mammal_without_discriminator.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mammal_without_discriminator.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -101,5 +100,4 @@ def find_and_cast_into_type(klass, data) end end end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/map_test.rb b/samples/client/petstore/ruby/lib/petstore/models/map_test.rb index 139752730bda..51714a23a499 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/map_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/map_test.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -265,7 +264,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb b/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb index b7703c11d632..8130296d4059 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -228,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb b/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb index b0f319099189..843358f0cb99 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/model200_response.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -218,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/model_return.rb b/samples/client/petstore/ruby/lib/petstore/models/model_return.rb index a1b2791519bd..74c53e8453e2 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/model_return.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/model_return.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -209,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/name.rb b/samples/client/petstore/ruby/lib/petstore/models/name.rb index 05739286c7c1..ecb7b668ac4f 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/name.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -243,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/nullable_class.rb b/samples/client/petstore/ruby/lib/petstore/models/nullable_class.rb index 2c04a3c31eab..69d27bd530a6 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/nullable_class.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/nullable_class.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -329,7 +328,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/number_only.rb b/samples/client/petstore/ruby/lib/petstore/models/number_only.rb index d03d015a9c55..8a91a3a90371 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/number_only.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/number_only.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/object_with_deprecated_fields.rb b/samples/client/petstore/ruby/lib/petstore/models/object_with_deprecated_fields.rb index c02ef6bd20cd..2e6388844752 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/object_with_deprecated_fields.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/object_with_deprecated_fields.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/order.rb b/samples/client/petstore/ruby/lib/petstore/models/order.rb index e116c53034bc..11bee206b83d 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/order.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/order.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -290,7 +289,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb index a4a970788aaf..bcf50fa09d3d 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_composite.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -226,7 +225,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_enum.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_enum.rb index a77c9b9cd470..ec43a02f7514 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_enum.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_enum.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnum" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_default_value.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_default_value.rb index 42e882caf4f6..b481d8135133 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_default_value.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer.rb index aafc9d66979c..dcdd8de64112 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumInteger.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumInteger" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer_default_value.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer_default_value.rb index 08e22c090514..fb5899a81d92 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer_default_value.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_enum_integer_default_value.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -37,5 +36,4 @@ def build_from_hash(value) return value if OuterEnumIntegerDefaultValue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #OuterEnumIntegerDefaultValue" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/outer_object_with_enum_property.rb b/samples/client/petstore/ruby/lib/petstore/models/outer_object_with_enum_property.rb index 107c1ead0127..15b15c7154e1 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/outer_object_with_enum_property.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/outer_object_with_enum_property.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -237,7 +236,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/pet.rb b/samples/client/petstore/ruby/lib/petstore/models/pet.rb index f3e6eb07f60d..fc59b5e0901b 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/pet.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/pet.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -316,7 +315,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/property_name_mapping.rb b/samples/client/petstore/ruby/lib/petstore/models/property_name_mapping.rb index e87e2f3f3823..0852cd26a577 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/property_name_mapping.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/property_name_mapping.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -235,7 +234,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb b/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb index 1cf4d334b369..c022a40d188c 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/single_ref_type.rb b/samples/client/petstore/ruby/lib/petstore/models/single_ref_type.rb index be8431452858..b234793a9f28 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/single_ref_type.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/single_ref_type.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -36,5 +35,4 @@ def build_from_hash(value) return value if SingleRefType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SingleRefType" end - end -end + endend diff --git a/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb b/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb index e4f2aca8c203..6c9428aa5fb5 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/special_model_name.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/tag.rb b/samples/client/petstore/ruby/lib/petstore/models/tag.rb index 9fb4a02e32af..6bb530ee1e1c 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/tag.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/tag.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -217,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/test_inline_freeform_additional_properties_request.rb b/samples/client/petstore/ruby/lib/petstore/models/test_inline_freeform_additional_properties_request.rb index a50b95435817..e4175513a6af 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/test_inline_freeform_additional_properties_request.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/test_inline_freeform_additional_properties_request.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -208,7 +207,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/user.rb b/samples/client/petstore/ruby/lib/petstore/models/user.rb index 05bb872a984a..b60474f3b86d 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/user.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/user.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -272,7 +271,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/whale.rb b/samples/client/petstore/ruby/lib/petstore/models/whale.rb index d3e7535db704..cd5d3b40c841 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/whale.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/whale.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -233,7 +232,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/models/zebra.rb b/samples/client/petstore/ruby/lib/petstore/models/zebra.rb index c35400d20ab3..3c8d31aa6f5b 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/zebra.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/zebra.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end require 'date' @@ -258,7 +257,5 @@ def _to_hash(value) value end end - end - end diff --git a/samples/client/petstore/ruby/lib/petstore/version.rb b/samples/client/petstore/ruby/lib/petstore/version.rb index 1e9e2dbfd9e4..b7ac1a5e784a 100644 --- a/samples/client/petstore/ruby/lib/petstore/version.rb +++ b/samples/client/petstore/ruby/lib/petstore/version.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end module Petstore diff --git a/samples/client/petstore/ruby/petstore.gemspec b/samples/client/petstore/ruby/petstore.gemspec index d0b9c9d056e5..02d3dca2b4a8 100644 --- a/samples/client/petstore/ruby/petstore.gemspec +++ b/samples/client/petstore/ruby/petstore.gemspec @@ -9,7 +9,6 @@ The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end $:.push File.expand_path("../lib", __FILE__) diff --git a/samples/client/petstore/ruby/spec/spec_helper.rb b/samples/client/petstore/ruby/spec/spec_helper.rb index bef56f59327b..9f275730ffb4 100644 --- a/samples/client/petstore/ruby/spec/spec_helper.rb +++ b/samples/client/petstore/ruby/spec/spec_helper.rb @@ -7,7 +7,6 @@ Generated by: https://openapi-generator.tech Generator version: 7.10.0-SNAPSHOT - =end # load the gem diff --git a/samples/client/petstore/scala-akka/docs/ApiResponse.md b/samples/client/petstore/scala-akka/docs/ApiResponse.md index bd174989f6f0..d6422f89682f 100644 --- a/samples/client/petstore/scala-akka/docs/ApiResponse.md +++ b/samples/client/petstore/scala-akka/docs/ApiResponse.md @@ -13,4 +13,3 @@ Name | Type | Description | Notes **message** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-akka/docs/Category.md b/samples/client/petstore/scala-akka/docs/Category.md index 6f5421307d51..c941d96b08fe 100644 --- a/samples/client/petstore/scala-akka/docs/Category.md +++ b/samples/client/petstore/scala-akka/docs/Category.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes **name** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-akka/docs/Order.md b/samples/client/petstore/scala-akka/docs/Order.md index 2b9b49297531..c91a2ddb52c2 100644 --- a/samples/client/petstore/scala-akka/docs/Order.md +++ b/samples/client/petstore/scala-akka/docs/Order.md @@ -21,4 +21,3 @@ Allowed values: [placed, approved, delivered] - diff --git a/samples/client/petstore/scala-akka/docs/Pet.md b/samples/client/petstore/scala-akka/docs/Pet.md index 2c65c5440df0..6bc0acf496c3 100644 --- a/samples/client/petstore/scala-akka/docs/Pet.md +++ b/samples/client/petstore/scala-akka/docs/Pet.md @@ -21,4 +21,3 @@ Allowed values: [available, pending, sold] - diff --git a/samples/client/petstore/scala-akka/docs/Tag.md b/samples/client/petstore/scala-akka/docs/Tag.md index ae6756ef3935..072700198ac8 100644 --- a/samples/client/petstore/scala-akka/docs/Tag.md +++ b/samples/client/petstore/scala-akka/docs/Tag.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes **name** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-akka/docs/User.md b/samples/client/petstore/scala-akka/docs/User.md index 44bea4103d0d..bacb4bf36eae 100644 --- a/samples/client/petstore/scala-akka/docs/User.md +++ b/samples/client/petstore/scala-akka/docs/User.md @@ -18,4 +18,3 @@ Name | Type | Description | Notes **userStatus** | **Int** | User Status | [optional] - diff --git a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/PetApi.scala b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/PetApi.scala index e562c0edfb3c..8b3b16f6538f 100644 --- a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/PetApi.scala +++ b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/PetApi.scala @@ -58,9 +58,8 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) - case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) + case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def deletePet(petId: Long, apiKey: Option[String] = None): F[Unit] = { @@ -78,8 +77,7 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def findPetsByStatus(status: Seq[FindPetsByStatusStatusParameterInner]): F[Seq[Pet]] = { @@ -99,9 +97,8 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Seq[Pet]]("Seq[Pet]", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Seq[Pet]]("Seq[Pet]", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def findPetsByTags(tags: Seq[String]): F[Seq[Pet]] = { @@ -121,9 +118,8 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Seq[Pet]]("Seq[Pet]", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Seq[Pet]]("Seq[Pet]", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def getPetById(petId: Long)(implicit auth: _Authorization.ApiKey): F[Pet] = { @@ -140,10 +136,9 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = Some(auth)) { - case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def updatePet(pet: Pet): F[Pet] = { @@ -160,11 +155,10 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Pet]("Pet", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def updatePetWithForm(petId: Long, name: Option[String] = None, status: Option[String] = None): F[Unit] = { @@ -185,9 +179,8 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => Concurrent[F].pure(()) - case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => Concurrent[F].pure(()) + case r if r.status.code == 405 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def uploadFile(petId: Long, additionalMetadata: Option[String] = None, file: Option[File] = None): F[ApiResponse] = { @@ -208,8 +201,7 @@ class PetApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, ApiResponse]("ApiResponse", r) - } + case r if r.status.code == 200 => parseJson[F, ApiResponse]("ApiResponse", r) } } } diff --git a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/StoreApi.scala b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/StoreApi.scala index a0c33365cc0a..a261d70ed881 100644 --- a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/StoreApi.scala +++ b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/StoreApi.scala @@ -50,9 +50,8 @@ class StoreApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def getInventory()(implicit auth: _Authorization.ApiKey): F[Map[String, Int]] = { @@ -69,8 +68,7 @@ class StoreApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = Some(auth)) { - case r if r.status.code == 200 => parseJson[F, Map[String, Int]]("Map[String, Int]", r) - } + case r if r.status.code == 200 => parseJson[F, Map[String, Int]]("Map[String, Int]", r) } } override def getOrderById(orderId: Long): F[Order] = { @@ -87,10 +85,9 @@ class StoreApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Order]("Order", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Order]("Order", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def placeOrder(order: Order): F[Order] = { @@ -107,9 +104,8 @@ class StoreApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, Order]("Order", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, Order]("Order", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } } diff --git a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/UserApi.scala b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/UserApi.scala index 749cb93d4b80..70f8e300b272 100644 --- a/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/UserApi.scala +++ b/samples/client/petstore/scala-http4s/src/main/scala/org/openapitools/client/apis/UserApi.scala @@ -55,8 +55,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( queryParameters = Nil, requestHeaders = requestHeaders, auth = Some(auth)) { - r => Concurrent[F].pure(()) - } + r => Concurrent[F].pure(()) } } override def createUsersWithArrayInput(user: Seq[User])(implicit auth: _Authorization.ApiKey): F[Unit] = { @@ -72,8 +71,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( queryParameters = Nil, requestHeaders = requestHeaders, auth = Some(auth)) { - r => Concurrent[F].pure(()) - } + r => Concurrent[F].pure(()) } } override def createUsersWithListInput(user: Seq[User])(implicit auth: _Authorization.ApiKey): F[Unit] = { @@ -89,8 +87,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( queryParameters = Nil, requestHeaders = requestHeaders, auth = Some(auth)) { - r => Concurrent[F].pure(()) - } + r => Concurrent[F].pure(()) } } override def deleteUser(username: String)(implicit auth: _Authorization.ApiKey): F[Unit] = { @@ -107,9 +104,8 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = Some(auth)) { - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def getUserByName(username: String): F[User] = { @@ -126,10 +122,9 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, User]("User", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, User]("User", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def loginUser(username: String, password: String): F[String] = { @@ -150,9 +145,8 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = None) { - case r if r.status.code == 200 => parseJson[F, String]("String", r) - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 200 => parseJson[F, String]("String", r) + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } override def logoutUser()(implicit auth: _Authorization.ApiKey): F[Unit] = { @@ -168,8 +162,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( queryParameters = Nil, requestHeaders = requestHeaders, auth = Some(auth)) { - r => Concurrent[F].pure(()) - } + r => Concurrent[F].pure(()) } } override def updateUser(username: String, user: User)(implicit auth: _Authorization.ApiKey): F[Unit] = { @@ -186,9 +179,8 @@ class UserApiEndpointsImpl[F[*]: Concurrent]( requestHeaders = requestHeaders, auth = Some(auth)) { - case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) - } + case r if r.status.code == 400 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) + case r if r.status.code == 404 => Concurrent[F].raiseError(_FailedRequest(r.status.code, r.status.reason)) } } } diff --git a/samples/client/petstore/scala-pekko/docs/ApiResponse.md b/samples/client/petstore/scala-pekko/docs/ApiResponse.md index bd174989f6f0..d6422f89682f 100644 --- a/samples/client/petstore/scala-pekko/docs/ApiResponse.md +++ b/samples/client/petstore/scala-pekko/docs/ApiResponse.md @@ -13,4 +13,3 @@ Name | Type | Description | Notes **message** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-pekko/docs/Category.md b/samples/client/petstore/scala-pekko/docs/Category.md index 6f5421307d51..c941d96b08fe 100644 --- a/samples/client/petstore/scala-pekko/docs/Category.md +++ b/samples/client/petstore/scala-pekko/docs/Category.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes **name** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-pekko/docs/Order.md b/samples/client/petstore/scala-pekko/docs/Order.md index 2b9b49297531..c91a2ddb52c2 100644 --- a/samples/client/petstore/scala-pekko/docs/Order.md +++ b/samples/client/petstore/scala-pekko/docs/Order.md @@ -21,4 +21,3 @@ Allowed values: [placed, approved, delivered] - diff --git a/samples/client/petstore/scala-pekko/docs/Pet.md b/samples/client/petstore/scala-pekko/docs/Pet.md index 2c65c5440df0..6bc0acf496c3 100644 --- a/samples/client/petstore/scala-pekko/docs/Pet.md +++ b/samples/client/petstore/scala-pekko/docs/Pet.md @@ -21,4 +21,3 @@ Allowed values: [available, pending, sold] - diff --git a/samples/client/petstore/scala-pekko/docs/Tag.md b/samples/client/petstore/scala-pekko/docs/Tag.md index ae6756ef3935..072700198ac8 100644 --- a/samples/client/petstore/scala-pekko/docs/Tag.md +++ b/samples/client/petstore/scala-pekko/docs/Tag.md @@ -12,4 +12,3 @@ Name | Type | Description | Notes **name** | **String** | | [optional] - diff --git a/samples/client/petstore/scala-pekko/docs/User.md b/samples/client/petstore/scala-pekko/docs/User.md index 44bea4103d0d..bacb4bf36eae 100644 --- a/samples/client/petstore/scala-pekko/docs/User.md +++ b/samples/client/petstore/scala-pekko/docs/User.md @@ -18,4 +18,3 @@ Name | Type | Description | Notes **userStatus** | **Int** | User Status | [optional] - diff --git a/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/model/Pet.java index 5e8e02146fd8..12cb9f99ce6a 100644 --- a/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/model/Pet.java @@ -22,7 +22,6 @@ /** * Pet */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -60,8 +59,7 @@ public Pet atType(String atType) { * Get atType * @return atType */ - @NotNull - @ApiModelProperty(required = true, value = "") + @NotNull @ApiModelProperty(required = true, value = "") @JsonProperty("@type") public String getAtType() { return atType; @@ -80,8 +78,7 @@ public Pet age(Integer age) { * Get age * @return age */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("age") public Integer getAge() { return age; @@ -100,8 +97,7 @@ public Pet happy(Boolean happy) { * Get happy * @return happy */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("happy") public Boolean getHappy() { return happy; @@ -120,8 +116,7 @@ public Pet price(BigDecimal price) { * Get price * @return price */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("price") public BigDecimal getPrice() { return price; @@ -140,8 +135,7 @@ public Pet lastFeed(OffsetDateTime lastFeed) { * Get lastFeed * @return lastFeed */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("lastFeed") public OffsetDateTime getLastFeed() { return lastFeed; @@ -160,8 +154,7 @@ public Pet dateOfBirth(LocalDate dateOfBirth) { * Get dateOfBirth * @return dateOfBirth */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("dateOfBirth") public LocalDate getDateOfBirth() { return dateOfBirth; @@ -170,7 +163,6 @@ public LocalDate getDateOfBirth() { public void setDateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java index a63e08084aab..08f803e7ac43 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java @@ -17,7 +17,6 @@ /** * A category for a pet */ - @Schema(name = "Category", description = "A category for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Category { @@ -35,8 +34,7 @@ public Category id(Long id) { * Get id * @return id */ - - @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") public Long getId() { return id; @@ -55,8 +53,7 @@ public Category name(String name) { * Get name * @return name */ - @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") public String getName() { return name; @@ -65,7 +62,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java index 7c8c0ed9b56e..3f228d798b36 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -18,7 +18,6 @@ /** * Describes the result of uploading an image resource */ - @Schema(name = "ApiResponse", description = "Describes the result of uploading an image resource") @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") @@ -39,8 +38,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - - @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("code") public Integer getCode() { return code; @@ -59,8 +57,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - - @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("type") public String getType() { return type; @@ -79,8 +76,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - - @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("message") public String getMessage() { return message; @@ -89,7 +85,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java index 258db3676b77..90970ebe511f 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java @@ -21,7 +21,6 @@ * An order for a pets from the pet store * @deprecated */ - @Deprecated @Schema(name = "Order", description = "An order for a pets from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") @@ -72,7 +71,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -86,8 +84,7 @@ public Order id(Long id) { * Get id * @return id */ - - @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") public Long getId() { return id; @@ -106,8 +103,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - - @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("petId") public Long getPetId() { return petId; @@ -126,8 +122,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - - @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("quantity") public Integer getQuantity() { return quantity; @@ -146,8 +141,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @Valid - @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Valid @Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("shipDate") public OffsetDateTime getShipDate() { return shipDate; @@ -166,8 +160,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - - @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -186,8 +179,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - - @Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("complete") public Boolean getComplete() { return complete; @@ -196,7 +188,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java index 5a9773be7803..27708d50a1c5 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java @@ -23,7 +23,6 @@ /** * A pet for sale in the pet store */ - @Schema(name = "Pet", description = "A pet for sale in the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -77,7 +76,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; public Pet() { @@ -101,8 +99,7 @@ public Pet id(Long id) { * Get id * @return id */ - - @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") public Long getId() { return id; @@ -121,8 +118,7 @@ public Pet category(Category category) { * Get category * @return category */ - @Valid - @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Valid @Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("category") public Category getCategory() { return category; @@ -141,8 +137,7 @@ public Pet name(String name) { * Get name * @return name */ - @NotNull - @Schema(name = "name", example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED) + @NotNull @Schema(name = "name", example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("name") public JsonNullable getName() { return name; @@ -170,8 +165,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls * @deprecated */ - @NotNull - @Schema(name = "photoUrls", deprecated = true, requiredMode = Schema.RequiredMode.REQUIRED) + @NotNull @Schema(name = "photoUrls", deprecated = true, requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("photoUrls") @Deprecated public List getPhotoUrls() { @@ -203,8 +197,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @Valid - @Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Valid @Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("tags") public List<@Valid Tag> getTags() { return tags; @@ -223,8 +216,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - - @Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -233,7 +225,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java index 896d9d023a0c..4c1bb7f3c18c 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java @@ -17,7 +17,6 @@ /** * A tag for a pet */ - @Schema(name = "Tag", description = "A tag for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { @@ -35,8 +34,7 @@ public Tag id(Long id) { * Get id * @return id */ - - @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") public Long getId() { return id; @@ -55,8 +53,7 @@ public Tag name(String name) { * Get name * @return name */ - - @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name") public String getName() { return name; @@ -65,7 +62,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java index 0abf5707cc5d..0ae9b271c790 100644 --- a/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java @@ -17,7 +17,6 @@ /** * A User who is purchasing from the pet store */ - @Schema(name = "User", description = "A User who is purchasing from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { @@ -47,8 +46,7 @@ public User id(Long id) { * Get id * @return id */ - - @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") public Long getId() { return id; @@ -67,8 +65,7 @@ public User username(String username) { * Get username * @return username */ - - @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("username") public String getUsername() { return username; @@ -87,8 +84,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - - @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("firstName") public String getFirstName() { return firstName; @@ -107,8 +103,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - - @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("lastName") public String getLastName() { return lastName; @@ -127,8 +122,7 @@ public User email(String email) { * Get email * @return email */ - - @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("email") public String getEmail() { return email; @@ -147,8 +141,7 @@ public User password(String password) { * Get password * @return password */ - - @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("password") public String getPassword() { return password; @@ -167,8 +160,7 @@ public User phone(String phone) { * Get phone * @return phone */ - - @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("phone") public String getPhone() { return phone; @@ -187,8 +179,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - - @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("userStatus") public Integer getUserStatus() { return userStatus; @@ -197,7 +188,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java index 6651747c31ec..894c6652c661 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java @@ -18,7 +18,6 @@ /** * A category for a pet */ - @ApiModel(description = "A category for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Category { @@ -36,8 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @ApiModelProperty(value = "") + @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java index 003a3550a86d..cfa87d087cd3 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -19,7 +19,6 @@ /** * Describes the result of uploading an image resource */ - @ApiModel(description = "Describes the result of uploading an image resource") @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") @@ -40,8 +39,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("code") public Integer getCode() { return code; @@ -60,8 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("type") public String getType() { return type; @@ -80,8 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("message") public String getMessage() { return message; @@ -90,7 +86,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java index ea9cdb4e974d..4a64ad2e2c2b 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java @@ -21,7 +21,6 @@ /** * An order for a pets from the pet store */ - @ApiModel(description = "An order for a pets from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Order { @@ -71,7 +70,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -85,8 +83,7 @@ public Order id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -105,8 +102,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("petId") public Long getPetId() { return petId; @@ -125,8 +121,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("quantity") public Integer getQuantity() { return quantity; @@ -145,8 +140,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") public OffsetDateTime getShipDate() { return shipDate; @@ -165,8 +159,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - - @ApiModelProperty(value = "Order Status") + @ApiModelProperty(value = "Order Status") @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -185,8 +178,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("complete") public Boolean getComplete() { return complete; @@ -195,7 +187,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java index feb747dc8a64..94a3a82911c2 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * A pet for sale in the pet store */ - @ApiModel(description = "A pet for sale in the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -77,7 +76,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - @Deprecated private StatusEnum status; @@ -102,8 +100,7 @@ public Pet id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -122,8 +119,7 @@ public Pet category(Category category) { * Get category * @return category */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("category") public Category getCategory() { return category; @@ -142,8 +138,7 @@ public Pet name(String name) { * Get name * @return name */ - @NotNull - @ApiModelProperty(example = "doggie", required = true, value = "") + @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") public String getName() { return name; @@ -170,8 +165,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @NotNull - @ApiModelProperty(required = true, value = "") + @NotNull @ApiModelProperty(required = true, value = "") @JsonProperty("photoUrls") public List getPhotoUrls() { return photoUrls; @@ -198,8 +192,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("tags") public List<@Valid Tag> getTags() { return tags; @@ -219,8 +212,7 @@ public Pet status(StatusEnum status) { * @return status * @deprecated */ - - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated public StatusEnum getStatus() { @@ -234,7 +226,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java index 4ff8d5c9bb34..605763166f0a 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Tag.java @@ -18,7 +18,6 @@ /** * A tag for a pet */ - @ApiModel(description = "A tag for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { @@ -36,8 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java index a73b85014aa4..a1a215b86b72 100644 --- a/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/User.java @@ -18,7 +18,6 @@ /** * A User who is purchasing from the pet store */ - @ApiModel(description = "A User who is purchasing from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { @@ -48,8 +47,7 @@ public User id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -68,8 +66,7 @@ public User username(String username) { * Get username * @return username */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("username") public String getUsername() { return username; @@ -88,8 +85,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("firstName") public String getFirstName() { return firstName; @@ -108,8 +104,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("lastName") public String getLastName() { return lastName; @@ -128,8 +123,7 @@ public User email(String email) { * Get email * @return email */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("email") public String getEmail() { return email; @@ -148,8 +142,7 @@ public User password(String password) { * Get password * @return password */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("password") public String getPassword() { return password; @@ -168,8 +161,7 @@ public User phone(String phone) { * Get phone * @return phone */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("phone") public String getPhone() { return phone; @@ -188,8 +180,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - - @ApiModelProperty(value = "User Status") + @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") public Integer getUserStatus() { return userStatus; @@ -198,7 +189,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java index 79b460fc6a15..51cbcec712ad 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Category.java @@ -18,7 +18,6 @@ /** * A category for a pet */ - @ApiModel(description = "A category for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Category { @@ -36,8 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Category name(String name) { * Get name * @return name */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java index 003a3550a86d..cfa87d087cd3 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -19,7 +19,6 @@ /** * Describes the result of uploading an image resource */ - @ApiModel(description = "Describes the result of uploading an image resource") @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") @@ -40,8 +39,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("code") public Integer getCode() { return code; @@ -60,8 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("type") public String getType() { return type; @@ -80,8 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("message") public String getMessage() { return message; @@ -90,7 +86,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java index ea9cdb4e974d..4a64ad2e2c2b 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Order.java @@ -21,7 +21,6 @@ /** * An order for a pets from the pet store */ - @ApiModel(description = "An order for a pets from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Order { @@ -71,7 +70,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -85,8 +83,7 @@ public Order id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -105,8 +102,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("petId") public Long getPetId() { return petId; @@ -125,8 +121,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("quantity") public Integer getQuantity() { return quantity; @@ -145,8 +140,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") public OffsetDateTime getShipDate() { return shipDate; @@ -165,8 +159,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - - @ApiModelProperty(value = "Order Status") + @ApiModelProperty(value = "Order Status") @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -185,8 +178,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("complete") public Boolean getComplete() { return complete; @@ -195,7 +187,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java index 102b6051c7c8..e93a2bfb2641 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * A pet for sale in the pet store */ - @ApiModel(description = "A pet for sale in the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -77,7 +76,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; public Pet() { @@ -101,8 +99,7 @@ public Pet id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -121,8 +118,7 @@ public Pet category(Category category) { * Get category * @return category */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("category") public Category getCategory() { return category; @@ -141,8 +137,7 @@ public Pet name(String name) { * Get name * @return name */ - @NotNull - @ApiModelProperty(example = "doggie", required = true, value = "") + @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") public String getName() { return name; @@ -169,8 +164,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @NotNull - @ApiModelProperty(required = true, value = "") + @NotNull @ApiModelProperty(required = true, value = "") @JsonProperty("photoUrls") public List getPhotoUrls() { return photoUrls; @@ -197,8 +191,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("tags") public List<@Valid Tag> getTags() { return tags; @@ -217,8 +210,7 @@ public Pet status(StatusEnum status) { * pet status in the store * @return status */ - - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -227,7 +219,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java index 4ff8d5c9bb34..605763166f0a 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/Tag.java @@ -18,7 +18,6 @@ /** * A tag for a pet */ - @ApiModel(description = "A tag for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { @@ -36,8 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java index a73b85014aa4..a1a215b86b72 100644 --- a/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud-tags/src/main/java/org/openapitools/model/User.java @@ -18,7 +18,6 @@ /** * A User who is purchasing from the pet store */ - @ApiModel(description = "A User who is purchasing from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { @@ -48,8 +47,7 @@ public User id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -68,8 +66,7 @@ public User username(String username) { * Get username * @return username */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("username") public String getUsername() { return username; @@ -88,8 +85,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("firstName") public String getFirstName() { return firstName; @@ -108,8 +104,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("lastName") public String getLastName() { return lastName; @@ -128,8 +123,7 @@ public User email(String email) { * Get email * @return email */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("email") public String getEmail() { return email; @@ -148,8 +142,7 @@ public User password(String password) { * Get password * @return password */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("password") public String getPassword() { return password; @@ -168,8 +161,7 @@ public User phone(String phone) { * Get phone * @return phone */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("phone") public String getPhone() { return phone; @@ -188,8 +180,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - - @ApiModelProperty(value = "User Status") + @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") public Integer getUserStatus() { return userStatus; @@ -198,7 +189,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java index 6651747c31ec..894c6652c661 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Category.java @@ -18,7 +18,6 @@ /** * A category for a pet */ - @ApiModel(description = "A category for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Category { @@ -36,8 +35,7 @@ public Category id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Category name(String name) { * Get name * @return name */ - @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @ApiModelProperty(value = "") + @Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java index 003a3550a86d..cfa87d087cd3 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -19,7 +19,6 @@ /** * Describes the result of uploading an image resource */ - @ApiModel(description = "Describes the result of uploading an image resource") @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") @@ -40,8 +39,7 @@ public ModelApiResponse code(Integer code) { * Get code * @return code */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("code") public Integer getCode() { return code; @@ -60,8 +58,7 @@ public ModelApiResponse type(String type) { * Get type * @return type */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("type") public String getType() { return type; @@ -80,8 +77,7 @@ public ModelApiResponse message(String message) { * Get message * @return message */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("message") public String getMessage() { return message; @@ -90,7 +86,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java index ea9cdb4e974d..4a64ad2e2c2b 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Order.java @@ -21,7 +21,6 @@ /** * An order for a pets from the pet store */ - @ApiModel(description = "An order for a pets from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Order { @@ -71,7 +70,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -85,8 +83,7 @@ public Order id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -105,8 +102,7 @@ public Order petId(Long petId) { * Get petId * @return petId */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("petId") public Long getPetId() { return petId; @@ -125,8 +121,7 @@ public Order quantity(Integer quantity) { * Get quantity * @return quantity */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("quantity") public Integer getQuantity() { return quantity; @@ -145,8 +140,7 @@ public Order shipDate(OffsetDateTime shipDate) { * Get shipDate * @return shipDate */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("shipDate") public OffsetDateTime getShipDate() { return shipDate; @@ -165,8 +159,7 @@ public Order status(StatusEnum status) { * Order Status * @return status */ - - @ApiModelProperty(value = "Order Status") + @ApiModelProperty(value = "Order Status") @JsonProperty("status") public StatusEnum getStatus() { return status; @@ -185,8 +178,7 @@ public Order complete(Boolean complete) { * Get complete * @return complete */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("complete") public Boolean getComplete() { return complete; @@ -195,7 +187,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java index feb747dc8a64..94a3a82911c2 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * A pet for sale in the pet store */ - @ApiModel(description = "A pet for sale in the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -77,7 +76,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - @Deprecated private StatusEnum status; @@ -102,8 +100,7 @@ public Pet id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -122,8 +119,7 @@ public Pet category(Category category) { * Get category * @return category */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("category") public Category getCategory() { return category; @@ -142,8 +138,7 @@ public Pet name(String name) { * Get name * @return name */ - @NotNull - @ApiModelProperty(example = "doggie", required = true, value = "") + @NotNull @ApiModelProperty(example = "doggie", required = true, value = "") @JsonProperty("name") public String getName() { return name; @@ -170,8 +165,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get photoUrls * @return photoUrls */ - @NotNull - @ApiModelProperty(required = true, value = "") + @NotNull @ApiModelProperty(required = true, value = "") @JsonProperty("photoUrls") public List getPhotoUrls() { return photoUrls; @@ -198,8 +192,7 @@ public Pet addTagsItem(Tag tagsItem) { * Get tags * @return tags */ - @Valid - @ApiModelProperty(value = "") + @Valid @ApiModelProperty(value = "") @JsonProperty("tags") public List<@Valid Tag> getTags() { return tags; @@ -219,8 +212,7 @@ public Pet status(StatusEnum status) { * @return status * @deprecated */ - - @ApiModelProperty(value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") @JsonProperty("status") @Deprecated public StatusEnum getStatus() { @@ -234,7 +226,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java index 4ff8d5c9bb34..605763166f0a 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/Tag.java @@ -18,7 +18,6 @@ /** * A tag for a pet */ - @ApiModel(description = "A tag for a pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { @@ -36,8 +35,7 @@ public Tag id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -56,8 +54,7 @@ public Tag name(String name) { * Get name * @return name */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("name") public String getName() { return name; @@ -66,7 +63,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java index a73b85014aa4..a1a215b86b72 100644 --- a/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-cloud/src/main/java/org/openapitools/model/User.java @@ -18,7 +18,6 @@ /** * A User who is purchasing from the pet store */ - @ApiModel(description = "A User who is purchasing from the pet store") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { @@ -48,8 +47,7 @@ public User id(Long id) { * Get id * @return id */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("id") public Long getId() { return id; @@ -68,8 +66,7 @@ public User username(String username) { * Get username * @return username */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("username") public String getUsername() { return username; @@ -88,8 +85,7 @@ public User firstName(String firstName) { * Get firstName * @return firstName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("firstName") public String getFirstName() { return firstName; @@ -108,8 +104,7 @@ public User lastName(String lastName) { * Get lastName * @return lastName */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("lastName") public String getLastName() { return lastName; @@ -128,8 +123,7 @@ public User email(String email) { * Get email * @return email */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("email") public String getEmail() { return email; @@ -148,8 +142,7 @@ public User password(String password) { * Get password * @return password */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("password") public String getPassword() { return password; @@ -168,8 +161,7 @@ public User phone(String phone) { * Get phone * @return phone */ - - @ApiModelProperty(value = "") + @ApiModelProperty(value = "") @JsonProperty("phone") public String getPhone() { return phone; @@ -188,8 +180,7 @@ public User userStatus(Integer userStatus) { * User Status * @return userStatus */ - - @ApiModelProperty(value = "User Status") + @ApiModelProperty(value = "User Status") @JsonProperty("userStatus") public Integer getUserStatus() { return userStatus; @@ -198,7 +189,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java index ecd7e4fdb7b0..cb942d9641ab 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesAnyType */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesAnyType { @@ -80,7 +79,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java index edeca9df56b5..b9bc156f8331 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesArray */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesArray { @@ -81,7 +80,6 @@ public List getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 3c873e25f515..28fa8492139b 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesBoolean */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesBoolean { @@ -80,7 +79,6 @@ public Boolean getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java index 39c2c8de79d0..f8fb28203c32 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -22,7 +22,6 @@ /** * AdditionalPropertiesClass */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesClass { @@ -328,7 +327,6 @@ public Object getAnytype3() { public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java index 6315c9646a59..68a952dd2880 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesInteger */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesInteger { @@ -80,7 +79,6 @@ public Integer getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java index 168833b97093..ea27e0a42a2f 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesNumber */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesNumber { @@ -81,7 +80,6 @@ public BigDecimal getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java index 818d17a5ec08..815dc718aff0 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesObject */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesObject { @@ -81,7 +80,6 @@ public Map getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java index 616168f41507..158b67576a87 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/AdditionalPropertiesString.java @@ -19,7 +19,6 @@ /** * AdditionalPropertiesString */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesString { @@ -80,7 +79,6 @@ public String getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Animal.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Animal.java index a42a82e2f432..0ff69c4eb250 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Animal.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Animal.java @@ -18,7 +18,6 @@ /** * Animal */ - @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -29,7 +28,6 @@ @JsonSubTypes.Type(value = Cat.class, name = "Cat"), @JsonSubTypes.Type(value = Dog.class, name = "Dog") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Animal { @@ -85,7 +83,6 @@ public String getColor() { public void setColor(String color) { this.color = color; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 71529a2c4e71..16b46582b2ab 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfArrayOfNumberOnly */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnly { @@ -52,7 +51,6 @@ public List> getArrayArrayNumber() { public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java index ff79c2af2f5e..29bb9df6af8a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -19,7 +19,6 @@ /** * ArrayOfNumberOnly */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfNumberOnly { @@ -52,7 +51,6 @@ public List getArrayNumber() { public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayTest.java index 2f76cf154ccd..d535c76ce779 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ArrayTest.java @@ -19,7 +19,6 @@ /** * ArrayTest */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayTest { @@ -112,7 +111,6 @@ public List> getArrayArrayOfModel() { public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java index 442a5af808ea..da670ec39a49 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -20,8 +20,6 @@ /** * BigCat */ - - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class BigCat extends Cat { @@ -63,7 +61,6 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private KindEnum kind; public BigCat() { @@ -96,7 +93,6 @@ public void setKind(KindEnum kind) { this.kind = kind; } - public BigCat declawed(Boolean declawed) { super.declawed(declawed); return this; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java index 41bd9eb740ab..0f127acfe395 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Capitalization.java @@ -15,7 +15,6 @@ /** * Capitalization */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Capitalization { @@ -144,7 +143,6 @@ public String getATTNAME() { public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java index a3fede1f69e1..5aeb81eb52e9 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Cat.java @@ -19,7 +19,6 @@ /** * Cat */ - @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -28,7 +27,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = BigCat.class, name = "BigCat") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Cat extends Animal { @@ -64,7 +62,6 @@ public void setDeclawed(Boolean declawed) { this.declawed = declawed; } - public Cat className(String className) { super.className(className); return this; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java index 5c69c65f72aa..235ab3a92638 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Category.java @@ -15,7 +15,6 @@ /** * Category */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Category { @@ -71,7 +70,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java index 5f7686261ff8..342896ee213b 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -22,8 +22,6 @@ /** * ChildWithNullable */ - - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ChildWithNullable extends ParentWithNullable { @@ -48,7 +46,6 @@ public void setOtherProperty(String otherProperty) { this.otherProperty = otherProperty; } - public ChildWithNullable type(TypeEnum type) { super.type(type); return this; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java index 71fe3e71c0c2..9ddd696926c9 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ClassModel.java @@ -15,7 +15,6 @@ /** * Model for testing model with \"_class\" property */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ClassModel { @@ -39,7 +38,6 @@ public String getPropertyClass() { public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java index 281712328fde..306a2d92e16c 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Client.java @@ -15,7 +15,6 @@ /** * Client */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Client { @@ -39,7 +38,6 @@ public String getClient() { public void setClient(String client) { this.client = client; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ContainerDefaultValue.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ContainerDefaultValue.java index 7a7c199ee785..bab75cc841af 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ContainerDefaultValue.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ContainerDefaultValue.java @@ -20,7 +20,6 @@ /** * ContainerDefaultValue */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ContainerDefaultValue { @@ -155,7 +154,6 @@ public JsonNullable> getNullableArrayWithDefault() { public void setNullableArrayWithDefault(JsonNullable> nullableArrayWithDefault) { this.nullableArrayWithDefault = nullableArrayWithDefault; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java index 95ca7dd4558e..df6a3c4f7c99 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Dog.java @@ -19,8 +19,6 @@ /** * Dog */ - - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Dog extends Animal { @@ -56,7 +54,6 @@ public void setBreed(String breed) { this.breed = breed; } - public Dog className(String className) { super.className(className); return this; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java index 51c9f5db8be5..8f17fbac9d57 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumArrays.java @@ -19,7 +19,6 @@ /** * EnumArrays */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class EnumArrays { @@ -57,7 +56,6 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private JustSymbolEnum justSymbol; /** @@ -94,7 +92,6 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private List arrayEnum = new ArrayList<>(); @@ -143,7 +140,6 @@ public List getArrayEnum() { public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumClass.java index 643cb4098182..e51e3f488444 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumClass.java @@ -17,7 +17,6 @@ /** * Gets or Sets EnumClass */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public enum EnumClass { @@ -53,4 +52,3 @@ public static EnumClass fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java index d8a769b8ff8c..227033578f47 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -18,7 +18,6 @@ /** * EnumTest */ - @JsonTypeName("Enum_Test") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class EnumTest { @@ -59,7 +58,6 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumStringEnum enumString; /** @@ -98,7 +96,6 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumStringRequiredEnum enumStringRequired; /** @@ -135,7 +132,6 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumIntegerEnum enumInteger; /** @@ -172,7 +168,6 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumNumberEnum enumNumber; private OuterEnum outerEnum; @@ -282,7 +277,6 @@ public OuterEnum getOuterEnum() { public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java index 7b4ddc4387ec..da7bec3f49ee 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/File.java @@ -15,7 +15,6 @@ /** * Must be named `File` for test. */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class File { @@ -39,7 +38,6 @@ public String getSourceURI() { public void setSourceURI(String sourceURI) { this.sourceURI = sourceURI; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 0f34e38e65e0..c56e336f7c5a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -19,7 +19,6 @@ /** * FileSchemaTestClass */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FileSchemaTestClass { @@ -73,7 +72,6 @@ public List getFiles() { public void setFiles(List files) { this.files = files; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java index 8988905a8e20..f49f397e0c57 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -22,7 +22,6 @@ /** * FormatTest */ - @JsonTypeName("format_test") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FormatTest { @@ -346,7 +345,6 @@ public BigDecimal getBigDecimal() { public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java index 858bb4de1e87..5e9037ded575 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/HasOnlyReadOnly.java @@ -16,7 +16,6 @@ /** * HasOnlyReadOnly */ - @JsonTypeName("hasOnlyReadOnly") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class HasOnlyReadOnly { @@ -62,7 +61,6 @@ public String getFoo() { public void setFoo(String foo) { this.foo = foo; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MapTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MapTest.java index 2f524edaba6c..5d939b197ffa 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MapTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MapTest.java @@ -18,7 +18,6 @@ /** * MapTest */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MapTest { @@ -59,7 +58,6 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private Map mapOfEnumString = new HashMap<>(); @@ -176,7 +174,6 @@ public Map getIndirectMap() { public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index c46196fe1436..d5f0606a6a5a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -21,7 +21,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClass */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClass { @@ -97,7 +96,6 @@ public Map getMap() { public void setMap(Map map) { this.map = map; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java index afccd07f0bfb..338ec8389fdc 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Model200Response.java @@ -16,7 +16,6 @@ /** * Model for testing model name starting with number */ - @JsonTypeName("200_response") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Model200Response { @@ -62,7 +61,6 @@ public String getPropertyClass() { public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java index 0ca978c25ca3..07eae951cafe 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelApiResponse.java @@ -16,7 +16,6 @@ /** * ModelApiResponse */ - @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelApiResponse { @@ -83,7 +82,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java index 460cebba80a7..f16873e9060f 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelList.java @@ -16,7 +16,6 @@ /** * ModelList */ - @JsonTypeName("List") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelList { @@ -41,7 +40,6 @@ public String get123list() { public void set123list(String _123list) { this._123list = _123list; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java index 91c2a457e68d..fce1b70f7834 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ModelReturn.java @@ -16,7 +16,6 @@ /** * Model for testing reserved words */ - @JsonTypeName("Return") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ModelReturn { @@ -41,7 +40,6 @@ public Integer getReturn() { public void setReturn(Integer _return) { this._return = _return; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java index 92698677a649..73c4b91768a1 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Name.java @@ -15,7 +15,6 @@ /** * Model for testing model name same as property name */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Name { @@ -113,7 +112,6 @@ public Integer get123number() { public void set123number(Integer _123number) { this._123number = _123number; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NullableMapProperty.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NullableMapProperty.java index a233bff1bef6..0f1f530bc721 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NullableMapProperty.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NullableMapProperty.java @@ -20,7 +20,6 @@ /** * NullableMapProperty */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NullableMapProperty { @@ -53,7 +52,6 @@ public JsonNullable> getLanguageValues() { public void setLanguageValues(JsonNullable> languageValues) { this.languageValues = languageValues; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java index c59a970f929d..c5add63de9ea 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/NumberOnly.java @@ -16,7 +16,6 @@ /** * NumberOnly */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NumberOnly { @@ -40,7 +39,6 @@ public BigDecimal getJustNumber() { public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java index 0f04b776e278..2c6abb7c7746 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Order.java @@ -18,7 +18,6 @@ /** * Order */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Order { @@ -67,7 +66,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -185,7 +183,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java index 828d3705ec4a..822a7772123b 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterComposite.java @@ -16,7 +16,6 @@ /** * OuterComposite */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class OuterComposite { @@ -82,7 +81,6 @@ public Boolean getMyBoolean() { public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterEnum.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterEnum.java index e197a8ae6c9a..c0548200795a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterEnum.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/OuterEnum.java @@ -17,7 +17,6 @@ /** * Gets or Sets OuterEnum */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public enum OuterEnum { @@ -53,4 +52,3 @@ public static OuterEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java index 1cfea276705a..44816b91f657 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ParentWithNullable.java @@ -22,7 +22,6 @@ /** * ParentWithNullable */ - @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -31,7 +30,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildWithNullable.class, name = "ChildWithNullable") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ParentWithNullable { @@ -67,7 +65,6 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private TypeEnum type; private JsonNullable nullableProperty = JsonNullable.undefined(); @@ -109,7 +106,6 @@ public JsonNullable getNullableProperty() { public void setNullableProperty(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java index 77d3d6a1390d..8a1de4bb5674 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Pet.java @@ -24,7 +24,6 @@ /** * Pet */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Pet { @@ -76,7 +75,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - @Deprecated private StatusEnum status; @@ -228,7 +226,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java index 39be1c79e737..fb62263dc70b 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ReadOnlyFirst.java @@ -15,7 +15,6 @@ /** * ReadOnlyFirst */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ReadOnlyFirst { @@ -60,7 +59,6 @@ public String getBaz() { public void setBaz(String baz) { this.baz = baz; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java index bc9eb1e50a1f..bb1d55f6266a 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java @@ -15,7 +15,6 @@ /** * ResponseObjectWithDifferentFieldNames */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ResponseObjectWithDifferentFieldNames { @@ -102,7 +101,6 @@ public String getPropertyNameWithSpaces() { public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java index 381f845a45af..9567c86f3f00 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/SpecialModelName.java @@ -16,7 +16,6 @@ /** * SpecialModelName */ - @JsonTypeName("_special_model.name_") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class SpecialModelName { @@ -41,7 +40,6 @@ public class SpecialModelName { public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java index be7fe4bbe678..ac54d904ca80 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/Tag.java @@ -15,7 +15,6 @@ /** * Tag */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Tag { @@ -60,7 +59,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4d686871a87d..e3c572801209 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -19,7 +19,6 @@ /** * TypeHolderDefault */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TypeHolderDefault { @@ -151,7 +150,6 @@ public List getArrayItem() { public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java index 9890eee7782d..99555cea23b6 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -19,7 +19,6 @@ /** * TypeHolderExample */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TypeHolderExample { @@ -173,7 +172,6 @@ public List getArrayItem() { public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java index 6e8356457203..64267d836ac8 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/User.java @@ -15,7 +15,6 @@ /** * User */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class User { @@ -186,7 +185,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java index 30a4ffe2b3d8..173fd88478ff 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -19,7 +19,6 @@ /** * XmlItem */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class XmlItem { @@ -712,7 +711,6 @@ public List getPrefixNsWrappedArray() { public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java index 2e0ab2b71f94..d9e825fa389d 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesAnyTypeDto.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesAnyTypeDto */ - @JsonTypeName("AdditionalPropertiesAnyType") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesAnyTypeDto { @@ -82,7 +81,6 @@ public Object getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java index 8b80ba556b41..40e5c3316482 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesArrayDto.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesArrayDto */ - @JsonTypeName("AdditionalPropertiesArray") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesArrayDto { @@ -83,7 +82,6 @@ public List getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java index 9c9e6fcc79d4..c0b31c04b28b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesBooleanDto.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesBooleanDto */ - @JsonTypeName("AdditionalPropertiesBoolean") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesBooleanDto { @@ -82,7 +81,6 @@ public Boolean getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java index 44b38195aa41..8302f4e34aae 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesClassDto.java @@ -23,7 +23,6 @@ /** * AdditionalPropertiesClassDto */ - @JsonTypeName("AdditionalPropertiesClass") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesClassDto { @@ -330,7 +329,6 @@ public Object getAnytype3() { public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java index 00204124ac68..d9ba7e74dad0 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesIntegerDto.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesIntegerDto */ - @JsonTypeName("AdditionalPropertiesInteger") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesIntegerDto { @@ -82,7 +81,6 @@ public Integer getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java index 37bf801921d1..cb835e95dd66 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesNumberDto.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesNumberDto */ - @JsonTypeName("AdditionalPropertiesNumber") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesNumberDto { @@ -83,7 +82,6 @@ public BigDecimal getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java index 0a756750b45c..f323a9edffbe 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesObjectDto.java @@ -21,7 +21,6 @@ /** * AdditionalPropertiesObjectDto */ - @JsonTypeName("AdditionalPropertiesObject") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesObjectDto { @@ -83,7 +82,6 @@ public Map getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java index 490f207f3bb0..a547bac59aac 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AdditionalPropertiesStringDto.java @@ -20,7 +20,6 @@ /** * AdditionalPropertiesStringDto */ - @JsonTypeName("AdditionalPropertiesString") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AdditionalPropertiesStringDto { @@ -82,7 +81,6 @@ public String getAdditionalProperty(String key) { } return this.additionalProperties.get(key); } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AnimalDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AnimalDto.java index 8e707956747d..57a48e4cf841 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AnimalDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/AnimalDto.java @@ -19,7 +19,6 @@ /** * AnimalDto */ - @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -30,7 +29,6 @@ @JsonSubTypes.Type(value = CatDto.class, name = "Cat"), @JsonSubTypes.Type(value = DogDto.class, name = "Dog") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class AnimalDto { @@ -79,7 +77,6 @@ public String getColor() { public void setColor(String color) { this.color = color; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java index 9a846146ce09..754913fc550b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ApiResponseDto.java @@ -16,7 +16,6 @@ /** * ApiResponseDto */ - @JsonTypeName("ApiResponse") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ApiResponseDto { @@ -83,7 +82,6 @@ public String getMessage() { public void setMessage(String message) { this.message = message; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnlyDto.java index ea8ba785db63..8b6963ed5606 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnlyDto.java @@ -20,7 +20,6 @@ /** * ArrayOfArrayOfNumberOnlyDto */ - @JsonTypeName("ArrayOfArrayOfNumberOnly") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfArrayOfNumberOnlyDto { @@ -54,7 +53,6 @@ public List> getArrayArrayNumber() { public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfNumberOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfNumberOnlyDto.java index 30d1a57ffc3d..ec810498194a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfNumberOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayOfNumberOnlyDto.java @@ -20,7 +20,6 @@ /** * ArrayOfNumberOnlyDto */ - @JsonTypeName("ArrayOfNumberOnly") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayOfNumberOnlyDto { @@ -54,7 +53,6 @@ public List getArrayNumber() { public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayTestDto.java index 2d2ddd679e13..b1db1b893336 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ArrayTestDto.java @@ -20,7 +20,6 @@ /** * ArrayTestDto */ - @JsonTypeName("ArrayTest") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ArrayTestDto { @@ -114,7 +113,6 @@ public List> getArrayArrayOfModel() { public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java index f73db61a75f2..51656a2c2493 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java @@ -21,8 +21,6 @@ /** * BigCatDto */ - - @JsonTypeName("BigCat") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class BigCatDto extends CatDto { @@ -65,7 +63,6 @@ public static KindEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private KindEnum kind; public BigCatDto() { @@ -91,7 +88,6 @@ public void setKind(KindEnum kind) { this.kind = kind; } - public BigCatDto declawed(Boolean declawed) { super.declawed(declawed); return this; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java index 29004fbd2d76..79992b50901c 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CapitalizationDto.java @@ -16,7 +16,6 @@ /** * CapitalizationDto */ - @JsonTypeName("Capitalization") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class CapitalizationDto { @@ -146,7 +145,6 @@ public String getATTNAME() { public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java index 2b112fd7f06e..a6fd2c77fb62 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CatDto.java @@ -20,7 +20,6 @@ /** * CatDto */ - @JsonIgnoreProperties( value = "className", // ignore manually set className, it will be automatically generated by Jackson during serialization allowSetters = true // allows the className to be set during deserialization @@ -29,7 +28,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = BigCatDto.class, name = "BigCat") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class CatDto extends AnimalDto { @@ -58,7 +56,6 @@ public void setDeclawed(Boolean declawed) { this.declawed = declawed; } - public CatDto className(String className) { super.className(className); return this; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java index 50b7e72c7b9b..44cd55d26e62 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/CategoryDto.java @@ -16,7 +16,6 @@ /** * CategoryDto */ - @JsonTypeName("Category") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class CategoryDto { @@ -66,7 +65,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java index fec589766481..342701b41d50 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -23,8 +23,6 @@ /** * ChildWithNullableDto */ - - @JsonTypeName("ChildWithNullable") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ChildWithNullableDto extends ParentWithNullableDto { @@ -50,7 +48,6 @@ public void setOtherProperty(String otherProperty) { this.otherProperty = otherProperty; } - public ChildWithNullableDto type(TypeEnum type) { super.type(type); return this; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java index d37b129b629c..4066e8ef70f1 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClassModelDto.java @@ -16,7 +16,6 @@ /** * Model for testing model with \"_class\" property */ - @JsonTypeName("ClassModel") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ClassModelDto { @@ -41,7 +40,6 @@ public String getPropertyClass() { public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java index 8287c800ac03..4f3f36127c1b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ClientDto.java @@ -16,7 +16,6 @@ /** * ClientDto */ - @JsonTypeName("Client") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ClientDto { @@ -41,7 +40,6 @@ public String getClient() { public void setClient(String client) { this.client = client; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ContainerDefaultValueDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ContainerDefaultValueDto.java index 8ee2ae2348f7..a1d409b92d22 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ContainerDefaultValueDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ContainerDefaultValueDto.java @@ -21,7 +21,6 @@ /** * ContainerDefaultValueDto */ - @JsonTypeName("ContainerDefaultValue") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ContainerDefaultValueDto { @@ -149,7 +148,6 @@ public JsonNullable> getNullableArrayWithDefault() { public void setNullableArrayWithDefault(JsonNullable> nullableArrayWithDefault) { this.nullableArrayWithDefault = nullableArrayWithDefault; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java index c6c5d4d11799..ab3093839930 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/DogDto.java @@ -20,8 +20,6 @@ /** * DogDto */ - - @JsonTypeName("Dog") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class DogDto extends AnimalDto { @@ -51,7 +49,6 @@ public void setBreed(String breed) { this.breed = breed; } - public DogDto className(String className) { super.className(className); return this; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java index fd202ea3b0e0..ac06d3539eaf 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumArraysDto.java @@ -20,7 +20,6 @@ /** * EnumArraysDto */ - @JsonTypeName("EnumArrays") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class EnumArraysDto { @@ -59,7 +58,6 @@ public static JustSymbolEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private JustSymbolEnum justSymbol; /** @@ -96,7 +94,6 @@ public static ArrayEnumEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private List arrayEnum = new ArrayList<>(); @@ -145,7 +142,6 @@ public List getArrayEnum() { public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumClassDto.java index 26d5218529c0..5c6ed67eb74a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumClassDto.java @@ -17,7 +17,6 @@ /** * Gets or Sets EnumClass */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public enum EnumClassDto { @@ -53,4 +52,3 @@ public static EnumClassDto fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java index d8aeb47ac050..5787bf19f095 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java @@ -18,7 +18,6 @@ /** * EnumTestDto */ - @JsonTypeName("Enum_Test") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class EnumTestDto { @@ -59,7 +58,6 @@ public static EnumStringEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumStringEnum enumString; /** @@ -98,7 +96,6 @@ public static EnumStringRequiredEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumStringRequiredEnum enumStringRequired; /** @@ -135,7 +132,6 @@ public static EnumIntegerEnum fromValue(Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumIntegerEnum enumInteger; /** @@ -172,7 +168,6 @@ public static EnumNumberEnum fromValue(Double value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private EnumNumberEnum enumNumber; private OuterEnumDto outerEnum; @@ -275,7 +270,6 @@ public OuterEnumDto getOuterEnum() { public void setOuterEnum(OuterEnumDto outerEnum) { this.outerEnum = outerEnum; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java index 12ce616453b2..5a98b5a94959 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileDto.java @@ -16,7 +16,6 @@ /** * Must be named `File` for test. */ - @JsonTypeName("File") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FileDto { @@ -41,7 +40,6 @@ public String getSourceURI() { public void setSourceURI(String sourceURI) { this.sourceURI = sourceURI; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java index 3c2236bc5ec6..819d2689bcef 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FileSchemaTestClassDto.java @@ -20,7 +20,6 @@ /** * FileSchemaTestClassDto */ - @JsonTypeName("FileSchemaTestClass") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FileSchemaTestClassDto { @@ -75,7 +74,6 @@ public List getFiles() { public void setFiles(List files) { this.files = files; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java index 4ab0407111f4..ea504f406ea5 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/FormatTestDto.java @@ -22,7 +22,6 @@ /** * FormatTestDto */ - @JsonTypeName("format_test") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class FormatTestDto { @@ -336,7 +335,6 @@ public BigDecimal getBigDecimal() { public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java index 30f7074c085d..9d60b8b1aac1 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/HasOnlyReadOnlyDto.java @@ -16,7 +16,6 @@ /** * HasOnlyReadOnlyDto */ - @JsonTypeName("hasOnlyReadOnly") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class HasOnlyReadOnlyDto { @@ -62,7 +61,6 @@ public String getFoo() { public void setFoo(String foo) { this.foo = foo; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java index 46509c23354f..fe6d523f0c39 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ListDto.java @@ -16,7 +16,6 @@ /** * ListDto */ - @JsonTypeName("List") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ListDto { @@ -41,7 +40,6 @@ public String get123list() { public void set123list(String _123list) { this._123list = _123list; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MapTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MapTestDto.java index 7e0fcac66ba4..08e8e60833e6 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MapTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MapTestDto.java @@ -19,7 +19,6 @@ /** * MapTestDto */ - @JsonTypeName("MapTest") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MapTestDto { @@ -61,7 +60,6 @@ public static InnerEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private Map mapOfEnumString = new HashMap<>(); @@ -178,7 +176,6 @@ public Map getIndirectMap() { public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java index d62491e3c859..6164117c143a 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java @@ -22,7 +22,6 @@ /** * MixedPropertiesAndAdditionalPropertiesClassDto */ - @JsonTypeName("MixedPropertiesAndAdditionalPropertiesClass") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class MixedPropertiesAndAdditionalPropertiesClassDto { @@ -99,7 +98,6 @@ public Map getMap() { public void setMap(Map map) { this.map = map; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java index d5725150caf4..e029f361055c 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/Model200ResponseDto.java @@ -16,7 +16,6 @@ /** * Model for testing model name starting with number */ - @JsonTypeName("200_response") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class Model200ResponseDto { @@ -62,7 +61,6 @@ public String getPropertyClass() { public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java index 62a4b8308c25..ad827ba5d8d2 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NameDto.java @@ -16,7 +16,6 @@ /** * Model for testing model name same as property name */ - @JsonTypeName("Name") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NameDto { @@ -108,7 +107,6 @@ public Integer get123number() { public void set123number(Integer _123number) { this._123number = _123number; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NullableMapPropertyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NullableMapPropertyDto.java index 636fcac316db..1485191864fe 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NullableMapPropertyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NullableMapPropertyDto.java @@ -21,7 +21,6 @@ /** * NullableMapPropertyDto */ - @JsonTypeName("NullableMapProperty") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NullableMapPropertyDto { @@ -55,7 +54,6 @@ public JsonNullable> getLanguageValues() { public void setLanguageValues(JsonNullable> languageValues) { this.languageValues = languageValues; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java index 60ffd8eefb32..f877f927ca35 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/NumberOnlyDto.java @@ -17,7 +17,6 @@ /** * NumberOnlyDto */ - @JsonTypeName("NumberOnly") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class NumberOnlyDto { @@ -42,7 +41,6 @@ public BigDecimal getJustNumber() { public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java index 41e8944a0370..0df2c911509f 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OrderDto.java @@ -19,7 +19,6 @@ /** * OrderDto */ - @JsonTypeName("Order") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class OrderDto { @@ -69,7 +68,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private StatusEnum status; private Boolean complete = false; @@ -187,7 +185,6 @@ public Boolean getComplete() { public void setComplete(Boolean complete) { this.complete = complete; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java index 8c191ab0ad8f..30067218a53b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterCompositeDto.java @@ -17,7 +17,6 @@ /** * OuterCompositeDto */ - @JsonTypeName("OuterComposite") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class OuterCompositeDto { @@ -84,7 +83,6 @@ public Boolean getMyBoolean() { public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterEnumDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterEnumDto.java index 0064e0013206..3dead0596f82 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterEnumDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/OuterEnumDto.java @@ -17,7 +17,6 @@ /** * Gets or Sets OuterEnum */ - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public enum OuterEnumDto { @@ -53,4 +52,3 @@ public static OuterEnumDto fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java index 4eda01f387a8..fea061703d79 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ParentWithNullableDto.java @@ -23,7 +23,6 @@ /** * ParentWithNullableDto */ - @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -32,7 +31,6 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = ChildWithNullableDto.class, name = "ChildWithNullable") }) - @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ParentWithNullableDto { @@ -68,7 +66,6 @@ public static TypeEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - private TypeEnum type; private JsonNullable nullableProperty = JsonNullable.undefined(); @@ -110,7 +107,6 @@ public JsonNullable getNullableProperty() { public void setNullableProperty(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java index 063c258f70e2..1519a1e26c43 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/PetDto.java @@ -25,7 +25,6 @@ /** * PetDto */ - @JsonTypeName("Pet") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class PetDto { @@ -78,7 +77,6 @@ public static StatusEnum fromValue(String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - @Deprecated private StatusEnum status; @@ -222,7 +220,6 @@ public StatusEnum getStatus() { public void setStatus(StatusEnum status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java index 7edabf2176b3..bbb325e69de6 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReadOnlyFirstDto.java @@ -16,7 +16,6 @@ /** * ReadOnlyFirstDto */ - @JsonTypeName("ReadOnlyFirst") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ReadOnlyFirstDto { @@ -62,7 +61,6 @@ public String getBaz() { public void setBaz(String baz) { this.baz = baz; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java index 496e790e8060..83de80c3b44f 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java @@ -16,7 +16,6 @@ /** * ResponseObjectWithDifferentFieldNamesDto */ - @JsonTypeName("ResponseObjectWithDifferentFieldNames") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ResponseObjectWithDifferentFieldNamesDto { @@ -104,7 +103,6 @@ public String getPropertyNameWithSpaces() { public void setPropertyNameWithSpaces(String propertyNameWithSpaces) { this.propertyNameWithSpaces = propertyNameWithSpaces; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java index 1a684fcad25d..e78ab137bfb9 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ReturnDto.java @@ -16,7 +16,6 @@ /** * Model for testing reserved words */ - @JsonTypeName("Return") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class ReturnDto { @@ -41,7 +40,6 @@ public Integer getReturn() { public void setReturn(Integer _return) { this._return = _return; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java index 6bcdc25f5e21..8f7df28c87de 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/SpecialModelNameDto.java @@ -16,7 +16,6 @@ /** * SpecialModelNameDto */ - @JsonTypeName("_special_model.name_") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class SpecialModelNameDto { @@ -41,7 +40,6 @@ public class SpecialModelNameDto { public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java index 9b13b37f2bd7..48086aef46ac 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TagDto.java @@ -16,7 +16,6 @@ /** * TagDto */ - @JsonTypeName("Tag") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TagDto { @@ -62,7 +61,6 @@ public String getName() { public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java index 1bbea0b65c3a..35c3ef38b395 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java @@ -20,7 +20,6 @@ /** * TypeHolderDefaultDto */ - @JsonTypeName("TypeHolderDefault") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TypeHolderDefaultDto { @@ -142,7 +141,6 @@ public List getArrayItem() { public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderExampleDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderExampleDto.java index 74631a3fd3e8..d04d2684f901 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderExampleDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderExampleDto.java @@ -20,7 +20,6 @@ /** * TypeHolderExampleDto */ - @JsonTypeName("TypeHolderExample") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class TypeHolderExampleDto { @@ -163,7 +162,6 @@ public List getArrayItem() { public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java index 74471fd80fcc..58fd0af5c708 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/UserDto.java @@ -16,7 +16,6 @@ /** * UserDto */ - @JsonTypeName("User") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class UserDto { @@ -188,7 +187,6 @@ public Integer getUserStatus() { public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java index edd3001a00f5..d9405336e196 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/XmlItemDto.java @@ -20,7 +20,6 @@ /** * XmlItemDto */ - @JsonTypeName("XmlItem") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.10.0-SNAPSHOT") public class XmlItemDto { @@ -714,7 +713,6 @@ public List getPrefixNsWrappedArray() { public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/APIs/PetAPI.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/APIs/PetAPI.swift index 94a82a25ec63..81ba2a30e936 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/APIs/PetAPI.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/APIs/PetAPI.swift @@ -477,7 +477,6 @@ open class PetAPI { multipartData.append(additionalMetadata.data(using: .utf8) ?? Data()) multipartData.append("\r\n".data(using: .utf8) ?? Data()) } - if let file = file { let fileHeader = "--\(multipartBoundary)\r\n" .appending("Content-Disposition:form-data; name=\"file\"; filename=\"file\"\r\n") @@ -485,7 +484,6 @@ open class PetAPI { multipartData.append(fileHeader.data(using: .utf8) ?? Data()) multipartData.append(file) } - multipartData.append("\r\n--\(multipartBoundary)--\r\n".data(using: .utf8) ?? Data()) request.httpBody = multipartData request.setValue("\(multipartData.count)", forHTTPHeaderField: "Content-Length") diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/ApiResponse.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/ApiResponse.swift index 6aca7a2cca29..68cf2a5422ba 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/ApiResponse.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/ApiResponse.swift @@ -18,4 +18,4 @@ public struct ApiResponse: Codable { self.type = type self.message = message } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Category.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Category.swift index 23177663e242..8656621dbe5f 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Category.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Category.swift @@ -16,4 +16,4 @@ public struct Category: Codable { self.id = id self.name = name } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Order.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Order.swift index 5bdf9cc1212b..5ce2e94842bd 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Order.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable { case placed = "placed" case approved = "approved" case shipped = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? @@ -30,4 +29,4 @@ public struct Order: Codable { self.status = status self.complete = complete } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Pet.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Pet.swift index 3a3833c751e6..1e2acc727251 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Pet.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] @@ -30,4 +29,4 @@ public struct Pet: Codable { self.tags = tags self.status = status } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Tag.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Tag.swift index e3e878a4f703..d7af30fe0397 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Tag.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/Tag.swift @@ -16,4 +16,4 @@ public struct Tag: Codable { self.id = id self.name = name } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/User.swift b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/User.swift index 679ca0d472b2..bab063c9099b 100644 --- a/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/User.swift +++ b/samples/client/petstore/swift-combine/client/PetstoreOpenAPI/Sources/Models/User.swift @@ -29,4 +29,4 @@ public struct User: Codable { self.phone = phone self.userStatus = userStatus } -} +} \ No newline at end of file diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf7da6a3f862..694bdaa879dd 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index f93b402b0fd5..06a380cc92cc 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf7da6a3f862..694bdaa879dd 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index f93b402b0fd5..06a380cc92cc 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf7da6a3f862..694bdaa879dd 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index f93b402b0fd5..06a380cc92cc 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift index 6a01769ede3a..dea0fae0319a 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/BigCat.swift @@ -17,8 +17,7 @@ public struct BigCat: Codable, JSONEncodable, Hashable { case tigers = "tigers" case leopards = "leopards" case jaguars = "jaguars" - } - public var kind: Kind? + } public var kind: Kind? public init(kind: Kind? = nil) { self.kind = kind diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 818233c5fcee..206616becfcb 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case shipped = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 394619c072c6..c9dc201dcfde 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) + } static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) public var id: Int64? public var category: Category? public var name: String diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index 743ec00c8b75..642846c37c12 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ import AnyCodable public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index f6c43aeb5a8d..45f814525075 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ import AnyCodable case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 3539ece4a59c..3ba90c26de75 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ import AnyCodable public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 509572ecc4ee..370a4fee81fb 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ import AnyCodable case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var _id: Int64? + } public var _id: Int64? public var _idNum: NSNumber? { get { return _id as NSNumber? diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index d1f400f2cb3c..d1c2d6fe55c5 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ import AnyCodable case available = "available" case pending = "pending" case sold = "sold" - } - public var _id: Int64? + } public var _id: Int64? public var _idNum: NSNumber? { get { return _id as NSNumber? diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf7da6a3f862..694bdaa879dd 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index f93b402b0fd5..06a380cc92cc 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index 6773182d75dd..bbaf59860d71 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -16,13 +16,11 @@ internal struct EnumArrays: Codable, JSONEncodable { case greaterThanOrEqualTo = ">=" case dollar = "$" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum ArrayEnum: String, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum ArrayEnum: String, Codable, CaseIterable, CaseIterableDefaultsLast { case fish = "fish" case crab = "crab" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var justSymbol: JustSymbol? + } internal private(set) var justSymbol: JustSymbol? internal private(set) var arrayEnum: [ArrayEnum]? internal init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index f3415b314e14..726830f94194 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -17,24 +17,20 @@ internal struct EnumTest: Codable, JSONEncodable { case lower = "lower" case empty = "" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum EnumStringRequired: String, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumStringRequired: String, Codable, CaseIterable, CaseIterableDefaultsLast { case upper = "UPPER" case lower = "lower" case empty = "" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum EnumInteger: Int, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumInteger: Int, Codable, CaseIterable, CaseIterableDefaultsLast { case _1 = 1 case number1 = -1 case unknownDefaultOpenApi = 11184809 - } - internal enum EnumNumber: Double, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumNumber: Double, Codable, CaseIterable, CaseIterableDefaultsLast { case _11 = 1.1 case number12 = -1.2 case unknownDefaultOpenApi = 11184809 - } - internal private(set) var enumString: EnumString? + } internal private(set) var enumString: EnumString? internal private(set) var enumStringRequired: EnumStringRequired internal private(set) var enumInteger: EnumInteger? internal private(set) var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 08a3bbb46c7f..9e336c08ae35 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -16,8 +16,7 @@ internal struct MapTest: Codable, JSONEncodable { case upper = "UPPER" case lower = "lower" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var mapMapOfString: [String: [String: String]]? + } internal private(set) var mapMapOfString: [String: [String: String]]? internal private(set) var mapOfEnumString: [String: String]? internal private(set) var directMap: [String: Bool]? internal private(set) var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 78eb1c3d8ce0..4811e3d5fd68 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -17,8 +17,7 @@ internal struct Order: Codable, JSONEncodable { case approved = "approved" case delivered = "delivered" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var id: Int64? + } internal private(set) var id: Int64? internal private(set) var petId: Int64? internal private(set) var quantity: Int? internal private(set) var shipDate: Date? diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index 26cc4e5eee24..5ad7bd31839e 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -17,8 +17,7 @@ internal struct Pet: Codable, JSONEncodable, Hashable { case pending = "pending" case sold = "sold" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var id: Int64? + } internal private(set) var id: Int64? internal private(set) var category: Category? internal private(set) var name: String internal private(set) var photoUrls: [String] diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index e06009060c54..687027eace40 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -15,12 +15,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 3a9edb08ea78..b47d4d0d04ea 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -16,21 +16,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index c4792800425f..3203f0b04d6f 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -15,8 +15,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index bf7da6a3f862..694bdaa879dd 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -16,8 +16,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index f93b402b0fd5..06a380cc92cc 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -16,8 +16,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index c9c9ab8756cf..d6809f963f43 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -20,12 +20,10 @@ public final class EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift index b0a4756d3e8b..bacc821f1ed6 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -21,21 +21,17 @@ public final class EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift index 90feda030db8..f797319215fc 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -20,8 +20,7 @@ public final class MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift index 6a9c4ec8937d..1e317f1a06de 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift @@ -21,8 +21,7 @@ public final class Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift index ee791a3947a4..ba37f3511118 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -21,8 +21,7 @@ public final class Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift index f68dcec1d655..99eb379901b5 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift @@ -18,8 +18,7 @@ public final class BigCat: Content, Hashable { case tigers = "tigers" case leopards = "leopards" case jaguars = "jaguars" - } - public var kind: Kind? + } public var kind: Kind? public init(kind: Kind? = nil) { self.kind = kind diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index 0b2b8c32844a..6aad4d5060f2 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -16,12 +16,10 @@ public final class EnumArrays: Content, Hashable { public enum JustSymbol: String, Content, Hashable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Content, Hashable, CaseIterable { + } public enum ArrayEnum: String, Content, Hashable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift index 044d121b9f3f..982a597493c6 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -17,21 +17,17 @@ public final class EnumTest: Content, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Content, Hashable, CaseIterable { + } public enum EnumStringRequired: String, Content, Hashable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Content, Hashable, CaseIterable { + } public enum EnumInteger: Int, Content, Hashable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Content, Hashable, CaseIterable { + } public enum EnumNumber: Double, Content, Hashable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift index 2726af8cb65d..741af587b05f 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -16,8 +16,7 @@ public final class MapTest: Content, Hashable { public enum MapOfEnumString: String, Content, Hashable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift index 7a7b357cd46e..d10d24d78c1c 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Order.swift @@ -17,8 +17,7 @@ public final class Order: Content, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift index 73c5b9d0b652..d4222baef849 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -17,8 +17,7 @@ public final class Pet: Content, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) + } static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) public var id: Int64? public var category: Category? public var name: String diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/MapTest.swift index a3b8aa8c4cb4..f544a03fc26b 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: [String: Bool]? diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumArrays.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumTest.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/MapTest.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/MapTest.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/BigCat.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/BigCat.swift index 761d956f7c70..2096cfd72a33 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/BigCat.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/BigCat.swift @@ -14,8 +14,7 @@ public struct BigCat: Codable, JSONEncodable, Hashable { case tigers = "tigers" case leopards = "leopards" case jaguars = "jaguars" - } - public var kind: Kind? + } public var kind: Kind? public init(kind: Kind? = nil) { self.kind = kind diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift index 76d28449c056..5f7ceda85032 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case shipped = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift index c6c1749be33e..041feb421837 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) + } static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) public var id: Int64? public var category: Category? public var name: String diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumArrays.swift index bcd4fee40346..9986d571b5d5 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumArrays.swift @@ -12,12 +12,10 @@ import Foundation public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumTest.swift index 60815e083f05..09b2c1c62631 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/EnumTest.swift @@ -13,21 +13,17 @@ import Foundation case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/MapTest.swift index 9fd814c87839..c02be0d380b8 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/MapTest.swift @@ -12,8 +12,7 @@ import Foundation public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Order.swift index 9e573c1ad060..35ec16cbb12a 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Order.swift @@ -13,8 +13,7 @@ import Foundation case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var _id: Int64? + } public var _id: Int64? public var _idNum: NSNumber? { get { return _id as NSNumber? diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Pet.swift index 8b147562e2fc..e795747ef352 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Models/Pet.swift @@ -13,8 +13,7 @@ import Foundation case available = "available" case pending = "pending" case sold = "sold" - } - public var _id: Int64? + } public var _id: Int64? public var _idNum: NSNumber? { get { return _id as NSNumber? diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index aeda06ffb725..5f8c17be68c1 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -13,13 +13,11 @@ internal struct EnumArrays: Codable, JSONEncodable { case greaterThanOrEqualTo = ">=" case dollar = "$" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum ArrayEnum: String, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum ArrayEnum: String, Codable, CaseIterable, CaseIterableDefaultsLast { case fish = "fish" case crab = "crab" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var justSymbol: JustSymbol? + } internal private(set) var justSymbol: JustSymbol? internal private(set) var arrayEnum: [ArrayEnum]? internal init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index ed923bfb5306..062f2418e488 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -14,24 +14,20 @@ internal struct EnumTest: Codable, JSONEncodable { case lower = "lower" case empty = "" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum EnumStringRequired: String, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumStringRequired: String, Codable, CaseIterable, CaseIterableDefaultsLast { case upper = "UPPER" case lower = "lower" case empty = "" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal enum EnumInteger: Int, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumInteger: Int, Codable, CaseIterable, CaseIterableDefaultsLast { case _1 = 1 case number1 = -1 case unknownDefaultOpenApi = 11184809 - } - internal enum EnumNumber: Double, Codable, CaseIterable, CaseIterableDefaultsLast { + } internal enum EnumNumber: Double, Codable, CaseIterable, CaseIterableDefaultsLast { case _11 = 1.1 case number12 = -1.2 case unknownDefaultOpenApi = 11184809 - } - internal private(set) var enumString: EnumString? + } internal private(set) var enumString: EnumString? internal private(set) var enumStringRequired: EnumStringRequired internal private(set) var enumInteger: EnumInteger? internal private(set) var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 07b65b6910e5..038da3962d55 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -13,8 +13,7 @@ internal struct MapTest: Codable, JSONEncodable { case upper = "UPPER" case lower = "lower" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var mapMapOfString: [String: [String: String]]? + } internal private(set) var mapMapOfString: [String: [String: String]]? internal private(set) var mapOfEnumString: [String: String]? internal private(set) var directMap: [String: Bool]? internal private(set) var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 8116e8d86f30..1d291546584e 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -14,8 +14,7 @@ internal struct Order: Codable, JSONEncodable { case approved = "approved" case delivered = "delivered" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var id: Int64? + } internal private(set) var id: Int64? internal private(set) var petId: Int64? internal private(set) var quantity: Int? internal private(set) var shipDate: Date? diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index daded4aa92f7..a971bae6af6f 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -14,8 +14,7 @@ internal struct Pet: Codable, JSONEncodable, Hashable { case pending = "pending" case sold = "sold" case unknownDefaultOpenApi = "unknown_default_open_api" - } - internal private(set) var id: Int64? + } internal private(set) var id: Int64? internal private(set) var category: Category? internal private(set) var name: String internal private(set) var photoUrls: [String] diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift index b0cb7c1f1a29..cd49e7927f70 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumArrays.swift @@ -12,12 +12,10 @@ public struct EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift index 9fd69055c22d..582c21e00359 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/EnumTest.swift @@ -13,21 +13,17 @@ public struct EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift index 8a4a31082a37..aa400ca04383 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/MapTest.swift @@ -12,8 +12,7 @@ public struct MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift index 1afea12cb34e..756a4cd091df 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Order.swift @@ -13,8 +13,7 @@ public struct Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift index cef13c2556b0..acf414f56f1b 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Models/Pet.swift @@ -13,8 +13,7 @@ public struct Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index b6e4b39b44b6..ad2601fafafd 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -17,12 +17,10 @@ public final class EnumArrays: Codable, JSONEncodable, Hashable { public enum JustSymbol: String, Codable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Codable, CaseIterable { + } public enum ArrayEnum: String, Codable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift index 31595242ff51..f3a88e07fbe0 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -18,21 +18,17 @@ public final class EnumTest: Codable, JSONEncodable, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Codable, CaseIterable { + } public enum EnumStringRequired: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Codable, CaseIterable { + } public enum EnumInteger: Int, Codable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Codable, CaseIterable { + } public enum EnumNumber: Double, Codable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift index dabf90aabb19..8610ba7b0423 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -17,8 +17,7 @@ public final class MapTest: Codable, JSONEncodable, Hashable { public enum MapOfEnumString: String, Codable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift index 9d2702202015..e4d852ce5d54 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Order.swift @@ -18,8 +18,7 @@ public final class Order: Codable, JSONEncodable, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift index 53196d1ef64c..8815db1d3350 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -18,8 +18,7 @@ public final class Pet: Codable, JSONEncodable, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - public var id: Int64? + } public var id: Int64? public var category: Category? public var name: String public var photoUrls: [String] diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift index 4470586eff32..31d7ab543c10 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/BigCat.swift @@ -15,8 +15,7 @@ public final class BigCat: Content, Hashable { case tigers = "tigers" case leopards = "leopards" case jaguars = "jaguars" - } - public var kind: Kind? + } public var kind: Kind? public init(kind: Kind? = nil) { self.kind = kind diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift index f4ac110f88bd..8fd7099541c5 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumArrays.swift @@ -13,12 +13,10 @@ public final class EnumArrays: Content, Hashable { public enum JustSymbol: String, Content, Hashable, CaseIterable { case greaterThanOrEqualTo = ">=" case dollar = "$" - } - public enum ArrayEnum: String, Content, Hashable, CaseIterable { + } public enum ArrayEnum: String, Content, Hashable, CaseIterable { case fish = "fish" case crab = "crab" - } - public var justSymbol: JustSymbol? + } public var justSymbol: JustSymbol? public var arrayEnum: [ArrayEnum]? public init(justSymbol: JustSymbol? = nil, arrayEnum: [ArrayEnum]? = nil) { diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift index 66a3d9679373..b75c12bd4892 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/EnumTest.swift @@ -14,21 +14,17 @@ public final class EnumTest: Content, Hashable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumStringRequired: String, Content, Hashable, CaseIterable { + } public enum EnumStringRequired: String, Content, Hashable, CaseIterable { case upper = "UPPER" case lower = "lower" case empty = "" - } - public enum EnumInteger: Int, Content, Hashable, CaseIterable { + } public enum EnumInteger: Int, Content, Hashable, CaseIterable { case _1 = 1 case number1 = -1 - } - public enum EnumNumber: Double, Content, Hashable, CaseIterable { + } public enum EnumNumber: Double, Content, Hashable, CaseIterable { case _11 = 1.1 case number12 = -1.2 - } - public var enumString: EnumString? + } public var enumString: EnumString? public var enumStringRequired: EnumStringRequired public var enumInteger: EnumInteger? public var enumNumber: EnumNumber? diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift index f89a13e6a96c..fba4a0ab9e68 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/MapTest.swift @@ -13,8 +13,7 @@ public final class MapTest: Content, Hashable { public enum MapOfEnumString: String, Content, Hashable, CaseIterable { case upper = "UPPER" case lower = "lower" - } - public var mapMapOfString: [String: [String: String]]? + } public var mapMapOfString: [String: [String: String]]? public var mapOfEnumString: [String: String]? public var directMap: [String: Bool]? public var indirectMap: StringBooleanMap? diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift index e62357d2e313..2e0d5d603008 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Order.swift @@ -14,8 +14,7 @@ public final class Order: Content, Hashable { case placed = "placed" case approved = "approved" case delivered = "delivered" - } - public var id: Int64? + } public var id: Int64? public var petId: Int64? public var quantity: Int? public var shipDate: Date? diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift index ded293e74286..8756ce0674e3 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Models/Pet.swift @@ -14,8 +14,7 @@ public final class Pet: Content, Hashable { case available = "available" case pending = "pending" case sold = "sold" - } - static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) + } static let photoUrlsRule = ArrayRule(minItems: nil, maxItems: nil, uniqueItems: true) public var id: Int64? public var category: Category? public var name: String diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts index 1941b1646e7c..5fa6f385727d 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -409,4 +408,3 @@ export class DefaultApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts index e215695bd26e..e50c01c10f33 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts index d629dec4427f..2e9b7062cc2e 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts index 46522502419f..30ed8f66715d 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/index.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/index.ts index a94bbea12432..db11deb73bbd 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/index.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/default/api.ts b/samples/client/petstore/typescript-axios/builds/default/api.ts index df0c45abc78d..375cb9ad05ae 100644 --- a/samples/client/petstore/typescript-axios/builds/default/api.ts +++ b/samples/client/petstore/typescript-axios/builds/default/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -938,7 +937,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1251,7 +1249,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1863,4 +1860,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/default/base.ts b/samples/client/petstore/typescript-axios/builds/default/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/default/base.ts +++ b/samples/client/petstore/typescript-axios/builds/default/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/default/common.ts b/samples/client/petstore/typescript-axios/builds/default/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/default/common.ts +++ b/samples/client/petstore/typescript-axios/builds/default/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/default/configuration.ts b/samples/client/petstore/typescript-axios/builds/default/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/default/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/default/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/default/index.ts b/samples/client/petstore/typescript-axios/builds/default/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/default/index.ts +++ b/samples/client/petstore/typescript-axios/builds/default/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts index df0c45abc78d..375cb9ad05ae 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -938,7 +937,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1251,7 +1249,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1863,4 +1860,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/base.ts b/samples/client/petstore/typescript-axios/builds/es6-target/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/base.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/common.ts b/samples/client/petstore/typescript-axios/builds/es6-target/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/common.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/index.ts b/samples/client/petstore/typescript-axios/builds/es6-target/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/index.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts index 8849fa8f81d4..03283110e8e4 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -521,7 +520,6 @@ export const EnumClass = { export type EnumClass = typeof EnumClass[keyof typeof EnumClass]; - /** * * @export @@ -1303,7 +1301,6 @@ export const OuterEnum = { export type OuterEnum = typeof OuterEnum[keyof typeof OuterEnum]; - /** * * @export @@ -1318,7 +1315,6 @@ export const OuterEnumDefaultValue = { export type OuterEnumDefaultValue = typeof OuterEnumDefaultValue[keyof typeof OuterEnumDefaultValue]; - /** * * @export @@ -1333,7 +1329,6 @@ export const OuterEnumInteger = { export type OuterEnumInteger = typeof OuterEnumInteger[keyof typeof OuterEnumInteger]; - /** * * @export @@ -1348,7 +1343,6 @@ export const OuterEnumIntegerDefaultValue = { export type OuterEnumIntegerDefaultValue = typeof OuterEnumIntegerDefaultValue[keyof typeof OuterEnumIntegerDefaultValue]; - /** * * @export @@ -1845,7 +1839,6 @@ export class AnotherFakeApi extends BaseAPI { } - /** * DefaultApi - axios parameter creator * @export @@ -1942,7 +1935,6 @@ export class DefaultApi extends BaseAPI { } - /** * FakeApi - axios parameter creator * @export @@ -3639,7 +3631,6 @@ export const TestEnumParametersEnumFormStringEnum = { } as const; export type TestEnumParametersEnumFormStringEnum = typeof TestEnumParametersEnumFormStringEnum[keyof typeof TestEnumParametersEnumFormStringEnum]; - /** * FakeClassnameTags123Api - axios parameter creator * @export @@ -3752,7 +3743,6 @@ export class FakeClassnameTags123Api extends BaseAPI { } - /** * PetApi - axios parameter creator * @export @@ -4548,7 +4538,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -4861,7 +4850,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -5473,4 +5461,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/base.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/base.ts index ba1854123f7c..23d2f9d005c1 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/base.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts index c0f62a7b6df1..f9cfce9fe326 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts index c8051a678dcf..330134a2cb85 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/index.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/index.ts index 7ffd3df32803..6e43e2ad3d73 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/index.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts index a373dc21fe56..be4e8fe18365 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -80,7 +79,6 @@ export const MediaType = { export type MediaType = typeof MediaType[keyof typeof MediaType]; - /** * An order for a pets from the pet store * @export @@ -981,7 +979,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1294,7 +1291,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1906,4 +1902,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/base.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/index.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index 23003c216833..a3669d93c4dd 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -364,7 +363,6 @@ export const EnumClass = { export type EnumClass = typeof EnumClass[keyof typeof EnumClass]; - /** * * @export @@ -990,7 +988,6 @@ export const OuterEnum = { export type OuterEnum = typeof OuterEnum[keyof typeof OuterEnum]; - /** * * @export @@ -1005,7 +1002,6 @@ export const OuterEnumDefaultValue = { export type OuterEnumDefaultValue = typeof OuterEnumDefaultValue[keyof typeof OuterEnumDefaultValue]; - /** * * @export @@ -1020,7 +1016,6 @@ export const OuterEnumInteger = { export type OuterEnumInteger = typeof OuterEnumInteger[keyof typeof OuterEnumInteger]; - /** * * @export @@ -1035,7 +1030,6 @@ export const OuterEnumIntegerDefaultValue = { export type OuterEnumIntegerDefaultValue = typeof OuterEnumIntegerDefaultValue[keyof typeof OuterEnumIntegerDefaultValue]; - /** * * @export @@ -1459,7 +1453,6 @@ export class AnotherFakeApi extends BaseAPI { } - /** * DefaultApi - axios parameter creator * @export @@ -1556,7 +1549,6 @@ export class DefaultApi extends BaseAPI { } - /** * FakeApi - axios parameter creator * @export @@ -3201,7 +3193,6 @@ export const TestEnumParametersEnumFormStringEnum = { } as const; export type TestEnumParametersEnumFormStringEnum = typeof TestEnumParametersEnumFormStringEnum[keyof typeof TestEnumParametersEnumFormStringEnum]; - /** * FakeClassnameTags123Api - axios parameter creator * @export @@ -3314,7 +3305,6 @@ export class FakeClassnameTags123Api extends BaseAPI { } - /** * PetApi - axios parameter creator * @export @@ -4110,7 +4100,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -4423,7 +4412,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -5035,4 +5023,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/base.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/base.ts index ba1854123f7c..23d2f9d005c1 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts index c0f62a7b6df1..f9cfce9fe326 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts index c8051a678dcf..330134a2cb85 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/index.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/index.ts index 7ffd3df32803..6e43e2ad3d73 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts index d471c3665d84..bba7e3ebd993 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -1164,7 +1163,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1566,7 +1564,6 @@ export class StoreApi extends BaseAPI implements StoreApiInterface { } - /** * UserApi - axios parameter creator * @export @@ -2373,4 +2370,3 @@ export class UserApi extends BaseAPI implements UserApiInterface { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/base.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/index.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts index e3035a1de518..86de50461df5 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -1032,7 +1031,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1392,7 +1390,6 @@ export class StoreApi extends BaseAPI implements StoreApiInterface { } - /** * UserApi - axios parameter creator * @export @@ -2093,4 +2090,3 @@ export class UserApi extends BaseAPI implements UserApiInterface { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/base.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/index.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts index 8f972c32b2e4..6db355037d72 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -942,7 +941,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1253,7 +1251,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1865,4 +1862,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/base.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts index a88b97565783..13d60e6782a3 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/index.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api.ts index a93cf65f62d6..37c64b1c3c2f 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api.ts @@ -13,7 +13,6 @@ */ - export * from './api/another/level/pet-api'; export * from './api/another/level/store-api'; export * from './api/another/level/user-api'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts index 4814af94ce40..5ad802067d57 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/pet-api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from '../../../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts index 0fcfd906cc8c..8b1f7af71653 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/store-api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from '../../../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts index 7d6d6aeb2b66..9ea434da821c 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/api/another/level/user-api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from '../../../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/base.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/index.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/index.ts index f0e6924d5d98..4ca8b16d09ab 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; export * from "./model/some/levels/deep"; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts index 6b04a026e17f..1100f84821f4 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts @@ -13,7 +13,6 @@ */ - /** * Describes the result of uploading an image resource * @export diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts index 9e615116bb3e..a0b2a8ca112b 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts @@ -13,7 +13,6 @@ */ - /** * A category for a pet * @export diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts index 1ed788e1ec8f..69e12049f571 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts @@ -13,7 +13,6 @@ */ - /** * An order for a pets from the pet store * @export diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts index e0378b94c286..66455ed2c623 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - // May contain unused imports in some cases // @ts-ignore import type { Category } from './category'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts index 3529b9273085..fb47d294f2a8 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts @@ -13,7 +13,6 @@ */ - /** * A tag for a pet * @export diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts index a33949559e3d..ce0de6d54f18 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts @@ -13,7 +13,6 @@ */ - /** * A User who is purchasing from the pet store * @export diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts index df0c45abc78d..375cb9ad05ae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -938,7 +937,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1251,7 +1249,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1863,4 +1860,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/base.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/index.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts index 8b6af8686545..8074800b3caa 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -1075,7 +1074,6 @@ export const FindPetsByStatusStatusEnum = { } as const; export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum]; - /** * StoreApi - axios parameter creator * @export @@ -1428,7 +1426,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -2148,4 +2145,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/base.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/index.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts index b9f8757a661c..b6b18bc35f1e 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; @@ -942,7 +941,6 @@ export enum FindPetsByStatusStatusEnum { Sold = 'sold' } - /** * StoreApi - axios parameter creator * @export @@ -1255,7 +1253,6 @@ export class StoreApi extends BaseAPI { } - /** * UserApi - axios parameter creator * @export @@ -1867,4 +1864,3 @@ export class UserApi extends BaseAPI { } - diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/base.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/base.ts index b92a383a84c7..e76bfed5c869 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/base.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/base.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts index d5b9e4718aea..b62a615f6464 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/common.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts index d05f5a0d0835..f31a93320133 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/index.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/index.ts index ed3d348fdfec..4f1f59744c42 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/index.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/index.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export * from "./api"; export * from "./configuration"; diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts index 38da4f052ba3..e10d1e79ce04 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Club, diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts index cce6b72e169a..c0bed00bda7f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Owner } from './Owner'; import { @@ -34,7 +33,6 @@ export interface Club { */ owner?: Owner | null; } - /** * Check if a given object implements the Club interface. */ @@ -70,4 +68,3 @@ export function ClubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Club 'owner': OwnerToJSON(value['owner']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts index 0ed8fde3a930..df6c7c00946a 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Owner { */ name?: string; } - /** * Check if a given object implements the Owner interface. */ @@ -62,4 +60,3 @@ export function OwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Own 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts index 191d8ea48935..2c7df5e62d7f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://api.example.xyz/v1".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts index 38da4f052ba3..e10d1e79ce04 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Club, diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts index b815ab07d2c6..7fa1897d8fcb 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Owner } from './Owner'; import { @@ -34,7 +33,6 @@ export interface Club { */ readonly owner?: Owner; } - /** * Check if a given object implements the Club interface. */ @@ -69,4 +67,3 @@ export function ClubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Club }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts index 0ed8fde3a930..df6c7c00946a 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Owner { */ name?: string; } - /** * Check if a given object implements the Owner interface. */ @@ -62,4 +60,3 @@ export function OwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Own 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts index 191d8ea48935..2c7df5e62d7f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://api.example.xyz/v1".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts index e63d48d42bd6..222bc33c0dd7 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Client, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts index ef9dde7a0809..44a70c83a2b3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { FooGetDefaultResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts index 12df4e513874..ae31e2c54ac5 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ChildWithNullable, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts index e2cf17eb7a26..3cd969011931 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Client, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts index 5b77f2de4486..dd2b05fd7e7b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts index 4a7ee687d8dc..6ea1903fd986 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts index b151cb1eaaca..f47fbb155952 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts index c15b937e8a1c..faa20f87a242 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface AdditionalPropertiesClass { */ mapOfMapProperty?: { [key: string]: { [key: string]: string; }; }; } - /** * Check if a given object implements the AdditionalPropertiesClass interface. */ @@ -70,4 +68,3 @@ export function AdditionalPropertiesClassFromJSONTyped(json: any, ignoreDiscrimi 'map_of_map_property': value['mapOfMapProperty'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts index 826ea603e2db..6ec1d76d70a5 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { SingleRefType } from './SingleRefType'; import { @@ -42,7 +41,6 @@ export interface AllOfWithSingleRef { } - /** * Check if a given object implements the AllOfWithSingleRef interface. */ @@ -80,4 +78,3 @@ export function AllOfWithSingleRefFromJSONTyped(json: any, ignoreDiscriminator: 'SingleRefType': SingleRefTypeToJSON(value['singleRefType']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts index 0f87e6dd367e..4662a62a6d05 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import { Cat, CatFromJSONTyped, CatToJSON, CatToJSONTyped } from './Cat'; import { Dog, DogFromJSONTyped, DogToJSON, DogToJSONTyped } from './Dog'; @@ -34,7 +33,6 @@ export interface Animal { */ color?: string; } - /** * Check if a given object implements the Animal interface. */ @@ -92,4 +90,3 @@ export function AnimalFromJSONTyped(json: any, ignoreDiscriminator: boolean): An 'color': value['color'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts index 18264d15d7cb..02ad42ec8ada 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface ArrayOfArrayOfNumberOnly { */ arrayArrayNumber?: Array>; } - /** * Check if a given object implements the ArrayOfArrayOfNumberOnly interface. */ @@ -62,4 +60,3 @@ export function ArrayOfArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscrimin 'ArrayArrayNumber': value['arrayArrayNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts index fa5c6dc5edd1..24fea8316a9b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface ArrayOfNumberOnly { */ arrayNumber?: Array; } - /** * Check if a given object implements the ArrayOfNumberOnly interface. */ @@ -62,4 +60,3 @@ export function ArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: b 'ArrayNumber': value['arrayNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts index b31c80207b2f..7f3ba2fe5e71 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { ReadOnlyFirst } from './ReadOnlyFirst'; import { @@ -46,7 +45,6 @@ export interface ArrayTest { */ arrayArrayOfModel?: Array>; } - /** * Check if a given object implements the ArrayTest interface. */ @@ -86,4 +84,3 @@ export function ArrayTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'array_array_of_model': value['arrayArrayOfModel'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts index ace2ede88477..5bf704ca908c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -57,7 +56,6 @@ export interface Capitalization { */ aTTNAME?: string; } - /** * Check if a given object implements the Capitalization interface. */ @@ -103,4 +101,3 @@ export function CapitalizationFromJSONTyped(json: any, ignoreDiscriminator: bool 'ATT_NAME': value['aTTNAME'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts index a1b44d02d26d..eeb75c7a1e86 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -34,7 +33,6 @@ export interface Cat extends Animal { */ declawed?: boolean; } - /** * Check if a given object implements the Cat interface. */ @@ -70,4 +68,3 @@ export function CatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cat { 'declawed': value['declawed'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts index 7c8caddd4969..e761b71f8284 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface Category { */ name: string; } - /** * Check if a given object implements the Category interface. */ @@ -71,4 +69,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts index 0a5dd717f208..b0a482858097 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { ParentWithNullable } from './ParentWithNullable'; import { @@ -36,7 +35,6 @@ export interface ChildWithNullable extends ParentWithNullable { } - /** * Check if a given object implements the ChildWithNullable interface. */ @@ -72,4 +70,3 @@ export function ChildWithNullableFromJSONTyped(json: any, ignoreDiscriminator: b 'otherProperty': value['otherProperty'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts index 813177eb3d50..9f3bac53ed97 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model with "_class" property @@ -26,7 +25,6 @@ export interface ClassModel { */ _class?: string; } - /** * Check if a given object implements the ClassModel interface. */ @@ -62,4 +60,3 @@ export function ClassModelFromJSONTyped(json: any, ignoreDiscriminator: boolean) '_class': value['_class'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts index c6aa7163b0b3..8ee18c182a71 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Client { */ client?: string; } - /** * Check if a given object implements the Client interface. */ @@ -62,4 +60,3 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl 'client': value['client'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts index d2acf418fded..3fe0d956671c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface DeprecatedObject { */ name?: string; } - /** * Check if a given object implements the DeprecatedObject interface. */ @@ -62,4 +60,3 @@ export function DeprecatedObjectFromJSONTyped(json: any, ignoreDiscriminator: bo 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts index 1d66d5c04bf8..729910f64588 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -34,7 +33,6 @@ export interface Dog extends Animal { */ breed?: string; } - /** * Check if a given object implements the Dog interface. */ @@ -70,4 +68,3 @@ export function DogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dog { 'breed': value['breed'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts index 27f42e0a652b..1b41f08158cb 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -52,7 +51,6 @@ export const EnumArraysArrayEnumEnum = { } as const; export type EnumArraysArrayEnumEnum = typeof EnumArraysArrayEnumEnum[keyof typeof EnumArraysArrayEnumEnum]; - /** * Check if a given object implements the EnumArrays interface. */ @@ -90,4 +88,3 @@ export function EnumArraysFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'array_enum': value['arrayEnum'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumClass.ts index 6878b8591431..c851bd15cbb4 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumClass.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function EnumClassToJSON(value?: EnumClass | null): any { export function EnumClassToJSONTyped(value: any, ignoreDiscriminator: boolean): EnumClass { return value as EnumClass; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts index de99ab4dc662..8b04745c152e 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { OuterEnum } from './OuterEnum'; import { @@ -137,7 +136,6 @@ export const EnumTestEnumNumberEnum = { } as const; export type EnumTestEnumNumberEnum = typeof EnumTestEnumNumberEnum[keyof typeof EnumTestEnumNumberEnum]; - /** * Check if a given object implements the EnumTest interface. */ @@ -188,4 +186,3 @@ export function EnumTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'outerEnumIntegerDefaultValue': OuterEnumIntegerDefaultValueToJSON(value['outerEnumIntegerDefaultValue']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts index 5c97b9928efa..7723ce1c785e 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface FakeBigDecimalMap200Response { */ someMap?: { [key: string]: number; }; } - /** * Check if a given object implements the FakeBigDecimalMap200Response interface. */ @@ -70,4 +68,3 @@ export function FakeBigDecimalMap200ResponseFromJSONTyped(json: any, ignoreDiscr 'someMap': value['someMap'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts index 557abed7403e..79f98154f9b3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface FileSchemaTestClass { */ files?: Array; } - /** * Check if a given object implements the FileSchemaTestClass interface. */ @@ -70,4 +68,3 @@ export function FileSchemaTestClassFromJSONTyped(json: any, ignoreDiscriminator: 'files': value['files'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts index 118b6190f280..0503279d1f20 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Foo { */ bar?: string; } - /** * Check if a given object implements the Foo interface. */ @@ -62,4 +60,3 @@ export function FooFromJSONTyped(json: any, ignoreDiscriminator: boolean): Foo { 'bar': value['bar'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts index 721b08a2242d..35351d6b67ec 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Foo } from './Foo'; import { @@ -34,7 +33,6 @@ export interface FooGetDefaultResponse { */ string?: Foo; } - /** * Check if a given object implements the FooGetDefaultResponse interface. */ @@ -70,4 +68,3 @@ export function FooGetDefaultResponseFromJSONTyped(json: any, ignoreDiscriminato 'string': FooToJSON(value['string']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts index a47a1b03c571..2a1312266c5a 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Decimal } from './Decimal'; import { @@ -124,7 +123,6 @@ export interface FormatTest { */ patternWithDigitsAndDelimiter?: string; } - /** * Check if a given object implements the FormatTest interface. */ @@ -194,4 +192,3 @@ export function FormatTestFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'pattern_with_digits_and_delimiter': value['patternWithDigitsAndDelimiter'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts index 0eb9accdc1f5..eff6655352bf 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface HasOnlyReadOnly { */ readonly foo?: string; } - /** * Check if a given object implements the HasOnlyReadOnly interface. */ @@ -68,4 +66,3 @@ export function HasOnlyReadOnlyFromJSONTyped(json: any, ignoreDiscriminator: boo }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts index c62de4d9fb83..b9db6bd13e54 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. @@ -26,7 +25,6 @@ export interface HealthCheckResult { */ nullableMessage?: string | null; } - /** * Check if a given object implements the HealthCheckResult interface. */ @@ -62,4 +60,3 @@ export function HealthCheckResultFromJSONTyped(json: any, ignoreDiscriminator: b 'NullableMessage': value['nullableMessage'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts index fb9a30ea0e5b..4bb692e9c702 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface List { */ _123list?: string; } - /** * Check if a given object implements the List interface. */ @@ -62,4 +60,3 @@ export function ListFromJSONTyped(json: any, ignoreDiscriminator: boolean): List '123-list': value['_123list'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts index a88b84fd1027..d46c723ac72b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -55,7 +54,6 @@ export const MapTestMapOfEnumStringEnum = { } as const; export type MapTestMapOfEnumStringEnum = typeof MapTestMapOfEnumStringEnum[keyof typeof MapTestMapOfEnumStringEnum]; - /** * Check if a given object implements the MapTest interface. */ @@ -97,4 +95,3 @@ export function MapTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): M 'indirect_map': value['indirectMap'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts index 1f69153ef85c..8a531f5f237f 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -46,7 +45,6 @@ export interface MixedPropertiesAndAdditionalPropertiesClass { */ map?: { [key: string]: Animal; }; } - /** * Check if a given object implements the MixedPropertiesAndAdditionalPropertiesClass interface. */ @@ -86,4 +84,3 @@ export function MixedPropertiesAndAdditionalPropertiesClassFromJSONTyped(json: a 'map': value['map'] == null ? undefined : (mapValues(value['map'], AnimalToJSON)), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts index af0066b276eb..75b2ff977c51 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model name starting with number @@ -32,7 +31,6 @@ export interface Model200Response { */ _class?: string; } - /** * Check if a given object implements the Model200Response interface. */ @@ -70,4 +68,3 @@ export function Model200ResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'class': value['_class'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts index a505854c2d71..3886031b14c3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts index ef6eee2c53c7..8866671527ef 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Must be named `File` for test. @@ -26,7 +25,6 @@ export interface ModelFile { */ sourceURI?: string; } - /** * Check if a given object implements the ModelFile interface. */ @@ -62,4 +60,3 @@ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'sourceURI': value['sourceURI'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts index 1c957bff4d65..b57550f80e15 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model name same as property name @@ -44,7 +43,6 @@ export interface Name { */ readonly _123number?: number; } - /** * Check if a given object implements the Name interface. */ @@ -85,4 +83,3 @@ export function NameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Name 'property': value['property'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts index 4f32da1c0ced..ca09d8cd40b0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -93,7 +92,6 @@ export interface NullableClass { */ objectItemsNullable?: { [key: string]: object | null; }; } - /** * Check if a given object implements the NullableClass interface. */ @@ -153,4 +151,3 @@ export function NullableClassFromJSONTyped(json: any, ignoreDiscriminator: boole 'object_items_nullable': value['objectItemsNullable'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts index d9e19a6d9d86..bf6b6b4cbec3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface NumberOnly { */ justNumber?: number; } - /** * Check if a given object implements the NumberOnly interface. */ @@ -62,4 +60,3 @@ export function NumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'JustNumber': value['justNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts index 88b028733508..fef27d5e45ab 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { DeprecatedObject } from './DeprecatedObject'; import { @@ -55,7 +54,6 @@ export interface ObjectWithDeprecatedFields { */ bars?: Array; } - /** * Check if a given object implements the ObjectWithDeprecatedFields interface. */ @@ -97,4 +95,3 @@ export function ObjectWithDeprecatedFieldsFromJSONTyped(json: any, ignoreDiscrim 'bars': value['bars'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts index ef82efcce508..7df2fdb6f254 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts index ab4303f03c3a..ff912e49b0d2 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -38,7 +37,6 @@ export interface OuterComposite { */ myBoolean?: boolean; } - /** * Check if a given object implements the OuterComposite interface. */ @@ -78,4 +76,3 @@ export function OuterCompositeFromJSONTyped(json: any, ignoreDiscriminator: bool 'my_boolean': value['myBoolean'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnum.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnum.ts index 4be9edeac589..bfad65965b4a 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnum.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumToJSON(value?: OuterEnum | null): any { export function OuterEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnum { return value as OuterEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumDefaultValue.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumDefaultValue.ts index de44a7878120..a06dea10daa0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumDefaultValue.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumDefaultValue.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumDefaultValueToJSON(value?: OuterEnumDefaultValue | null export function OuterEnumDefaultValueToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumDefaultValue { return value as OuterEnumDefaultValue; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumInteger.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumInteger.ts index b899dc358ea0..28f5fd672058 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumInteger.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumInteger.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumIntegerToJSON(value?: OuterEnumInteger | null): any { export function OuterEnumIntegerToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumInteger { return value as OuterEnumInteger; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumIntegerDefaultValue.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumIntegerDefaultValue.ts index 1a6941699214..14a66d64b3c8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumIntegerDefaultValue.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterEnumIntegerDefaultValue.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumIntegerDefaultValueToJSON(value?: OuterEnumIntegerDefau export function OuterEnumIntegerDefaultValueToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumIntegerDefaultValue { return value as OuterEnumIntegerDefaultValue; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts index a533ca482d8b..ea2d8a9294dc 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { OuterEnumInteger } from './OuterEnumInteger'; import { @@ -36,7 +35,6 @@ export interface OuterObjectWithEnumProperty { } - /** * Check if a given object implements the OuterObjectWithEnumProperty interface. */ @@ -73,4 +71,3 @@ export function OuterObjectWithEnumPropertyFromJSONTyped(json: any, ignoreDiscri 'value': OuterEnumIntegerToJSON(value['value']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts index a7a8016b7adc..901eaa3366d9 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import { ChildWithNullable, ChildWithNullableFromJSONTyped, ChildWithNullableToJSON, ChildWithNullableToJSONTyped } from './ChildWithNullable'; /** @@ -43,7 +42,6 @@ export const ParentWithNullableTypeEnum = { } as const; export type ParentWithNullableTypeEnum = typeof ParentWithNullableTypeEnum[keyof typeof ParentWithNullableTypeEnum]; - /** * Check if a given object implements the ParentWithNullable interface. */ @@ -95,4 +93,3 @@ export function ParentWithNullableFromJSONTyped(json: any, ignoreDiscriminator: 'nullableProperty': value['nullableProperty'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts index 4dc3777b0123..fa18f70da8d4 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts index 561b3037f5c0..dda330e4a46f 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface ReadOnlyFirst { */ baz?: string; } - /** * Check if a given object implements the ReadOnlyFirst interface. */ @@ -69,4 +67,3 @@ export function ReadOnlyFirstFromJSONTyped(json: any, ignoreDiscriminator: boole 'baz': value['baz'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts index dc1fd7c1712c..a79a0f3c4c8b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing reserved words @@ -26,7 +25,6 @@ export interface Return { */ _return?: number; } - /** * Check if a given object implements the Return interface. */ @@ -62,4 +60,3 @@ export function ReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re 'return': value['_return'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SingleRefType.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SingleRefType.ts index 8247fdf99d23..220daeca0a2b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SingleRefType.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SingleRefType.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -50,4 +49,3 @@ export function SingleRefTypeToJSON(value?: SingleRefType | null): any { export function SingleRefTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SingleRefType { return value as SingleRefType; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts index 3fec48ea4438..d6505ded0524 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface SpecialModelName { */ $specialPropertyName?: number; } - /** * Check if a given object implements the SpecialModelName interface. */ @@ -62,4 +60,3 @@ export function SpecialModelNameFromJSONTyped(json: any, ignoreDiscriminator: bo '$special[property.name]': value['$specialPropertyName'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts index 11266e1fb90a..12c1cad8c49f 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts index 5bfdc0cfa545..797200b27560 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -27,7 +26,6 @@ export interface TestInlineFreeformAdditionalPropertiesRequest { */ someProperty?: string; } - /** * Check if a given object implements the TestInlineFreeformAdditionalPropertiesRequest interface. */ @@ -65,4 +63,3 @@ export function TestInlineFreeformAdditionalPropertiesRequestFromJSONTyped(json: 'someProperty': value['someProperty'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts index 97523c16bb4d..2a316804d158 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts index ed35f30ef7a5..48a191558864 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io:80/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts index 22062ecf531f..597902f04a29 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts index 49163cc4b463..5fd87bf5f0de 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts index 03a5448df528..f08cefef64cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/User.ts b/samples/client/petstore/typescript-fetch/builds/default/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/default/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts index 88a965dfc122..3595d260d9fc 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { EnumPatternObject, diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts index 1c4279574261..75e0e1e46730 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { NumberEnum } from './NumberEnum'; import { @@ -61,7 +60,6 @@ export interface EnumPatternObject { } - /** * Check if a given object implements the EnumPatternObject interface. */ @@ -103,4 +101,3 @@ export function EnumPatternObjectFromJSONTyped(json: any, ignoreDiscriminator: b 'nullable-number-enum': NumberEnumToJSON(value['nullableNumberEnum']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts index f45e1771ea3e..f5716728a978 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -86,7 +85,6 @@ export const FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum = { } as const; export type FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum = typeof FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum[keyof typeof FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum]; - /** * Check if a given object implements the FakeEnumRequestGetInline200Response interface. */ @@ -128,4 +126,3 @@ export function FakeEnumRequestGetInline200ResponseFromJSONTyped(json: any, igno 'nullable-number-enum': value['nullableNumberEnum'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/NumberEnum.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/NumberEnum.ts index d893f1143456..d87e3999d933 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/NumberEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/NumberEnum.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function NumberEnumToJSON(value?: NumberEnum | null): any { export function NumberEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): NumberEnum { return value as NumberEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/StringEnum.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/StringEnum.ts index 172e15ef52d4..9f0e7f84ced7 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/StringEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/StringEnum.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function StringEnumToJSON(value?: StringEnum | null): any { export function StringEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): StringEnum { return value as StringEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts index 7f99552816fe..b727de732ed8 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts index 22062ecf531f..597902f04a29 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts index 49163cc4b463..5fd87bf5f0de 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts index 03a5448df528..f08cefef64cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts index 66a4232c3893..9ce061a07095 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts index 8cf46da17dd8..bd9ceb0ff205 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts index b60bf74dc414..54d9baf110e1 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts index 3383adf93dfd..340e84a4b152 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { TestResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestA.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestA.ts index 8fffa09116a6..eaeb888398f7 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestA.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestA.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface TestA { */ foo: string; } - /** * Check if a given object implements the TestA interface. */ @@ -63,4 +61,3 @@ export function TestAFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tes 'foo': value['foo'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestB.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestB.ts index d8477b8db52e..55a03f5279af 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestB.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestB.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface TestB { */ bar: string; } - /** * Check if a given object implements the TestB interface. */ @@ -63,4 +61,3 @@ export function TestBFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tes 'bar': value['bar'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts index d37db87e324a..6e6efa823208 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/models/TestResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { TestA } from './TestA'; import { instanceOfTestA, @@ -33,7 +32,6 @@ import { * @export */ export type TestResponse = TestA | TestB; - export function TestResponseFromJSON(json: any): TestResponse { return TestResponseFromJSONTyped(json, false); } @@ -66,4 +64,3 @@ export function TestResponseToJSON(value?: TestResponse | null): any { return {}; } - diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts index 9ccdf7037352..5d1c875811dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts index 4776d47251c8..fdfe044a01fa 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts index 58434bd8740c..96404277d2e9 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts index b18b7fd43c57..91282bee21a0 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts index e20073b50cb4..66fff504ffac 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { GetBehaviorPermissionsResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts index 0c98a78f6338..3b1132b43f7c 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import {Api} from './index'; import {List} from 'immutable'; import {all, fork, put, takeLatest} from "redux-saga/effects"; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts index f1f83a906633..ae87856fe948 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Category, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts index 841f613f3910..9e3717259042 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import {Api} from './index'; import {List} from 'immutable'; import {all, fork, put, takeLatest} from "redux-saga/effects"; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts index c1c514c3f8a3..ab98432bdbd5 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { GetMatchingPartsResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts index 41189b279198..58bd7ed4bdf1 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import {Api} from './index'; import {List} from 'immutable'; import {all, fork, put, takeLatest} from "redux-saga/effects"; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts index 8cf46da17dd8..bd9ceb0ff205 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts index ea92ff2f2163..a2383babfd0e 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import {Api} from './index'; import {List} from 'immutable'; import {all, fork, put, takeLatest} from "redux-saga/effects"; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts index 0a634a21cf2e..d696bf3cbf7d 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { DefaultMetaOnlyResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts index ddef1ef77b04..b2e25e9eabf1 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import {Api} from './index'; import {List} from 'immutable'; import {all, fork, put, takeLatest} from "redux-saga/effects"; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/BehaviorType.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/BehaviorType.ts index 0cb828571b67..67bc79d134bf 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/BehaviorType.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/BehaviorType.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * Behavior type of a pet * @export @@ -51,4 +50,3 @@ export function BehaviorTypeToJSON(value?: BehaviorType | null): any { export function BehaviorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): BehaviorType { return value as BehaviorType; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts index 2bb757b734aa..a432c894c0c3 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -103,4 +102,3 @@ export const categoryRecordUtils = new CategoryRecordUtils(); export const apiEntitiesCategorySelector = (state: any) => getApiEntitiesState(state).category as Map; export const apiEntityCategorySelector = (state: any, {id}: {id?: string | null}) => id ? apiEntitiesCategorySelector(state).get(id) : undefined; - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts index 35356dee4a9b..b1c5b2d712d2 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { ResponseMeta } from './ResponseMeta'; import { @@ -34,7 +33,6 @@ export interface DefaultMetaOnlyResponse { */ meta: ResponseMeta; } - /** * Check if a given object implements the DefaultMetaOnlyResponse interface. */ @@ -71,4 +69,3 @@ export function DefaultMetaOnlyResponseFromJSONTyped(json: any, ignoreDiscrimina 'meta': ResponseMetaToJSON(value['meta']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts index 73ce3a84c712..520fe96c97fb 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -59,4 +58,3 @@ class DefaultMetaOnlyResponseRecordUtils extends ApiRecordUtils; } - /** * Check if a given object implements the FindPetsByStatusResponse interface. */ @@ -86,4 +84,3 @@ export function FindPetsByStatusResponseFromJSONTyped(json: any, ignoreDiscrimin 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(PetToJSON)), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts index f22a5c3f59cb..5c6e7bf0bef2 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -80,4 +79,3 @@ class FindPetsByStatusResponseRecordUtils extends ApiRecordUtils; } - /** * Check if a given object implements the FindPetsByUserResponse interface. */ @@ -86,4 +84,3 @@ export function FindPetsByUserResponseFromJSONTyped(json: any, ignoreDiscriminat 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(UserToJSON)), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts index 0af0862472d9..b51d87e923c4 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -80,4 +79,3 @@ class FindPetsByUserResponseRecordUtils extends ApiRecordUtils { export const itemIdRecordUtils = new ItemIdRecordUtils(); - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts index 955aefde7190..00d76fed67f4 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Part } from './Part'; import { @@ -40,7 +39,6 @@ export interface MatchingParts { */ related: Array; } - /** * Check if a given object implements the MatchingParts interface. */ @@ -80,4 +78,3 @@ export function MatchingPartsFromJSONTyped(json: any, ignoreDiscriminator: boole 'related': ((value['related'] as Array).map(PartToJSON)), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts index 4170d2f84e9e..505759555216 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -62,4 +61,3 @@ class MatchingPartsRecordUtils extends ApiRecordUtils export const modelErrorRecordUtils = new ModelErrorRecordUtils(); - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts index a0ddf05e1ed8..c71e091a8775 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -108,4 +107,3 @@ export const orderRecordUtils = new OrderRecordUtils(); export const apiEntitiesOrderSelector = (state: any) => getApiEntitiesState(state).order as Map; export const apiEntityOrderSelector = (state: any, {id}: {id?: string | null}) => id ? apiEntitiesOrderSelector(state).get(id) : undefined; - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Part.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Part.ts index a9723f00da65..291a59beaf11 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Part.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Part.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Contains all the info about a pet part @@ -32,7 +31,6 @@ export interface Part { */ name: string; } - /** * Check if a given object implements the Part interface. */ @@ -72,4 +70,3 @@ export function PartFromJSONTyped(json: any, ignoreDiscriminator: boolean): Part 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts index 539b8094c7a7..624480fb5fd3 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -53,4 +52,3 @@ class PartRecordUtils extends ApiRecordUtils { export const partRecordUtils = new PartRecordUtils(); - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts index c02125e029ac..2348a835d9bc 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -187,7 +186,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -277,4 +275,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'regions': value['regions'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetPartType.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetPartType.ts index 40a214555e6a..c4c8f7eea1a5 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetPartType.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetPartType.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * Type of pet part * @export @@ -51,4 +50,3 @@ export function PetPartTypeToJSON(value?: PetPartType | null): any { export function PetPartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PetPartType { return value as PetPartType; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts index 9c114b14d0f4..ad5cc4245f1f 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -184,4 +183,3 @@ export const petRecordUtils = new PetRecordUtils(); export const apiEntitiesPetSelector = (state: any) => getApiEntitiesState(state).pet as Map; export const apiEntityPetSelector = (state: any, {id}: {id?: string | null}) => id ? apiEntitiesPetSelector(state).get(id) : undefined; - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts index d48d53c5b557..27c6bba17ddd 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { ResponseMeta } from './ResponseMeta'; import { @@ -40,7 +39,6 @@ export interface PetRegionsResponse { */ data?: Array>; } - /** * Check if a given object implements the PetRegionsResponse interface. */ @@ -79,4 +77,3 @@ export function PetRegionsResponseFromJSONTyped(json: any, ignoreDiscriminator: 'data': value['data'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts index df2bcc6d3cb2..c5fa993393ad 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -71,4 +70,3 @@ class PetRegionsResponseRecordUtils extends ApiRecordUtils getApiEntitiesState(state).tag as Map; export const apiEntityTagSelector = (state: any, {id}: {id?: string | null}) => id ? apiEntitiesTagSelector(state).get(id) : undefined; - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts index 32c20200e0cb..b9e0c795ee35 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -80,7 +79,6 @@ export interface User { */ subUser2: User; } - /** * Check if a given object implements the User interface. */ @@ -136,4 +134,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'subUser2': UserToJSON(value['subUser2']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts index 399720f55ea7..eccab4f75536 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; import {getApiEntitiesState} from "../ApiEntitiesSelectors" import {List, Record, RecordOf, Map} from 'immutable'; @@ -111,4 +110,3 @@ export const userRecordUtils = new UserRecordUtils(); export const apiEntitiesUserSelector = (state: any) => getApiEntitiesState(state).user as Map; export const apiEntityUserSelector = (state: any, {id}: {id?: string | null}) => id ? apiEntitiesUserSelector(state).get(id) : undefined; - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/WarningCode.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/WarningCode.ts index 16b7bb37e969..8aa2d9004a30 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/WarningCode.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/WarningCode.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * Warning code returned when a potential problem is detected * @export @@ -51,4 +50,3 @@ export function WarningCodeToJSON(value?: WarningCode | null): any { export function WarningCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): WarningCode { return value as WarningCode; } - diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts index e63d48d42bd6..222bc33c0dd7 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Client, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts index ef9dde7a0809..44a70c83a2b3 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { FooGetDefaultResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts index 23e46bbf742e..8b67ae8c6853 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Client, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts index e2cf17eb7a26..3cd969011931 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Client, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts index 5b77f2de4486..dd2b05fd7e7b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts index 4a7ee687d8dc..6ea1903fd986 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts index b151cb1eaaca..f47fbb155952 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts index c15b937e8a1c..faa20f87a242 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface AdditionalPropertiesClass { */ mapOfMapProperty?: { [key: string]: { [key: string]: string; }; }; } - /** * Check if a given object implements the AdditionalPropertiesClass interface. */ @@ -70,4 +68,3 @@ export function AdditionalPropertiesClassFromJSONTyped(json: any, ignoreDiscrimi 'map_of_map_property': value['mapOfMapProperty'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts index 826ea603e2db..6ec1d76d70a5 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { SingleRefType } from './SingleRefType'; import { @@ -42,7 +41,6 @@ export interface AllOfWithSingleRef { } - /** * Check if a given object implements the AllOfWithSingleRef interface. */ @@ -80,4 +78,3 @@ export function AllOfWithSingleRefFromJSONTyped(json: any, ignoreDiscriminator: 'SingleRefType': SingleRefTypeToJSON(value['singleRefType']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts index 33ad57bbe791..91ea8ede44f0 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import { Cat, CatFromJSONTyped, CatToJSON, CatToJSONTyped } from './Cat'; import { Dog, DogFromJSONTyped, DogToJSON, DogToJSONTyped } from './Dog'; @@ -34,7 +33,6 @@ export interface Animal { */ color?: string; } - /** * Check if a given object implements the Animal interface. */ @@ -92,4 +90,3 @@ export function AnimalFromJSONTyped(json: any, ignoreDiscriminator: boolean): An 'color': value['color'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts index 18264d15d7cb..02ad42ec8ada 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface ArrayOfArrayOfNumberOnly { */ arrayArrayNumber?: Array>; } - /** * Check if a given object implements the ArrayOfArrayOfNumberOnly interface. */ @@ -62,4 +60,3 @@ export function ArrayOfArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscrimin 'ArrayArrayNumber': value['arrayArrayNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts index fa5c6dc5edd1..24fea8316a9b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface ArrayOfNumberOnly { */ arrayNumber?: Array; } - /** * Check if a given object implements the ArrayOfNumberOnly interface. */ @@ -62,4 +60,3 @@ export function ArrayOfNumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: b 'ArrayNumber': value['arrayNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts index b31c80207b2f..7f3ba2fe5e71 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { ReadOnlyFirst } from './ReadOnlyFirst'; import { @@ -46,7 +45,6 @@ export interface ArrayTest { */ arrayArrayOfModel?: Array>; } - /** * Check if a given object implements the ArrayTest interface. */ @@ -86,4 +84,3 @@ export function ArrayTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'array_array_of_model': value['arrayArrayOfModel'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts index ace2ede88477..5bf704ca908c 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -57,7 +56,6 @@ export interface Capitalization { */ aTTNAME?: string; } - /** * Check if a given object implements the Capitalization interface. */ @@ -103,4 +101,3 @@ export function CapitalizationFromJSONTyped(json: any, ignoreDiscriminator: bool 'ATT_NAME': value['aTTNAME'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts index a1b44d02d26d..eeb75c7a1e86 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -34,7 +33,6 @@ export interface Cat extends Animal { */ declawed?: boolean; } - /** * Check if a given object implements the Cat interface. */ @@ -70,4 +68,3 @@ export function CatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cat { 'declawed': value['declawed'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts index 7c8caddd4969..e761b71f8284 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface Category { */ name: string; } - /** * Check if a given object implements the Category interface. */ @@ -71,4 +69,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts index 813177eb3d50..9f3bac53ed97 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model with "_class" property @@ -26,7 +25,6 @@ export interface ClassModel { */ _class?: string; } - /** * Check if a given object implements the ClassModel interface. */ @@ -62,4 +60,3 @@ export function ClassModelFromJSONTyped(json: any, ignoreDiscriminator: boolean) '_class': value['_class'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts index c6aa7163b0b3..8ee18c182a71 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Client { */ client?: string; } - /** * Check if a given object implements the Client interface. */ @@ -62,4 +60,3 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl 'client': value['client'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts index d2acf418fded..3fe0d956671c 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface DeprecatedObject { */ name?: string; } - /** * Check if a given object implements the DeprecatedObject interface. */ @@ -62,4 +60,3 @@ export function DeprecatedObjectFromJSONTyped(json: any, ignoreDiscriminator: bo 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts index 1d66d5c04bf8..729910f64588 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -34,7 +33,6 @@ export interface Dog extends Animal { */ breed?: string; } - /** * Check if a given object implements the Dog interface. */ @@ -70,4 +68,3 @@ export function DogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dog { 'breed': value['breed'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts index 27f42e0a652b..1b41f08158cb 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -52,7 +51,6 @@ export const EnumArraysArrayEnumEnum = { } as const; export type EnumArraysArrayEnumEnum = typeof EnumArraysArrayEnumEnum[keyof typeof EnumArraysArrayEnumEnum]; - /** * Check if a given object implements the EnumArrays interface. */ @@ -90,4 +88,3 @@ export function EnumArraysFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'array_enum': value['arrayEnum'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumClass.ts index 6878b8591431..c851bd15cbb4 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumClass.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function EnumClassToJSON(value?: EnumClass | null): any { export function EnumClassToJSONTyped(value: any, ignoreDiscriminator: boolean): EnumClass { return value as EnumClass; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts index de99ab4dc662..8b04745c152e 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { OuterEnum } from './OuterEnum'; import { @@ -137,7 +136,6 @@ export const EnumTestEnumNumberEnum = { } as const; export type EnumTestEnumNumberEnum = typeof EnumTestEnumNumberEnum[keyof typeof EnumTestEnumNumberEnum]; - /** * Check if a given object implements the EnumTest interface. */ @@ -188,4 +186,3 @@ export function EnumTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'outerEnumIntegerDefaultValue': OuterEnumIntegerDefaultValueToJSON(value['outerEnumIntegerDefaultValue']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts index 5c97b9928efa..7723ce1c785e 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface FakeBigDecimalMap200Response { */ someMap?: { [key: string]: number; }; } - /** * Check if a given object implements the FakeBigDecimalMap200Response interface. */ @@ -70,4 +68,3 @@ export function FakeBigDecimalMap200ResponseFromJSONTyped(json: any, ignoreDiscr 'someMap': value['someMap'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts index 557abed7403e..79f98154f9b3 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface FileSchemaTestClass { */ files?: Array; } - /** * Check if a given object implements the FileSchemaTestClass interface. */ @@ -70,4 +68,3 @@ export function FileSchemaTestClassFromJSONTyped(json: any, ignoreDiscriminator: 'files': value['files'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts index 118b6190f280..0503279d1f20 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface Foo { */ bar?: string; } - /** * Check if a given object implements the Foo interface. */ @@ -62,4 +60,3 @@ export function FooFromJSONTyped(json: any, ignoreDiscriminator: boolean): Foo { 'bar': value['bar'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts index 721b08a2242d..35351d6b67ec 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Foo } from './Foo'; import { @@ -34,7 +33,6 @@ export interface FooGetDefaultResponse { */ string?: Foo; } - /** * Check if a given object implements the FooGetDefaultResponse interface. */ @@ -70,4 +68,3 @@ export function FooGetDefaultResponseFromJSONTyped(json: any, ignoreDiscriminato 'string': FooToJSON(value['string']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts index a47a1b03c571..2a1312266c5a 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Decimal } from './Decimal'; import { @@ -124,7 +123,6 @@ export interface FormatTest { */ patternWithDigitsAndDelimiter?: string; } - /** * Check if a given object implements the FormatTest interface. */ @@ -194,4 +192,3 @@ export function FormatTestFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'pattern_with_digits_and_delimiter': value['patternWithDigitsAndDelimiter'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts index 0eb9accdc1f5..eff6655352bf 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface HasOnlyReadOnly { */ readonly foo?: string; } - /** * Check if a given object implements the HasOnlyReadOnly interface. */ @@ -68,4 +66,3 @@ export function HasOnlyReadOnlyFromJSONTyped(json: any, ignoreDiscriminator: boo }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts index c62de4d9fb83..b9db6bd13e54 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. @@ -26,7 +25,6 @@ export interface HealthCheckResult { */ nullableMessage?: string | null; } - /** * Check if a given object implements the HealthCheckResult interface. */ @@ -62,4 +60,3 @@ export function HealthCheckResultFromJSONTyped(json: any, ignoreDiscriminator: b 'NullableMessage': value['nullableMessage'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts index fb9a30ea0e5b..4bb692e9c702 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface List { */ _123list?: string; } - /** * Check if a given object implements the List interface. */ @@ -62,4 +60,3 @@ export function ListFromJSONTyped(json: any, ignoreDiscriminator: boolean): List '123-list': value['_123list'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts index a88b84fd1027..d46c723ac72b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -55,7 +54,6 @@ export const MapTestMapOfEnumStringEnum = { } as const; export type MapTestMapOfEnumStringEnum = typeof MapTestMapOfEnumStringEnum[keyof typeof MapTestMapOfEnumStringEnum]; - /** * Check if a given object implements the MapTest interface. */ @@ -97,4 +95,3 @@ export function MapTestFromJSONTyped(json: any, ignoreDiscriminator: boolean): M 'indirect_map': value['indirectMap'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts index 1f69153ef85c..8a531f5f237f 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Animal } from './Animal'; import { @@ -46,7 +45,6 @@ export interface MixedPropertiesAndAdditionalPropertiesClass { */ map?: { [key: string]: Animal; }; } - /** * Check if a given object implements the MixedPropertiesAndAdditionalPropertiesClass interface. */ @@ -86,4 +84,3 @@ export function MixedPropertiesAndAdditionalPropertiesClassFromJSONTyped(json: a 'map': value['map'] == null ? undefined : (mapValues(value['map'], AnimalToJSON)), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts index af0066b276eb..75b2ff977c51 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model name starting with number @@ -32,7 +31,6 @@ export interface Model200Response { */ _class?: string; } - /** * Check if a given object implements the Model200Response interface. */ @@ -70,4 +68,3 @@ export function Model200ResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'class': value['_class'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts index a505854c2d71..3886031b14c3 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts index ef6eee2c53c7..8866671527ef 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Must be named `File` for test. @@ -26,7 +25,6 @@ export interface ModelFile { */ sourceURI?: string; } - /** * Check if a given object implements the ModelFile interface. */ @@ -62,4 +60,3 @@ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'sourceURI': value['sourceURI'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts index 1c957bff4d65..b57550f80e15 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing model name same as property name @@ -44,7 +43,6 @@ export interface Name { */ readonly _123number?: number; } - /** * Check if a given object implements the Name interface. */ @@ -85,4 +83,3 @@ export function NameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Name 'property': value['property'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts index 4f32da1c0ced..ca09d8cd40b0 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -93,7 +92,6 @@ export interface NullableClass { */ objectItemsNullable?: { [key: string]: object | null; }; } - /** * Check if a given object implements the NullableClass interface. */ @@ -153,4 +151,3 @@ export function NullableClassFromJSONTyped(json: any, ignoreDiscriminator: boole 'object_items_nullable': value['objectItemsNullable'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts index d9e19a6d9d86..bf6b6b4cbec3 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface NumberOnly { */ justNumber?: number; } - /** * Check if a given object implements the NumberOnly interface. */ @@ -62,4 +60,3 @@ export function NumberOnlyFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'JustNumber': value['justNumber'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts index 88b028733508..fef27d5e45ab 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { DeprecatedObject } from './DeprecatedObject'; import { @@ -55,7 +54,6 @@ export interface ObjectWithDeprecatedFields { */ bars?: Array; } - /** * Check if a given object implements the ObjectWithDeprecatedFields interface. */ @@ -97,4 +95,3 @@ export function ObjectWithDeprecatedFieldsFromJSONTyped(json: any, ignoreDiscrim 'bars': value['bars'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts index ef82efcce508..7df2fdb6f254 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts index ab4303f03c3a..ff912e49b0d2 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -38,7 +37,6 @@ export interface OuterComposite { */ myBoolean?: boolean; } - /** * Check if a given object implements the OuterComposite interface. */ @@ -78,4 +76,3 @@ export function OuterCompositeFromJSONTyped(json: any, ignoreDiscriminator: bool 'my_boolean': value['myBoolean'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnum.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnum.ts index 4be9edeac589..bfad65965b4a 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnum.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumToJSON(value?: OuterEnum | null): any { export function OuterEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnum { return value as OuterEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumDefaultValue.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumDefaultValue.ts index de44a7878120..a06dea10daa0 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumDefaultValue.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumDefaultValue.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumDefaultValueToJSON(value?: OuterEnumDefaultValue | null export function OuterEnumDefaultValueToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumDefaultValue { return value as OuterEnumDefaultValue; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumInteger.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumInteger.ts index b899dc358ea0..28f5fd672058 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumInteger.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumInteger.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumIntegerToJSON(value?: OuterEnumInteger | null): any { export function OuterEnumIntegerToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumInteger { return value as OuterEnumInteger; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumIntegerDefaultValue.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumIntegerDefaultValue.ts index 1a6941699214..14a66d64b3c8 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumIntegerDefaultValue.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterEnumIntegerDefaultValue.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -51,4 +50,3 @@ export function OuterEnumIntegerDefaultValueToJSON(value?: OuterEnumIntegerDefau export function OuterEnumIntegerDefaultValueToJSONTyped(value: any, ignoreDiscriminator: boolean): OuterEnumIntegerDefaultValue { return value as OuterEnumIntegerDefaultValue; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterObjectWithEnumProperty.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterObjectWithEnumProperty.ts index a533ca482d8b..ea2d8a9294dc 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterObjectWithEnumProperty.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterObjectWithEnumProperty.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { OuterEnumInteger } from './OuterEnumInteger'; import { @@ -36,7 +35,6 @@ export interface OuterObjectWithEnumProperty { } - /** * Check if a given object implements the OuterObjectWithEnumProperty interface. */ @@ -73,4 +71,3 @@ export function OuterObjectWithEnumPropertyFromJSONTyped(json: any, ignoreDiscri 'value': OuterEnumIntegerToJSON(value['value']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts index 4dc3777b0123..fa18f70da8d4 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts index 561b3037f5c0..dda330e4a46f 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface ReadOnlyFirst { */ baz?: string; } - /** * Check if a given object implements the ReadOnlyFirst interface. */ @@ -69,4 +67,3 @@ export function ReadOnlyFirstFromJSONTyped(json: any, ignoreDiscriminator: boole 'baz': value['baz'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts index dc1fd7c1712c..a79a0f3c4c8b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Model for testing reserved words @@ -26,7 +25,6 @@ export interface Return { */ _return?: number; } - /** * Check if a given object implements the Return interface. */ @@ -62,4 +60,3 @@ export function ReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re 'return': value['_return'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SingleRefType.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SingleRefType.ts index 8247fdf99d23..220daeca0a2b 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SingleRefType.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SingleRefType.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - /** * * @export @@ -50,4 +49,3 @@ export function SingleRefTypeToJSON(value?: SingleRefType | null): any { export function SingleRefTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SingleRefType { return value as SingleRefType; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts index 3fec48ea4438..d6505ded0524 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -26,7 +25,6 @@ export interface SpecialModelName { */ $specialPropertyName?: number; } - /** * Check if a given object implements the SpecialModelName interface. */ @@ -62,4 +60,3 @@ export function SpecialModelNameFromJSONTyped(json: any, ignoreDiscriminator: bo '$special[property.name]': value['$specialPropertyName'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts index 11266e1fb90a..12c1cad8c49f 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts index 97523c16bb4d..2a316804d158 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts index ed35f30ef7a5..48a191558864 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io:80/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts index a791292c47ae..2c66c18d2ef4 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts index 2e8408d1d2c1..9f58ece40ad9 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts index 39e604591ff3..57dddac07001 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts index 93ddb7d8f62c..b637cb266fc7 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -90,4 +88,3 @@ export const CategoryPropertyValidationAttributesMap: { pattern: '/^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$/', }, } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts index 51e5f5a91a4d..efe4034b505f 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -95,4 +93,3 @@ export const ModelApiResponsePropertyValidationAttributesMap: { } } = { } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts index fb3d41daab6a..84864ba3fa51 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -69,7 +68,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -139,4 +137,3 @@ export const OrderAdditionalPropertiesValidationAttributes: { maxProperties?: nu maxProperties: 10, minProperties: 2, } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts index 2290adbd00d6..f6b29a47ccb6 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -84,7 +83,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -154,4 +152,3 @@ export const PetPropertyValidationAttributesMap: { uniqueItems: true, }, } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts index eefbfb792ff8..39d942cf819a 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -87,4 +85,3 @@ export const TagPropertyValidationAttributesMap: { } } = { } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts index f12cee29181e..d2a97be8af09 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -146,4 +144,3 @@ export const UserPropertyValidationAttributesMap: { multipleOf: 10, }, } - diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts index c3b33a5b61df..5021e50733bc 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts index 7e4e8a7b5ba8..930eb69d4ab5 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts index 01ec9acf7cce..f49a8098d09d 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts index 22062ecf531f..597902f04a29 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts index 49163cc4b463..5fd87bf5f0de 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts index 03a5448df528..f08cefef64cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts index b1f80cca9cd2..12484e94e3b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A category for a pet @@ -32,7 +31,6 @@ export interface Category { */ name?: string; } - /** * Check if a given object implements the Category interface. */ @@ -70,4 +68,3 @@ export function CategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts index baea7c98fece..c8d9761348fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -38,7 +37,6 @@ export interface ModelApiResponse { */ message?: string; } - /** * Check if a given object implements the ModelApiResponse interface. */ @@ -78,4 +76,3 @@ export function ModelApiResponseFromJSONTyped(json: any, ignoreDiscriminator: bo 'message': value['message'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts index 5f0ffc2452de..5bf7483054d3 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -68,7 +67,6 @@ export const OrderStatusEnum = { } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * Check if a given object implements the Order interface. */ @@ -114,4 +112,3 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord 'complete': value['complete'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts index 90ba76c7c496..dab90419ecfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { Category } from './Category'; import { @@ -83,7 +82,6 @@ export const PetStatusEnum = { } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * Check if a given object implements the Pet interface. */ @@ -131,4 +129,3 @@ export function PetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pet { 'status': value['status'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts index 9b7b41d11e87..243c6076cf34 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A tag for a pet @@ -32,7 +31,6 @@ export interface Tag { */ name?: string; } - /** * Check if a given object implements the Tag interface. */ @@ -70,4 +68,3 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { 'name': value['name'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts index 54d3a2b2d69b..03877554d2d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -68,7 +67,6 @@ export interface User { */ userStatus?: number; } - /** * Check if a given object implements the User interface. */ @@ -118,4 +116,3 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User 'userStatus': value['userStatus'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts index 2c4103a8908e..aa05cf26a8c6 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts index 8eb16afcbf47..485021e28499 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { EnumPatternObject, diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts index 1c4279574261..75e0e1e46730 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; import type { NumberEnum } from './NumberEnum'; import { @@ -61,7 +60,6 @@ export interface EnumPatternObject { } - /** * Check if a given object implements the EnumPatternObject interface. */ @@ -103,4 +101,3 @@ export function EnumPatternObjectFromJSONTyped(json: any, ignoreDiscriminator: b 'nullable-number-enum': NumberEnumToJSON(value['nullableNumberEnum']), }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts index 5822a99aa444..dfe39b3b265b 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { mapValues } from '../runtime'; /** * @@ -82,7 +81,6 @@ export enum FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum { NUMBER_3 = 3 } - /** * Check if a given object implements the FakeEnumRequestGetInline200Response interface. */ @@ -124,4 +122,3 @@ export function FakeEnumRequestGetInline200ResponseFromJSONTyped(json: any, igno 'nullable-number-enum': value['nullableNumberEnum'], }; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/NumberEnum.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/NumberEnum.ts index 4170bf9c7c89..af89de2a764a 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/NumberEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/NumberEnum.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * * @export @@ -50,4 +49,3 @@ export function NumberEnumToJSON(value?: NumberEnum | null): any { export function NumberEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): NumberEnum { return value as NumberEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/StringEnum.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/StringEnum.ts index 484ec6c2e011..867ead64ad05 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/StringEnum.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/StringEnum.ts @@ -11,7 +11,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * * @export @@ -50,4 +49,3 @@ export function StringEnumToJSON(value?: StringEnum | null): any { export function StringEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): StringEnum { return value as StringEnum; } - diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts index 7f99552816fe..b727de732ed8 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts index 29ef7179b719..f0c4c3d47ec1 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts index 24740b197638..f0178181033c 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts index 283e3259aed0..f5f3f6f2f2a4 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { User, diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts index ab1529f795f4..19cad134ef58 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts @@ -18,8 +18,7 @@ export interface Category { * @memberof Category */ name?: string; -} -/** +}/** * Describes the result of uploading an image resource * @export * @interface ModelApiResponse @@ -43,8 +42,7 @@ export interface ModelApiResponse { * @memberof ModelApiResponse */ message?: string; -} -/** +}/** * An order for a pets from the pet store * @export * @interface Order @@ -98,7 +96,6 @@ export const OrderStatusEnum = { Delivered: 'delivered' } as const; export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum]; - /** * A pet for sale in the pet store * @export @@ -153,7 +150,6 @@ export const PetStatusEnum = { Sold: 'sold' } as const; export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; - /** * A tag for a pet * @export @@ -172,8 +168,7 @@ export interface Tag { * @memberof Tag */ name?: string; -} -/** +}/** * A User who is purchasing from the pet store * @export * @interface User @@ -227,4 +222,4 @@ export interface User { * @memberof User */ userStatus?: number; -} +} \ No newline at end of file diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts index dc5ead050878..387fa5c79ff0 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts index e2f23063bb37..db353cb3b622 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/PetApi.ts @@ -11,7 +11,6 @@ * Do not edit the class manually. */ - import { HttpMethods, QueryConfig, ResponseBody, ResponseText } from 'redux-query'; import * as runtime from '../runtime'; import { diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts index ad509b371d49..18832edfc4b1 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/StoreApi.ts @@ -11,7 +11,6 @@ * Do not edit the class manually. */ - import { HttpMethods, QueryConfig, ResponseBody, ResponseText } from 'redux-query'; import * as runtime from '../runtime'; import { diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts index 5e35989d8864..c59e6efad168 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/apis/UserApi.ts @@ -11,7 +11,6 @@ * Do not edit the class manually. */ - import { HttpMethods, QueryConfig, ResponseBody, ResponseText } from 'redux-query'; import * as runtime from '../runtime'; import { diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Category.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Category.ts index 61c1f88781db..e7cd1655898d 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Category.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Category.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; /** * A category for a pet @@ -49,4 +48,3 @@ export function CategoryToJSON(value?: Category): any { }; } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/ModelApiResponse.ts index 1bb95aba358f..0bffabef1353 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/ModelApiResponse.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; /** * Describes the result of uploading an image resource @@ -57,4 +56,3 @@ export function ModelApiResponseToJSON(value?: ModelApiResponse): any { }; } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Order.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Order.ts index ff701de3c3b2..68c5ec73b40b 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Order.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Order.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; /** * An order for a pets from the pet store @@ -91,4 +90,3 @@ export enum OrderStatusEnum { Delivered = 'delivered' } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Pet.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Pet.ts index b0b21c2a3bf3..4746e407d023 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Pet.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Pet.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; import { Category, @@ -100,4 +99,3 @@ export enum PetStatusEnum { Sold = 'sold' } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Tag.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Tag.ts index f3f0bd891677..c51dfa653b2c 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Tag.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/Tag.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; /** * A tag for a pet @@ -49,4 +48,3 @@ export function TagToJSON(value?: Tag): any { }; } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/User.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/User.ts index 34f33edddd7d..69cf1554cb3b 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/User.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/models/User.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { exists, mapValues } from '../runtime'; /** * A User who is purchasing from the pet store @@ -97,4 +96,3 @@ export function UserToJSON(value?: User): any { }; } - diff --git a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/runtime.ts b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/runtime.ts index 63ad66b7a09e..14e75ed170cc 100644 --- a/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/runtime.ts +++ b/samples/client/petstore/typescript-redux-query/builds/with-npm-version/src/runtime.ts @@ -11,7 +11,6 @@ * Do not edit the class manually. */ - import { Meta, OptimisticUpdate, QueryKey, QueryOptions, Rollback, TransformStrategy, Update } from "redux-query"; export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); diff --git a/samples/client/petstore/typescript-rxjs/builds/default/apis/PetApi.ts b/samples/client/petstore/typescript-rxjs/builds/default/apis/PetApi.ts index 7745f081c8bb..bee10aa91a93 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/apis/PetApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI, COLLECTION_FORMATS } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/default/apis/StoreApi.ts b/samples/client/petstore/typescript-rxjs/builds/default/apis/StoreApi.ts index 85dcd9aa568a..c05ebaa00b05 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/apis/StoreApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/default/apis/UserApi.ts b/samples/client/petstore/typescript-rxjs/builds/default/apis/UserApi.ts index dd1507f0c25a..79f367f449b2 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/apis/UserApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/apis/UserApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/ApiResponse.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/ApiResponse.ts index 942e4b992bf0..b6aeb61fafd7 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/ApiResponse.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/ApiResponse.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Describes the result of uploading an image resource * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/Category.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/Category.ts index 4e1d3e51e2e3..8b3336b1e4cf 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/Category.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/Category.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A category for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/Order.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/Order.ts index c6b7790d7024..6f3cc4f32d2e 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/Order.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/Order.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * An order for a pets from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/Pet.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/Pet.ts index 3d20bc0a87d9..788a0b87c4e6 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/Pet.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/Pet.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Category, Tag, diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/Tag.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/Tag.ts index 58792b18e6b8..e0a059e7186d 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/Tag.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/Tag.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A tag for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/default/models/User.ts b/samples/client/petstore/typescript-rxjs/builds/default/models/User.ts index a642d97bf8cd..eb85eeb64201 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/models/User.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/models/User.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A User who is purchasing from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts index d3934f08cc75..cb3a11828446 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { of } from 'rxjs'; import type { Observable } from 'rxjs'; import { ajax } from 'rxjs/ajax'; diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/PetApi.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/PetApi.ts index 7745f081c8bb..bee10aa91a93 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/PetApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/PetApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI, COLLECTION_FORMATS } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/StoreApi.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/StoreApi.ts index 85dcd9aa568a..c05ebaa00b05 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/StoreApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/UserApi.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/UserApi.ts index dd1507f0c25a..79f367f449b2 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/UserApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/apis/UserApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/ApiResponse.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/ApiResponse.ts index 942e4b992bf0..b6aeb61fafd7 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/ApiResponse.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/ApiResponse.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Describes the result of uploading an image resource * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Category.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Category.ts index 4e1d3e51e2e3..8b3336b1e4cf 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Category.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Category.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A category for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Order.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Order.ts index c6b7790d7024..6f3cc4f32d2e 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Order.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Order.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * An order for a pets from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Pet.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Pet.ts index 3d20bc0a87d9..788a0b87c4e6 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Pet.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Pet.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Category, Tag, diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Tag.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Tag.ts index 58792b18e6b8..e0a059e7186d 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Tag.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/Tag.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A tag for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/User.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/User.ts index a642d97bf8cd..eb85eeb64201 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/models/User.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/models/User.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A User who is purchasing from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts index d3934f08cc75..cb3a11828446 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { of } from 'rxjs'; import type { Observable } from 'rxjs'; import { ajax } from 'rxjs/ajax'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/PetApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/PetApi.ts index 7745f081c8bb..bee10aa91a93 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/PetApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/PetApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI, COLLECTION_FORMATS } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/StoreApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/StoreApi.ts index 85dcd9aa568a..c05ebaa00b05 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/StoreApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/UserApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/UserApi.ts index dd1507f0c25a..79f367f449b2 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/UserApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/apis/UserApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/ApiResponse.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/ApiResponse.ts index 942e4b992bf0..b6aeb61fafd7 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/ApiResponse.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/ApiResponse.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Describes the result of uploading an image resource * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Category.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Category.ts index 4e1d3e51e2e3..8b3336b1e4cf 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Category.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Category.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A category for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Order.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Order.ts index c6b7790d7024..6f3cc4f32d2e 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Order.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Order.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * An order for a pets from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Pet.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Pet.ts index 3d20bc0a87d9..788a0b87c4e6 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Pet.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Pet.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Category, Tag, diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Tag.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Tag.ts index 58792b18e6b8..e0a059e7186d 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Tag.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/Tag.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A tag for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/User.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/User.ts index a642d97bf8cd..eb85eeb64201 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/User.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/models/User.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A User who is purchasing from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts index d3934f08cc75..cb3a11828446 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { of } from 'rxjs'; import type { Observable } from 'rxjs'; import { ajax } from 'rxjs/ajax'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/PetApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/PetApi.ts index 1fd55eca4bcf..61cae0464eda 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/PetApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/PetApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI, COLLECTION_FORMATS } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/StoreApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/StoreApi.ts index 7d1a2bf2ca47..3b29d45a1cb1 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/StoreApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/UserApi.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/UserApi.ts index e7ad80b2769d..06d079efe06d 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/UserApi.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/apis/UserApi.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Observable } from 'rxjs'; import type { AjaxResponse } from 'rxjs/ajax'; import { BaseAPI, throwIfNullOrUndefined, encodeURI } from '../runtime'; diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/ApiResponse.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/ApiResponse.ts index 942e4b992bf0..b6aeb61fafd7 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/ApiResponse.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/ApiResponse.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Describes the result of uploading an image resource * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Category.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Category.ts index 4e1d3e51e2e3..8b3336b1e4cf 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Category.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Category.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A category for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Order.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Order.ts index c6b7790d7024..6f3cc4f32d2e 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Order.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Order.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * An order for a pets from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Pet.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Pet.ts index 3d20bc0a87d9..788a0b87c4e6 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Pet.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Pet.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import type { Category, Tag, diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Tag.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Tag.ts index 58792b18e6b8..e0a059e7186d 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Tag.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/Tag.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A tag for a pet * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/User.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/User.ts index a642d97bf8cd..eb85eeb64201 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/User.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/models/User.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - /** * A User who is purchasing from the pet store * @export diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts index 4f1419e6238e..1b194e83a113 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts @@ -10,7 +10,6 @@ * https://openapi-generator.tech * Do not edit the class manually. */ - import { of } from 'rxjs'; import type { Observable, Subscriber } from 'rxjs'; import { ajax } from 'rxjs/ajax'; diff --git a/samples/documentation/html2/index.html b/samples/documentation/html2/index.html index 1f7b7b1cf7ed..dffc548eccd6 100644 --- a/samples/documentation/html2/index.html +++ b/samples/documentation/html2/index.html @@ -7,61 +7,57 @@ - + /*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ + !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0 - + !function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; + (function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return e==="\\"||e==="-"||e==="]"||e==="^"?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],a= + b[0]==="^",c=["["];a&&c.push("^");for(var a=a?1:0,f=b.length;a122||(l<65||h>90||e.push([Math.max(65,h)|32,Math.min(l,90)|32]),l<97||h>122||e.push([Math.max(97,h)&-33,Math.min(l,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];f=[];for(a=0;ah[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(g(h[1])));c.push("]");return c.join("")}function s(e){for(var a=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],f=0,h=0;f=2&&e==="["?a[f]=b(l):e!=="\\"&&(a[f]=l.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var x=0,m=!1,j=!1,k=0,c=a.length;k=5&&"lang-"===w.substring(0,5))&&!(t&&typeof t[1]==="string"))f=!1,w="src";f||(r[z]=w)}h=c;c+=z.length;if(f){f=t[1];var l=z.indexOf(f),B=l+f.length;t[2]&&(B=z.length-t[2].length,l=B-f.length);w=w.substring(5);H(j+h,z.substring(0,l),g,k);H(j+h+l,f,I(w,f),k);H(j+h+B,z.substring(B),g,k)}else k.push(j+h,w)}a.g=k}var b={},s;(function(){for(var g=a.concat(d),j=[],k={},c=0,i=g.length;c=0;)b[n.charAt(e)]=r;r=r[1];n=""+r;k.hasOwnProperty(n)||(j.push(r),k[n]=q)}j.push(/[\S\s]/);s=S(j)})();var x=d.length;return g}function v(a){var d=[],g=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, + q,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,q])):d.push(["com", + /^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,q]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));if(b=a.regexLiterals){var s=(b=b>1?"":"\n\r")?".":"[\\S\\s]";g.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+ + s+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&g.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&g.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),q]);d.push(["pln",/^\s+/,q," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");g.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/, + q],["pun",RegExp(b),q]);return C(d,g)}function J(a,d,g){function b(a){var c=a.nodeType;if(c==1&&!x.test(a.className))if("br"===a.nodeName)s(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&g){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(j.createTextNode(d),a.nextSibling),s(a),c||a.parentNode.removeChild(a)}}function s(a){function b(a,c){var d= + c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),g=a.nextSibling;e.appendChild(d);for(var i=g;i;i=g)g=i.nextSibling,e.appendChild(i)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var x=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,j=a.ownerDocument,k=j.createElement("li");a.firstChild;)k.appendChild(a.firstChild);for(var c=[k],i=0;i=0;){var b=d[g];F.hasOwnProperty(b)?D.console&&console.warn("cannot override language handler %s",b):F[b]=a}}function I(a,d){if(!a||!F.hasOwnProperty(a))a=/^\s*=l&&(b+=2);g>=B&&(r+=2)}}finally{if(f)f.style.display=h}}catch(u){D.console&&console.log(u&&u.stack||u)}}var D=window,y=["break,continue,do,else,for,if,return,while"],E=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], + "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],M=[E,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[E,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"], + O=[N,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],E=[E,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],P=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], + Q=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],W=[y,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, + V=/\S/,X=v({keywords:[M,O,E,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",P,Q,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),F={};p(X,["default-code"]);p(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", + /^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);p(C([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], + ["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);p(v({keywords:M,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]);p(v({keywords:"null,true,false"}),["json"]);p(v({keywords:O,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}), + ["cs"]);p(v({keywords:N,cStyleComments:!0}),["java"]);p(v({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(v({keywords:P,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(v({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);p(v({keywords:Q, + hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(v({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(v({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(v({keywords:W,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]); + p(C([],[["str",/^[\S\s]+/]]),["regex"]);var Y=D.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:v,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:D.prettyPrintOne=function(a,d,g){var b=document.createElement("div");b.innerHTML="
"+a+"
";b=b.firstChild;g&&J(b,g,!0);K({h:d,j:g,c:b,i:1}); + return b.innerHTML},prettyPrint:D.prettyPrint=function(a,d){function g(){for(var b=D.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;i - + /*! + * Bootstrap.js by @fat & @mdo + * Copyright 2013 Twitter, Inc. + * https://www.apache.org/licenses/LICENSE-2.0.txt + */ + !function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(".dropdown-backdrop").remove(),e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||("ontouchstart"in document.documentElement&&e(' - + (function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define("JSONFormatter", [], factory); + else if(typeof exports === 'object') + exports["JSONFormatter"] = factory(); + else + root["JSONFormatter"] = factory(); + })(this, function() { + return /******/ (function(modules) { // webpackBootstrap + /******/ // The module cache + /******/ var installedModules = {}; + /******/ + /******/ // The require function + /******/ function __webpack_require__(moduleId) { + /******/ + /******/ // Check if module is in cache + /******/ if(installedModules[moduleId]) + /******/ return installedModules[moduleId].exports; + /******/ + /******/ // Create a new module (and put it into the cache) + /******/ var module = installedModules[moduleId] = { + /******/ exports: {}, + /******/ id: moduleId, + /******/ loaded: false + /******/ }; + /******/ + /******/ // Execute the module function + /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + /******/ + /******/ // Flag the module as loaded + /******/ module.loaded = true; + /******/ + /******/ // Return the exports of the module + /******/ return module.exports; + /******/ } + /******/ + /******/ + /******/ // expose the modules object (__webpack_modules__) + /******/ __webpack_require__.m = modules; + /******/ + /******/ // expose the module cache + /******/ __webpack_require__.c = installedModules; + /******/ + /******/ // __webpack_public_path__ + /******/ __webpack_require__.p = "dist"; + /******/ + /******/ // Load entry module and return exports + /******/ return __webpack_require__(0); + /******/ }) + /************************************************************************/ + /******/ ([ + /* 0 */ + /***/ function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(1); + + + /***/ }, + /* 1 */ + /***/ function(module, exports, __webpack_require__) { + + "use strict"; + __webpack_require__(2); + var helpers_ts_1 = __webpack_require__(6); + var DATE_STRING_REGEX = /(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/; + var PARTIAL_DATE_REGEX = /\d{2}:\d{2}:\d{2} GMT-\d{4}/; + var JSON_DATE_REGEX = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/; + // When toggling, don't animated removal or addition of more than a few items + var MAX_ANIMATED_TOGGLE_ITEMS = 10; + var requestAnimationFrame = window.requestAnimationFrame || function (cb) { cb(); return 0; }; + ; + var _defaultConfig = { + hoverPreviewEnabled: false, + hoverPreviewArrayCount: 100, + hoverPreviewFieldCount: 5, + animateOpen: true, + animateClose: true, + theme: null + }; + module.exports = (function () { + /** + * @param {object} json The JSON object you want to render. It has to be an + * object or array. Do NOT pass raw JSON string. + * + * @param {number} [open=1] his number indicates up to how many levels the + * rendered tree should expand. Set it to `0` to make the whole tree collapsed + * or set it to `Infinity` to expand the tree deeply + * + * @param {object} [config=defaultConfig] - + * defaultConfig = { + * hoverPreviewEnabled: false, + * hoverPreviewArrayCount: 100, + * hoverPreviewFieldCount: 5 + * } + * + * Available configurations: + * #####Hover Preview + * * `hoverPreviewEnabled`: enable preview on hover + * * `hoverPreviewArrayCount`: number of array items to show in preview Any + * array larger than this number will be shown as `Array[XXX]` where `XXX` + * is length of the array. + * * `hoverPreviewFieldCount`: number of object properties to show for object + * preview. Any object with more properties that thin number will be + * truncated. + * + * @param {string} [key=undefined] The key that this object in it's parent + * context + */ + function JSONFormatter(json, open, config, key) { + if (open === void 0) { open = 1; } + if (config === void 0) { config = _defaultConfig; } + this.json = json; + this.open = open; + this.config = config; + this.key = key; + // Hold the open state after the toggler is used + this._isOpen = null; + // Setting default values for config object + if (this.config.hoverPreviewEnabled === undefined) { + this.config.hoverPreviewEnabled = _defaultConfig.hoverPreviewEnabled; + } + if (this.config.hoverPreviewArrayCount === undefined) { + this.config.hoverPreviewArrayCount = _defaultConfig.hoverPreviewArrayCount; + } + if (this.config.hoverPreviewFieldCount === undefined) { + this.config.hoverPreviewFieldCount = _defaultConfig.hoverPreviewFieldCount; + } + } + Object.defineProperty(JSONFormatter.prototype, "isOpen", { + /* + * is formatter open? + */ + get: function () { + if (this._isOpen !== null) { + return this._isOpen; + } + else { + return this.open > 0; + } + }, + /* + * set open state (from toggler) + */ + set: function (value) { + this._isOpen = value; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isDate", { + /* + * is this a date string? + */ + get: function () { + return (this.type === 'string') && + (DATE_STRING_REGEX.test(this.json) || + JSON_DATE_REGEX.test(this.json) || + PARTIAL_DATE_REGEX.test(this.json)); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isUrl", { + /* + * is this a URL string? + */ + get: function () { + return this.type === 'string' && (this.json.indexOf('http') === 0); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isArray", { + /* + * is this an array? + */ + get: function () { + return Array.isArray(this.json); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isObject", { + /* + * is this an object? + * Note: In this context arrays are object as well + */ + get: function () { + return helpers_ts_1.isObject(this.json); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isEmptyObject", { + /* + * is this an empty object with no properties? + */ + get: function () { + return !this.keys.length && !this.isArray; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "isEmpty", { + /* + * is this an empty object or array? + */ + get: function () { + return this.isEmptyObject || (this.keys && !this.keys.length && this.isArray); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "hasKey", { + /* + * did we receive a key argument? + * This means that the formatter was called as a sub formatter of a parent formatter + */ + get: function () { + return typeof this.key !== 'undefined'; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "constructorName", { + /* + * if this is an object, get constructor function name + */ + get: function () { + return helpers_ts_1.getObjectName(this.json); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "type", { + /* + * get type of this value + * Possible values: all JavaScript primitive types plus "array" and "null" + */ + get: function () { + return helpers_ts_1.getType(this.json); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(JSONFormatter.prototype, "keys", { + /* + * get object keys + * If there is an empty key we pad it wit quotes to make it visible + */ + get: function () { + if (this.isObject) { + return Object.keys(this.json).map(function (key) { return key ? key : '""'; }); + } + else { + return []; + } + }, + enumerable: true, + configurable: true + }); + /** + * Toggles `isOpen` state + * + */ + JSONFormatter.prototype.toggleOpen = function () { + this.isOpen = !this.isOpen; + if (this.element) { + if (this.isOpen) { + this.appendChildren(this.config.animateOpen); + } + else { + this.removeChildren(this.config.animateClose); + } + this.element.classList.toggle(helpers_ts_1.cssClass('open')); + } + }; + /** + * Open all children up to a certain depth. + * Allows actions such as expand all/collapse all + * + */ + JSONFormatter.prototype.openAtDepth = function (depth) { + if (depth === void 0) { depth = 1; } + if (depth < 0) { + return; + } + this.open = depth; + this.isOpen = (depth !== 0); + if (this.element) { + this.removeChildren(false); + if (depth === 0) { + this.element.classList.remove(helpers_ts_1.cssClass('open')); + } + else { + this.appendChildren(this.config.animateOpen); + this.element.classList.add(helpers_ts_1.cssClass('open')); + } + } + }; + /** + * Generates inline preview + * + * @returns {string} + */ + JSONFormatter.prototype.getInlinepreview = function () { + var _this = this; + if (this.isArray) { + // if array length is greater then 100 it shows "Array[101]" + if (this.json.length > this.config.hoverPreviewArrayCount) { + return "Array[" + this.json.length + "]"; + } + else { + return "[" + this.json.map(helpers_ts_1.getPreview).join(', ') + "]"; + } + } + else { + var keys = this.keys; + // the first five keys (like Chrome Developer Tool) + var narrowKeys = keys.slice(0, this.config.hoverPreviewFieldCount); + // json value schematic information + var kvs = narrowKeys.map(function (key) { return (key + ":" + helpers_ts_1.getPreview(_this.json[key])); }); + // if keys count greater then 5 then show ellipsis + var ellipsis = keys.length >= this.config.hoverPreviewFieldCount ? '…' : ''; + return "{" + kvs.join(', ') + ellipsis + "}"; + } + }; + /** + * Renders an HTML element and installs event listeners + * + * @returns {HTMLDivElement} + */ + JSONFormatter.prototype.render = function () { + // construct the root element and assign it to this.element + this.element = helpers_ts_1.createElement('div', 'row'); + // construct the toggler link + var togglerLink = helpers_ts_1.createElement('a', 'toggler-link'); + // if this is an object we need a wrapper span (toggler) + if (this.isObject) { + togglerLink.appendChild(helpers_ts_1.createElement('span', 'toggler')); + } + // if this is child of a parent formatter we need to append the key + if (this.hasKey) { + togglerLink.appendChild(helpers_ts_1.createElement('span', 'key', this.key + ":")); + } + // Value for objects and arrays + if (this.isObject) { + // construct the value holder element + var value = helpers_ts_1.createElement('span', 'value'); + // we need a wrapper span for objects + var objectWrapperSpan = helpers_ts_1.createElement('span'); + // get constructor name and append it to wrapper span + var constructorName = helpers_ts_1.createElement('span', 'constructor-name', this.constructorName); + objectWrapperSpan.appendChild(constructorName); + // if it's an array append the array specific elements like brackets and length + if (this.isArray) { + var arrayWrapperSpan = helpers_ts_1.createElement('span'); + arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'bracket', '[')); + arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'number', (this.json.length))); + arrayWrapperSpan.appendChild(helpers_ts_1.createElement('span', 'bracket', ']')); + objectWrapperSpan.appendChild(arrayWrapperSpan); + } + // append object wrapper span to toggler link + value.appendChild(objectWrapperSpan); + togglerLink.appendChild(value); + } + else { + // make a value holder element + var value = this.isUrl ? helpers_ts_1.createElement('a') : helpers_ts_1.createElement('span'); + // add type and other type related CSS classes + value.classList.add(helpers_ts_1.cssClass(this.type)); + if (this.isDate) { + value.classList.add(helpers_ts_1.cssClass('date')); + } + if (this.isUrl) { + value.classList.add(helpers_ts_1.cssClass('url')); + value.setAttribute('href', this.json); + } + // Append value content to value element + var valuePreview = helpers_ts_1.getValuePreview(this.json, this.json); + value.appendChild(document.createTextNode(valuePreview)); + // append the value element to toggler link + togglerLink.appendChild(value); + } + // if hover preview is enabled, append the inline preview element + if (this.isObject && this.config.hoverPreviewEnabled) { + var preview = helpers_ts_1.createElement('span', 'preview-text'); + preview.appendChild(document.createTextNode(this.getInlinepreview())); + togglerLink.appendChild(preview); + } + // construct a children element + var children = helpers_ts_1.createElement('div', 'children'); + // set CSS classes for children + if (this.isObject) { + children.classList.add(helpers_ts_1.cssClass('object')); + } + if (this.isArray) { + children.classList.add(helpers_ts_1.cssClass('array')); + } + if (this.isEmpty) { + children.classList.add(helpers_ts_1.cssClass('empty')); + } + // set CSS classes for root element + if (this.config && this.config.theme) { + this.element.classList.add(helpers_ts_1.cssClass(this.config.theme)); + } + if (this.isOpen) { + this.element.classList.add(helpers_ts_1.cssClass('open')); + } + // append toggler and children elements to root element + this.element.appendChild(togglerLink); + this.element.appendChild(children); + // if formatter is set to be open call appendChildren + if (this.isObject && this.isOpen) { + this.appendChildren(); + } + // add event listener for toggling + if (this.isObject) { + togglerLink.addEventListener('click', this.toggleOpen.bind(this)); + } + return this.element; + }; + /** + * Appends all the children to children element + * Animated option is used when user triggers this via a click + */ + JSONFormatter.prototype.appendChildren = function (animated) { + var _this = this; + if (animated === void 0) { animated = false; } + var children = this.element.querySelector("div." + helpers_ts_1.cssClass('children')); + if (!children || this.isEmpty) { + return; + } + if (animated) { + var index_1 = 0; + var addAChild_1 = function () { + var key = _this.keys[index_1]; + var formatter = new JSONFormatter(_this.json[key], _this.open - 1, _this.config, key); + children.appendChild(formatter.render()); + index_1 += 1; + if (index_1 < _this.keys.length) { + if (index_1 > MAX_ANIMATED_TOGGLE_ITEMS) { + addAChild_1(); + } + else { + requestAnimationFrame(addAChild_1); + } + } + }; + requestAnimationFrame(addAChild_1); + } + else { + this.keys.forEach(function (key) { + var formatter = new JSONFormatter(_this.json[key], _this.open - 1, _this.config, key); + children.appendChild(formatter.render()); + }); + } + }; + /** + * Removes all the children from children element + * Animated option is used when user triggers this via a click + */ + JSONFormatter.prototype.removeChildren = function (animated) { + if (animated === void 0) { animated = false; } + var childrenElement = this.element.querySelector("div." + helpers_ts_1.cssClass('children')); + if (animated) { + var childrenRemoved_1 = 0; + var removeAChild_1 = function () { + if (childrenElement && childrenElement.children.length) { + childrenElement.removeChild(childrenElement.children[0]); + childrenRemoved_1 += 1; + if (childrenRemoved_1 > MAX_ANIMATED_TOGGLE_ITEMS) { + removeAChild_1(); + } + else { + requestAnimationFrame(removeAChild_1); + } + } + }; + requestAnimationFrame(removeAChild_1); + } + else { + if (childrenElement) { + childrenElement.innerHTML = ''; + } + } + }; + return JSONFormatter; + }()); + + + /***/ }, + /* 2 */ + /***/ function(module, exports, __webpack_require__) { + + // style-loader: Adds some css to the DOM by adding a